3 * Copyright 2002-2004 The Ant-Contrib project
5 * Licensed under the Apache License, Version 2.0 (the "License");
6 * you may not use this file except in compliance with the License.
7 * You may obtain a copy of the License at
9 * http://www.apache.org/licenses/LICENSE-2.0
11 * Unless required by applicable law or agreed to in writing, software
12 * distributed under the License is distributed on an "AS IS" BASIS,
13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 * See the License for the specific language governing permissions and
15 * limitations under the License.
17 package net
.sf
.antcontrib
.cpptasks
.compiler
;
20 * A compiler that can utilize precompilation of header files
24 public interface PrecompilingCompiler
{
27 * This method may be used to get two distinct compiler configurations, one
28 * for compiling the specified file and producing a precompiled header
29 * file, and a second for compiling other files using the precompiled
32 * The last (preferrably only) include directive in the prototype file will
33 * be used to mark the boundary between pre-compiled and normally compiled
39 * A source file (for example, stdafx.cpp) that is used to build
40 * the precompiled header file. @returns null if precompiled
41 * headers are not supported or a two element array containing
42 * the precompiled header generation configuration and the
43 * consuming configuration
46 CompilerConfiguration
[] createPrecompileConfigurations(
47 CompilerConfiguration config
, File prototype
,
48 String
[] nonPrecompiledFiles
);