forked from haxeui/hxWidgets
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Build.xml
52 lines (46 loc) · 2.19 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
51
52
<xml>
<set name="lib_folder" value="vc_dll" />
<set name="lib_folder" value="vc_x64_dll" if="HXCPP_M64" />
<set name="lib_folder" value="vc_lib" if="WXSTATIC" />
<set name="lib_folder" value="vc_x64_lib" if="WXSTATIC HXCPP_M64" />
<echo value="Using wxWidgets from: ${WXWIN}\lib\${lib_folder}" />
<section if="windows">
<files id="haxe">
<compilerflag value="-I${WXWIN}\include" />
<compilerflag value="-I${WXWIN}\lib\${lib_folder}\mswu" />
<compilerflag value="-I${HXWIDGETS_PATH}\include" />
<compilerflag value="-DUNICODE" />
<compilerflag value="-D_UNICODE" />
<compilerflag value="-DwxMSVC_VERISON_AUTO" />
<compilerflag value="-DwxUSE_GRAPHICS_CONTEXT" />
<compilerflag value="-DWIN32" if="windows" />
<compilerflag value="-D__WXMSW__" if="windows" />
<compilerflag value="-D__WX__=1" />
<compilerflag value="-DWXUSINGDLL" unless="WXSTATIC"/>
<file name="${HXWIDGETS_PATH}\include\custom\wxownerdrawnpanel.cpp" />
</files>
<target id="haxe" tool="linker" toolid="exe">
<lib name="${WXWIN}\lib\${lib_folder}\*.lib" />
<section if="WXSTATIC">
<flag value="/NODEFAULTLIB:LIBCMT" /> <!-- should remove this if using /MT but couldnt see an easy way -->
<flag value="/MANIFEST:EMBED" />
<flag value="/SUBSYSTEM:windows" unless="debug" />
<flag value="/ENTRY:mainCRTStartup" unless="debug" />
<!--
<flag value="/MANIFESTINPUT:${haxelib:hxWidgets}/hxWidgets.manifest" />
-->
<lib name="user32.lib" />
<lib name="winspool.lib" />
<lib name="advapi32.lib" />
<lib name="gdi32.lib" />
<lib name="comdlg32.lib" />
<lib name="comctl32.lib" />
<lib name="ole32.lib" />
<lib name="oleaut32.lib" />
<lib name="rpcrt4.lib" />
<lib name="shell32.lib" />
<lib name="kernel32.lib" />
</section>
</target>
</section>
</xml>