summaryrefslogtreecommitdiffstats
path: root/make/gluegen-properties.xml
blob: 19483bbf420102f362c0e8003ded4c88f9a2e7ac (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
<?xml version="1.0" encoding="UTF-8"?>
<!--
   - This Ant project file depends on properties being set
   - via gluegen.properties, see: gluegen.properties !
   - 
   - This Ant project file depends on the following properties being set
   - externally:
   - 
   -   win32.c.compiler (required to be set on Windows):
   -       one of "vc6", "vc7", "vc8", or "mingw".
   -   c.compiler.debug:
   -       set to "true" if debug version of the compiled
   -       C code is desired.
   -   macosppc:
   -       set to "true" if ppc universal / fat binaries are desired
   -       on Mac OS X. Requires support for cross-compilation from the
   -       underlying C compiler. Note: Unsupported on Snow Leopard!
   -   macosx64:
   -       set to "true" if 64-bit universal / fat binaries are desired
   -       on Mac OS X. Requires support for cross-compilation from the
   -       underlying C compiler.
   - 
  -->
<project name="GlueGen-properties" basedir=".">

  <target name="gluegen.properties.load.user" unless="gluegen.user.properties.file.set">
    <!-- Load the user specified properties file that defines various host
      - specific paths.  The user will be notified if this is does not
      - exist. -->
    <condition property="gluegen.user.properties.file"
                 value="${user.home}/gluegen.properties">
      <not>
        <isset property="gluegen.user.properties.file" />
      </not>
    </condition>
    <property name="gluegen.user.properties.file.set" value="${gluegen.user.properties.file}"/>
    <property file="${gluegen.user.properties.file.set}" />
    <echo message="Loaded ${gluegen.user.properties.file.set}." />
    <fail message="antlr.jar was not specified in gluegen.properties. Please see README.txt for instructions" unless="antlr.jar"/>
    <echo message="antlr.jar=${antlr.jar}" />
  </target>

</project>