This task can compile various source languages and produce executables, shared libraries (aka DLL's) and static libraries. Compiler adaptors are currently available for several C/C++ compilers, FORTRAN, MIDL and Windows Resource files.
Copyright (c) 2001-2008, The Ant-Contrib project.
Licensed under the Apache Software License 2.0, http://www.apache.org/licenses/LICENSE-2.0.
For use with Apache Ant 1.5 or later. This software is not a product of the of the Apache Software Foundation and no endorsement is implied.
THIS SOFTWARE IS PROVIDED 'AS-IS', See http://www.apache.org/licenses/LICENSE-2.0 for additional disclaimers.
To use:| Attribute | Description | Type | ||||||||||||||||||||||||||||||||||||||||||||||||||
| classname | Sets the default compiler adapter. Use the "name" attribute when the compiler is a supported compiler. | String | ||||||||||||||||||||||||||||||||||||||||||||||||||
| dataset | Sets the dataset for OS/390 builds. | String | ||||||||||||||||||||||||||||||||||||||||||||||||||
| debug | Enables or disables generation of debug info. | boolean | ||||||||||||||||||||||||||||||||||||||||||||||||||
| dependencydepth | Deprecated. Controls the depth of the dependency evaluation. Used to do a quick check of changes before a full build. Any negative value which will perform full dependency checking. Positive values will truncate dependency checking. A value of 0 will cause only those files that changed to be recompiled, a value of 1 which cause files that changed or that explicitly include a file that changed to be recompiled. Any non-negative value will cause a BuildException to be thrown before attempting a link or completing the task. | int | ||||||||||||||||||||||||||||||||||||||||||||||||||
| description | String | |||||||||||||||||||||||||||||||||||||||||||||||||||
| exceptions | Enables generation of exception handling code | boolean | ||||||||||||||||||||||||||||||||||||||||||||||||||
| failonerror | Indicates whether the build will continue even if there are compilation errors; defaults to true. | boolean | ||||||||||||||||||||||||||||||||||||||||||||||||||
| incremental | Enables or disables incremental linking. | boolean | ||||||||||||||||||||||||||||||||||||||||||||||||||
| libtool | Set use of libtool. If set to true, the "libtool " will be prepended to the command line for compatible processors | boolean | ||||||||||||||||||||||||||||||||||||||||||||||||||
| link | Sets the output file type. Supported values "executable", "shared", and "static". Deprecated, specify outtype instead. | OutputTypeEnum | ||||||||||||||||||||||||||||||||||||||||||||||||||
| location | Location | |||||||||||||||||||||||||||||||||||||||||||||||||||
| multithreaded | Enables or disables generation of multithreaded code | boolean | ||||||||||||||||||||||||||||||||||||||||||||||||||
| name | Sets type of the default compiler and linker.
|
CompilerEnum | ||||||||||||||||||||||||||||||||||||||||||||||||||
| newenvironment | Do not propagate old environment when new environment variables are specified. | boolean | ||||||||||||||||||||||||||||||||||||||||||||||||||
| objdir | Sets the destination directory for object files. Generally this should be a property expression that evaluates to distinct debug and release object file directories. | File | ||||||||||||||||||||||||||||||||||||||||||||||||||
| optimize | Sets optimization. | OptimizationEnum | ||||||||||||||||||||||||||||||||||||||||||||||||||
| outfile | Sets the output file name. If not specified, the task will only compile files and not attempt to link. If an extension is not specified, the task may use a system appropriate extension and prefix, for example, outfile="example" may result in "libexample.so" being created. | File | ||||||||||||||||||||||||||||||||||||||||||||||||||
| outputfileproperty | Specifies the name of a property to set with the physical filename that is produced by the linker | String | ||||||||||||||||||||||||||||||||||||||||||||||||||
| outtype | Sets the output file type. Supported values "executable", "shared", and "static". | OutputTypeEnum | ||||||||||||||||||||||||||||||||||||||||||||||||||
| owningtarget | Target | |||||||||||||||||||||||||||||||||||||||||||||||||||
| projectsonly | boolean | |||||||||||||||||||||||||||||||||||||||||||||||||||
| rebuild | If set to true, all files will be rebuilt. | boolean | ||||||||||||||||||||||||||||||||||||||||||||||||||
| relentless | If set to true, compilation errors will not stop the task until all files have been attempted. | boolean | ||||||||||||||||||||||||||||||||||||||||||||||||||
| rtti | Enables run-time type information. | boolean | ||||||||||||||||||||||||||||||||||||||||||||||||||
| runtime | Sets the type of runtime library, possible values "dynamic", "static". | RuntimeType | ||||||||||||||||||||||||||||||||||||||||||||||||||
| subsystem | Sets the nature of the subsystem under which that the program will
execute.
|
SubsystemEnum | ||||||||||||||||||||||||||||||||||||||||||||||||||
| taskname | String | |||||||||||||||||||||||||||||||||||||||||||||||||||
| tasktype | String | |||||||||||||||||||||||||||||||||||||||||||||||||||
| warnings | Enumerated attribute with the values "none", "severe", "default", "production", "diagnostic", and "aserror". | WarningLevelEnum |