Examples of CommandLineCompilerConfiguration


Examples of com.github.maven_nar.cpptasks.compiler.CommandLineCompilerConfiguration

            CommandLineCompilerConfiguration baseConfig, File prototype,
            String lastInclude) {
        String[] additionalArgs = new String[]{
                "/Fp" + CUtil.getBasename(prototype) + ".pch", "/Yc"};
        // FREEHEP FIXME we may need /Yd here, but only in debug mode, how do we find out?
        return new CommandLineCompilerConfiguration(baseConfig, additionalArgs,
                null, true);
    }
View Full Code Here

Examples of com.github.maven_nar.cpptasks.compiler.CommandLineCompilerConfiguration

            String lastInclude, String[] exceptFiles) {
        String[] additionalArgs = new String[]{
                "/Fp" + CUtil.getBasename(prototype) + ".pch",
                "/Yu" + lastInclude};

        return new CommandLineCompilerConfiguration(baseConfig, additionalArgs,
                exceptFiles, false);
    }
View Full Code Here

Examples of com.github.maven_nar.cpptasks.compiler.CommandLineCompilerConfiguration

        if (!projectDef.getOverwrite() && slnFile.exists()) {
            throw new BuildException("Not allowed to overwrite project file "
                    + slnFile.toString());
        }

        CommandLineCompilerConfiguration compilerConfig =
                getBaseCompilerConfiguration(targets);
        if (compilerConfig == null) {
            throw new BuildException(
                    "Unable to generate Visual Studio.NET project "
                            + "when Microsoft C++ is not used.");
View Full Code Here

Examples of com.github.maven_nar.cpptasks.compiler.CommandLineCompilerConfiguration

            ProcessorConfiguration config = targetInfo.getConfiguration();
            //
            //   for the first cl compiler
            //
            if (config instanceof CommandLineCompilerConfiguration) {
                CommandLineCompilerConfiguration compilerConfig =
                        (CommandLineCompilerConfiguration) config;
                if (compilerConfig.getCompiler()
                        instanceof MsvcCCompiler) {
                    return compilerConfig;
                }
            }
        }
View Full Code Here

Examples of com.github.maven_nar.cpptasks.compiler.CommandLineCompilerConfiguration

    if (!projectDef.getOverwrite() && dswFile.exists()) {
        throw new BuildException("Not allowed to overwrite project file "
                                 + dswFile.toString());
      }

    CommandLineCompilerConfiguration compilerConfig =
        getBaseCompilerConfiguration(targets);
    if (compilerConfig == null) {
      throw new BuildException(
          "Unable to generate Visual Studio project "
          + "when Microsoft C++ is not used.");
View Full Code Here

Examples of com.github.maven_nar.cpptasks.compiler.CommandLineCompilerConfiguration

  private CommandLineCompilerConfiguration
      getBaseCompilerConfiguration(final Map<String, TargetInfo> targets) {
    //
    //   find first target with an DevStudio C compilation
    //
    CommandLineCompilerConfiguration compilerConfig;
    //
    //   get the first target and assume that it is representative
    //
    Iterator<TargetInfo> targetIter = targets.values().iterator();
    while (targetIter.hasNext()) {
      TargetInfo targetInfo = targetIter.next();
      ProcessorConfiguration config = targetInfo.getConfiguration();
      //
      //   for the first cl compiler
      //
      if (config instanceof CommandLineCompilerConfiguration) {
        compilerConfig = (CommandLineCompilerConfiguration) config;
        if (compilerConfig.getCompiler() instanceof MsvcCCompiler) {
          return compilerConfig;
        }
      }
    }
    return null;
View Full Code Here

Examples of com.github.maven_nar.cpptasks.compiler.CommandLineCompilerConfiguration

  /**
   * Test that a target with no existing object file is
   *    returned by getTargetsToBuildByConfiguration.
   */
  public void testGetTargetsToBuildByConfiguration1() {
    CompilerConfiguration config1 = new CommandLineCompilerConfiguration(
        (GccCCompiler) GccCCompiler.getInstance(), "dummy",
        new File[0], new File[0], new File[0], "", new String[0],
        new ProcessorParam[0], true, new String[0]);
    TargetInfo target1 = new TargetInfo(config1, new File[] {new File(
        "src/foo.bar")}
View Full Code Here

Examples of com.github.maven_nar.cpptasks.compiler.CommandLineCompilerConfiguration

   * Test that a target that is up to date is not returned by
   *           getTargetsToBuildByConfiguration.
   *
   */
  public void testGetTargetsToBuildByConfiguration2() {
    CompilerConfiguration config1 = new CommandLineCompilerConfiguration(
        (GccCCompiler) GccCCompiler.getInstance(), "dummy",
        new File[0], new File[0], new File[0], "", new String[0],
        new ProcessorParam[0], false, new String[0]);
    //
    //    target doesn't need to be rebuilt
View Full Code Here

Examples of com.github.maven_nar.cpptasks.compiler.CommandLineCompilerConfiguration

        baseCompiler);
    setCompilerName(extendedCompiler, "msvc");
    CCTask cctask = new CCTask();
    LinkType linkType = new LinkType();
    linkType.setStaticRuntime(true);
    CommandLineCompilerConfiguration config = (CommandLineCompilerConfiguration)
        extendedCompiler
        .createConfiguration(cctask, linkType, null, null, null);
    String[] preArgs = config.getPreArguments();
    assertEquals("/ML", preArgs[3]);
  }
View Full Code Here

Examples of com.github.maven_nar.cpptasks.compiler.CommandLineCompilerConfiguration

        super(name);
        compiler = (GccCCompiler) GccCCompiler.getInstance();
        compilerId = compiler.getIdentifier();
    }
    protected CompilerConfiguration create() {
        return new CommandLineCompilerConfiguration(compiler, "dummy",
                new File[0], new File[0], new File[0], "",
                new String[]{"/Id:/gcc"}, new ProcessorParam[0], false,
                new String[0]);
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.