~~ Licensed to the Ant-Contrib Project under one or more ~~ contributor license agreements. See the NOTICE file distributed with ~~ this work for additional information regarding copyright ownership. ~~ The Ant-Contrib Project licenses this file to You under the Apache License, Version 2.0 ~~ (the "License"); you may not use this file except in compliance with ~~ the License. You may obtain a copy of the License at ~~ ~~ http://www.apache.org/licenses/LICENSE-2.0 ~~ ~~ Unless required by applicable law or agreed to in writing, software ~~ distributed under the License is distributed on an "AS IS" BASIS, ~~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. ~~ See the License for the specific language governing permissions and ~~ limitations under the License. ------ cpptasks for Apache Ant ------ ------ ------ cpptasks for Apache Ant The cc task can compile various source languages and produce executables, shared libraries (aka DLL's) and static libraries. Compiler adaptors are currently available for C/C++, FORTRAN, MIDL and Windows Resource compilers. The task can be used with Apache Ant 1.5 and later. This software is not a product of the Apache Software Foundation (ASF) and no endorsement by the ASF is implied. To use: * Place cpptasks.jar into Ant's classpath by placing in Ant's lib directory, adding to CLASSPATH environment variable or using the -lib command line option. * Add type and task definitions in build file using either taskdef or antlib. * Add {{{antdocs/CCTask.html}cc}} element to some target in your build file. * Set path and environment variables to be able to run compiler from command line. * Build project. Trivial Sample using taskdef (compatible with Ant 1.5 or later): +-- +-- Trivial Sample using antlib (compatible with Ant 1.6 or later): +-- +-- More complex samples appear in src/samples.