File: build_es.xml

package info (click to toggle)
lwjgl 2.9.3%2Bdfsg-6
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, sid
  • size: 9,520 kB
  • sloc: java: 70,871; ansic: 11,399; xml: 2,195; objc: 906; lisp: 76; makefile: 12; sh: 1
file content (67 lines) | stat: -rw-r--r-- 2,502 bytes parent folder | download | duplicates (3)
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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
<?xml version="1.0"?>

<project name="lwjgl native code, native code" basedir="../../bin/lwjgles" default="compile">
	<property name="native" location="../../src/native"/>
	<property environment="env"/>
	<property name="sdkhome" location="${env.MSSDK}"/>

	<target name="compile_dir">
		<apply dir="." failonerror="true" executable="cl" dest="." skipemptyfilesets="true" parallel="true">
			<arg line="/c /W2 /EHsc /Ox /Gy /MT /MP /nologo"/>
			<arg value="/I${sdkhome}\include"/>
			<arg value="/I${java.home}\..\include"/>
			<arg value="/I${java.home}\..\include\win32"/>
			<arg value="/I${native}\common"/>
			<arg value="/I${native}\common\opengles"/>
			<arg value="/I${native}\windows"/>
			<arg value="/I${native}\windows\opengles"/>
			<srcfile/>
			<fileset dir="${native}/common" includes="*.c"/>
			<fileset dir="${native}/common/opengles" includes="*.c"/>
			<fileset dir="${native}/generated/openal" includes="*.c"/>
			<fileset dir="${native}/generated/opencl" includes="*.c"/>
			<fileset dir="${native}/generated/opengles" includes="*.c"/>
			<fileset dir="${native}/windows" includes="*.c"/>
			<fileset dir="${native}/windows/opengles" includes="*.c"/>
			<mapper type="glob" from="*.c" to="*.obj"/>
		</apply>
	</target>

	<target name="link">
		<apply dir="." parallel="true" executable="cl" failonerror="true">
			<arg line="/LD /nologo"/>
			<srcfile/>
			<arg line="/Fe${dllname} /link"/>
			<arg value="/LIBPATH:${java.home}\..\lib"/>
			<arg value="/LIBPATH:${sdkhomelib}"/>
			<arg value="/LIBPATH:..\..\libs\windows"/>
			<arg value="/OPT:REF"/>
			<arg value="/OPT:ICF"/>
			<arg line="/DLL /DELAYLOAD:jawt.dll ${libs}"/>
			<fileset dir="." includes="*.obj"/>
		</apply>
	</target>

	<target name="clean">
		<delete>
			<fileset dir="." includes="*.obj"/>
			<fileset dir="." includes="*.dll"/>
			<fileset dir="." includes="*.exp"/>
			<fileset dir="." includes="*.lib"/>
		</delete>
	</target>

	<target name="compile">
		<condition property="sdkhomelib" value="${sdkhome}\lib" else="${sdkhome}\lib\x64">
			<equals arg1="${os.arch}" arg2="x86"/>
		</condition>
		<condition property="dllname" value="lwjgl.dll" else="lwjgl64.dll">
			<equals arg1="${os.arch}" arg2="x86"/>
		</condition>
		<echo message="${sdkhomelib}"/>
		<property name="libs" value="Kernel32.lib ole32.lib libEGL.lib Version.lib user32.lib Gdi32.lib Advapi32.lib jawt.lib delayimp.lib winmm.lib Comctl32.lib"/>
		<antcall target="compile_dir"/>
		<antcall target="link"/>
    </target>
</project>