Exemplo n.º 1
0
  void writeConfiguration(BuildConfig cfg) {
    startTag(
        "Configuration",
        new String[] {
          "Name",
          cfg.get("Name"),
          "OutputDirectory",
          cfg.get("OutputDir"),
          "IntermediateDirectory",
          cfg.get("OutputDir"),
          "ConfigurationType",
          "2",
          "UseOfMFC",
          "0",
          "ATLMinimizesCRunTimeLibraryUsage",
          "FALSE"
        });

    tagV("Tool", cfg.getV("CompilerFlags"));

    tag("Tool", new String[] {"Name", "VCCustomBuildTool"});

    tagV("Tool", cfg.getV("LinkerFlags"));

    tag("Tool", new String[] {"Name", "VCPostBuildEventTool"});

    tag("Tool", new String[] {"Name", "VCPreBuildEventTool"});

    tag(
        "Tool",
        new String[] {
          "Name", "VCPreLinkEventTool",
          "Description", BuildConfig.getFieldString(null, "PrelinkDescription"),
          // Caution: String.replace(String,String) is available from JDK5 onwards only
          "CommandLine",
              cfg.expandFormat(
                  BuildConfig.getFieldString(null, "PrelinkCommand").replace("\t", "
"))
        });

    tag(
        "Tool",
        new String[] {
          "Name", "VCResourceCompilerTool",
          // XXX???
          "PreprocessorDefinitions", "NDEBUG",
          "Culture", "1033"
        });
    tag("Tool", new String[] {"Name", "VCWebServiceProxyGeneratorTool"});

    tag("Tool", new String[] {"Name", "VCXMLDataGeneratorTool"});

    tag("Tool", new String[] {"Name", "VCWebDeploymentTool"});
    tag("Tool", new String[] {"Name", "VCManagedWrapperGeneratorTool"});
    tag("Tool", new String[] {"Name", "VCAuxiliaryManagedWrapperGeneratorTool"});

    tag(
        "Tool",
        new String[] {
          "Name", "VCMIDLTool",
          "PreprocessorDefinitions", "NDEBUG",
          "MkTypLibCompatible", "TRUE",
          "SuppressStartupBanner", "TRUE",
          "TargetEnvironment", "1",
          "TypeLibraryName", cfg.get("OutputDir") + Util.sep + "vm.tlb",
          "HeaderFileName", ""
        });

    endTag("Configuration");
  }