aboutsummaryrefslogtreecommitdiffstats
path: root/make/gluegen-cpptasks.xml
blob: 30944d855537371b1d9feef427ea243f532da81f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
<?xml version="1.0" encoding="UTF-8"?>
<!--
   - Ant project file for setting up cpptasks (indirection).
   - You may overwrite the following compiler configuration
   - with your custom one, see 'gluegen-cpptasks-custom.xml'.
   -
   - To use your custom cpptasks file,
   - define the property 'gluegen-cpptasks.file'.
   - 
   - This Ant project file depends on properties being set
   - via gluegen.properties, see: gluegen-properties.xml and gluegen.properties !
  -->
<project name="GlueGen-cpptasks" basedir=".">

  <condition property="gluegen.root" value="..">
      <not>
          <isset property="gluegen.root"/>
      </not>
  </condition>


  <!-- import properties -->
  <import file="gluegen-properties.xml" />

  <!-- import cpptasks -->
  <!--typedef resource="net/sf/antcontrib/cpptasks/antlib.xml" classpath="${gluegen.root}/make/lib/cpptasks.jar;${gluegen.root}/make/lib/CppTasksGCCNamespaceHack.jar"/-->
  <typedef resource="net/sf/antcontrib/cpptasks/antlib.xml" classpath="${gluegen.root}/make/lib/cpptasks.jar"/>

  <property environment="env" />
  <condition property="gluegen-cpptasks.file" value="${env.GLUEGEN_CPPTASKS_FILE}">
    <not>
     <equals arg1="${env.GLUEGEN_CPPTASKS_FILE}" arg2="$${env.GLUEGEN_CPPTASKS_FILE}" casesensitive="true" />
    </not>
  </condition>
  <property name="gluegen-cpptasks.file"             value="${gluegen.root}/make/gluegen-cpptasks-base.xml" />   <!-- default value -->
  <property name="gluegen-cpptasks.file.abs-path" location="${gluegen-cpptasks.file}" />

  <!--echo message="GLUEGEN_CPPTASKS_FILE        ${env.GLUEGEN_CPPTASKS_FILE}"/>
  <echo message="gluegen-cpptasks.file           ${gluegen-cpptasks.file}"/-->
  <echo message="gluegen-cpptasks.file.abs-path  ${gluegen-cpptasks.file.abs-path}"/>

  <import file="${gluegen-cpptasks.file.abs-path}" optional="false" />

</project>