-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhxcpp_build.xml
22 lines (22 loc) · 1.18 KB
/
hxcpp_build.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<xml>
<files id="haxe">
<compilerflag value="-DCALLFUNC_CPP" unless="windows"/>
<compilerflag value="/DCALLFUNC_CPP" if="windows"/>
<compilerflag value="-I/usr/local/include/" if="callfunc_unit_test" />
<compilerflag value="-I${this_dir}/src/c/" unless="haxelib:callfunc||windows"/>
<compilerflag value="/I${this_dir}/src/c/" if="windows" unless="haxelib:callfunc"/>
<compilerflag value="-I${haxelib:callfunc}/src/c/" if="haxelib:callfunc" unless="windows" />
<compilerflag value="/I${haxelib:callfunc}/src/c/" if="haxelib:callfunc windows" />
<compilerflag value="/I${callfunc_libffi_msbuild_include}" if="callfunc_libffi_msbuild_include" />
<file name="${this_dir}/src/c/callfunc_hxcpp.cpp">
<depend name="${this_dir}/src/c/callfunc.h"/>
<depend name="${this_dir}/src/c/callfunc.c"/>
</file>
</files>
<target id="haxe">
<lib name="-lffi" unless="windows"/>
<lib base="libffi" if="windows"/>
<flag value="-L/usr/local/lib" if="callfunc_unit_test" />
<flag value="-libpath:${callfunc_libffi_msbuild_lib}" if="callfunc_libffi_msbuild_lib" />
</target>
</xml>