Monobjc.Tools.XcodeProjectGenerationTests.TestProjectGeneration002 C# (CSharp) Method

TestProjectGeneration002() private method

private TestProjectGeneration002 ( ) : void
return void
        public void TestProjectGeneration002()
        {
            // Create the dependant project
            string targetName = "MyLibrary002";
            XcodeProject project1 = new XcodeProject(".", targetName);

            project1.AddTarget (targetName, PBXProductType.LibraryDynamic);

            project1.AddBuildConfigurationSettings("Release", null, "ARCHS", "$(ARCHS_STANDARD_32_64_BIT)");
            project1.AddBuildConfigurationSettings("Release", null, "SDKROOT", "macosx");
            project1.AddBuildConfigurationSettings("Release", null, "GCC_VERSION", "com.apple.compilers.llvm.clang.1_0");
            project1.AddBuildConfigurationSettings("Release", null, "MACOSX_DEPLOYMENT_TARGET", "10.6");
            project1.AddBuildConfigurationSettings("Release", null, "GCC_C_LANGUAGE_STANDARD", "gnu99");
            project1.AddBuildConfigurationSettings("Release", null, "GCC_WARN_64_TO_32_BIT_CONVERSION", "YES");
            project1.AddBuildConfigurationSettings("Release", null, "GCC_WARN_ABOUT_RETURN_TYPE", "YES");
            project1.AddBuildConfigurationSettings("Release", null, "GCC_WARN_UNUSED_VARIABLE", "YES");

            project1.AddBuildConfigurationSettings ("Release", targetName, "ALWAYS_SEARCH_USER_PATHS", "NO");
            project1.AddBuildConfigurationSettings ("Release", targetName, "COPY_PHASE_STRIP", "YES");
            project1.AddBuildConfigurationSettings ("Release", targetName, "DEBUG_INFORMATION_FORMAT", "dwarf-with-dsym");
            project1.AddBuildConfigurationSettings ("Release", targetName, "DYLIB_COMPATIBILITY_VERSION", "1");
            project1.AddBuildConfigurationSettings ("Release", targetName, "DYLIB_CURRENT_VERSION", "1");
            project1.AddBuildConfigurationSettings ("Release", targetName, "GCC_ENABLE_OBJC_EXCEPTIONS", "YES");
            project1.AddBuildConfigurationSettings ("Release", targetName, "PRODUCT_NAME", "$(TARGET_NAME)");

            project1.AddFile("Classes", "Classes/AppDelegate.h", targetName);
            project1.AddFile("Classes", "Classes/Wrong.h", targetName);
            project1.RemoveFile("Classes", "Classes/Wrong.h", targetName);

            project1.AddFile("Resources", "en.lproj/MainMenu.xib", targetName);
            project1.AddFile("Resources", "fr.lproj/MainMenu.xib", targetName);
            project1.RemoveFile("Resources", "fr.lproj/MainMenu.xib", targetName);

            project1.AddFramework("Frameworks", "Cocoa", targetName);
            project1.AddFramework("Frameworks", "AddressBook", targetName);
            project1.RemoveFramework("Frameworks", "AddressBook", targetName);

            project1.Save();

            // Create the main project
            targetName = "MyApplication002";
            XcodeProject project2 = new XcodeProject(".", targetName);

            project2.AddTarget (targetName, PBXProductType.Application);

            project2.AddBuildConfigurationSettings("Release", null, "ARCHS", "$(ARCHS_STANDARD_32_64_BIT)");
            project2.AddBuildConfigurationSettings("Release", null, "SDKROOT", "macosx");
            project2.AddBuildConfigurationSettings("Release", null, "GCC_VERSION", "com.apple.compilers.llvm.clang.1_0");
            project2.AddBuildConfigurationSettings("Release", null, "MACOSX_DEPLOYMENT_TARGET", "10.6");
            project2.AddBuildConfigurationSettings("Release", null, "GCC_C_LANGUAGE_STANDARD", "gnu99");
            project2.AddBuildConfigurationSettings("Release", null, "GCC_WARN_64_TO_32_BIT_CONVERSION", "YES");
            project2.AddBuildConfigurationSettings("Release", null, "GCC_WARN_ABOUT_RETURN_TYPE", "YES");
            project2.AddBuildConfigurationSettings("Release", null, "GCC_WARN_UNUSED_VARIABLE", "YES");

            project2.AddBuildConfigurationSettings ("Release", targetName, "DEBUG_INFORMATION_FORMAT", "dwarf-with-dsym");
            project2.AddBuildConfigurationSettings ("Release", targetName, "COPY_PHASE_STRIP", "YES");
            project2.AddBuildConfigurationSettings ("Release", targetName, "INFOPLIST_FILE", "../../Info.plist");
            project2.AddBuildConfigurationSettings ("Release", targetName, "PRODUCT_NAME", "$(TARGET_NAME)");
            project2.AddBuildConfigurationSettings ("Release", targetName, "WRAPPER_EXTENSION", "app");
            project2.AddBuildConfigurationSettings ("Release", targetName, "ALWAYS_SEARCH_USER_PATHS", "NO");
            project2.AddBuildConfigurationSettings ("Release", targetName, "GCC_ENABLE_OBJC_EXCEPTIONS", "YES");

            project2.AddFile("Files", "MyApplicationAppDelegate.h", targetName);
            project2.AddFile("Files", "MyApplicationAppDelegate.m", targetName);
            project2.AddFile("Files", "Wrong.h", targetName);
            project2.RemoveFile("Files", "Wrong.h", targetName);

            project2.AddFile("Files", "main.m", targetName);
            project2.AddFile("Files", "MyApplication-Info.plist", targetName);

            project2.AddFile("Files", "en.lproj/MainMenu.xib", targetName);
            project2.AddFile("Files", "fr.lproj/MainMenu.xib", targetName);
            project2.RemoveFile("Files", "fr.lproj/MainMenu.xib", targetName);

            project2.AddFramework("Frameworks", "Cocoa", targetName);
            project2.AddFramework("Frameworks", "AddressBook", targetName);
            project2.RemoveFramework("Frameworks", "AddressBook", targetName);

            project2.AddDependantProject(project1, targetName);

            project2.Save();
        }