-
Notifications
You must be signed in to change notification settings - Fork 1
/
Build.xml
50 lines (34 loc) · 1.39 KB
/
Build.xml
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
45
46
47
48
49
50
<xml>
<!-- Build file for the Haxe wrapper of gameplay3d -->
<!-- Install hxcpp and run with 'haxelib run hxcpp Build.xml' -->
<include name="${HXCPP}/build-tool/BuildCommon.xml"/>
<!-- Determine the output location for the NDLL -->
<set name="LIB_DIR" value="-L" unless="windows"/>
<set name="LIB_DIR" value="-libpath:" if="windows"/>
<section if="linux">
<set name="LIB_SUFFIX" value="Linux" unless="HXCPP_M64"/>
<set name="LIB_SUFFIX" value="Linux64" if="HXCPP_M64"/>
</section>
<!-- Specify the list of files to be compiled and the compile options. -->
<files id="common">
<compilerflag value="-Iinclude"/>
<file name="src/main.cpp"/>
<file name="src/gl.cpp"/>
</files>
<!-- Generate the NDLL. -->
<set name="configuration_type" value="dll"/>
<target id="ogl" output="ogl" tool="linker" toolid="${configuration_type}">
<outdir name="ndll/${LIB_SUFFIX}"/>
<ext value=".ndll"/>
<files id="common"/>
<flag value="${LIB_DIR}${LIB_SUFFIX}"/>
<!------------------------------------------------------>
<!-- Static libraries for OpenGL and its dependencies -->
<!------------------------------------------------------>
<lib name="-lGL"/>
<lib name="-lGLEW"/>
</target>
<target id="default">
<target id="ogl"/>
</target>
</xml>