Example #1
0
        public CompatIos()
        {
            IgnorePaths.Add("Compat.iOS.cs");

            GlobalReplacements.Add(new XamarinCompatReplacement("MonoTouch"));
            EnumBackingTypeReplacements.Add(new XamarinCompatReplacement("MonoTouch"));
        }
        public CompatMac()
        {
            CompilerOptions.Add("-sdk:4.0");
            CompilerOptions.Add("-define:ARCH_32");
            CompilerOptions.Add("-define:XAMMAC_SYSTEM_MONO");

            IgnorePaths.Add("Compat.mac.cs");

            GlobalReplacements.Add(new XamarinCompatReplacement("MonoMac"));
            EnumBackingTypeReplacements.Add(new XamarinCompatReplacement("MonoMac"));
        }
Example #3
0
        public void Load(Profile other)
        {
            if (other.Name != null)
            {
                Name = other.Name;
            }

            IgnorePaths.AddRange(other.IgnorePaths);
            CompilerExecutable = other.CompilerExecutable;
            CompilerOptions.AddRange(other.CompilerOptions);
            GlobalReplacements.AddRange(other.GlobalReplacements);
            EnumBackingTypeReplacements.AddRange(other.EnumBackingTypeReplacements);
        }
        protected XamCore2Common(ArchDefine arch)
        {
            CompilerOptions.Add("-define:XAMCORE_2_0");

            if (arch != ArchDefine.None)
            {
                CompilerOptions.Add("-define:" + arch.ToString());
            }

            IgnorePaths.Add("Compat.mac.cs");
            IgnorePaths.Add("Compat.iOS.cs");

            GlobalReplacements.Add(new Xamarin20Replacement());
            EnumBackingTypeReplacements.Add(new Xamarin20Replacement());
        }
Example #5
0
 public XamCore2Common()
 {
     GlobalReplacements.Add(new Xamarin20Replacement());
     EnumBackingTypeReplacements.Add(new Xamarin20Replacement());
 }