Class PrecompilingCommandLineCompiler

    • Constructor Detail

      • PrecompilingCommandLineCompiler

        protected PrecompilingCommandLineCompiler​(java.lang.String command,
                                                  java.lang.String identifierArg,
                                                  java.lang.String[] sourceExtensions,
                                                  java.lang.String[] headerExtensions,
                                                  java.lang.String outputSuffix,
                                                  boolean libtool,
                                                  PrecompilingCommandLineCompiler libtoolCompiler,
                                                  boolean newEnvironment,
                                                  org.apache.tools.ant.types.Environment env)
    • Method Detail

      • createPrecompileConfigurations

        public CompilerConfiguration[] createPrecompileConfigurations​(CompilerConfiguration config,
                                                                      java.io.File prototype,
                                                                      java.lang.String[] exceptFiles)
        This method may be used to get two distinct compiler configurations, one for compiling the specified file and producing a precompiled header file, and a second for compiling other files using the precompiled header file. The last (preferrably only) include directive in the prototype file will be used to mark the boundary between pre-compiled and normally compiled headers.
        Specified by:
        createPrecompileConfigurations in interface PrecompilingCompiler
        Parameters:
        config - base configuration
        prototype - A source file (for example, stdafx.cpp) that is used to build the precompiled header file. @returns null if precompiled headers are not supported or a two element array containing the precompiled header generation configuration and the consuming configuration