Table of Contents
API Documentation: | CppCompile |
---|
Compiles C++ source files into object files.
Property | Description |
compilerArgs | Additional arguments to provide to the compiler. |
debuggable | Should the compiler generate debuggable code? |
includes | The header directories to be used for compilation. |
macros | Macros that should be defined for the compiler. |
objectFileDir | The directory where object files will be generated. |
optimized | Should the compiler generate optimized code? |
positionIndependentCode | Should the compiler generate position independent code? |
source | The source files to be compiled. |
systemIncludes | The system include directories to be used for compilation. |
targetPlatform | The platform being compiled for. |
toolChain | The tool chain used for compilation. |
Method | Description |
includes(includeRoots) | Add directories where the compiler should search for header files. |
source(sourceFiles) | Adds a set of source files to be compiled. The provided sourceFiles object is evaluated as per |
ListProperty
<String
>
compilerArgs
ListProperty
<String
>Additional arguments to provide to the compiler.
ConfigurableFileCollection
includes
(read-only)
The header directories to be used for compilation.
DirectoryProperty
objectFileDir
The directory where object files will be generated.
ConfigurableFileCollection
source
(read-only)
The source files to be compiled.
ConfigurableFileCollection
systemIncludes
(read-only)
The system include directories to be used for compilation.
Property
<NativePlatform
>
targetPlatform
Property
<NativePlatform
>The platform being compiled for.
Property
<NativeToolChain
>
toolChain
Property
<NativeToolChain
>The tool chain used for compilation.
void
includes
(Object
includeRoots)
Add directories where the compiler should search for header files.
void
source
(Object
sourceFiles)
Adds a set of source files to be compiled. The provided sourceFiles object is evaluated as per Project.files(java.lang.Object[])
.