comparison prism-es2/build-linux.xml @ 3762:c200cd542665

Replaced lambdas in FilteredList and TransformationList with anonymous classes.
author Martin Sladecek <martin.sladecek@oracle.com>
date Thu, 30 May 2013 08:19:27 +0200
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:254f2aa6dfff
1 <?xml version="1.0" encoding="UTF-8"?>
2 <project name="prism-es2" default="all" basedir=".">
3
4 <property name="prism-es2.classes.dir" value="../prism-es2-x11/build/classes"/>
5 <property name="prism-common.classes.dir" value="../../rt/prism-common/build/classes/"/>
6
7 <property name="prism-es2.lib.file" value="${native.dist.dir}/libprism-es2.so"/>
8 <property name="prism-es2.eglfb.lib.file" value="${native.dist.dir}/libprism-es2-eglfb.so"/>
9 <property name="prism-es2.eglx11.lib.file" value="${native.dist.dir}/libprism-es2-eglx11.so"/>
10
11 <property name="cpp.dir" value="../prism-es2-native"/>
12
13 <uptodate property="native.x11.uptodate" targetfile="${prism-es2.lib.file}">
14 <srcfiles dir="${cpp.dir}/src" includes="**/*.c"/>
15 <srcfiles dir="${cpp.dir}/src" includes="**/*.h"/>
16 <!-- Platform specific source files -->
17 <srcfiles dir="${cpp.dir}/src/x11" includes="*.c"/>
18 </uptodate>
19
20 <uptodate property="native.eglx11.uptodate" targetfile="${prism-es2.eglx11.lib.file}">
21 <srcfiles dir="${cpp.dir}/src" includes="**/*.c"/>
22 <srcfiles dir="${cpp.dir}/src" includes="**/*.h"/>
23 <!-- Platform specific source files -->
24 <srcfiles dir="${cpp.dir}/src/eglx11" includes="*.c"/>
25 </uptodate>
26
27 <uptodate property="native.eglfb.uptodate" targetfile="${prism-es2.eglfb.lib.file}">
28 <srcfiles dir="${cpp.dir}/src" includes="**/*.c"/>
29 <srcfiles dir="${cpp.dir}/src" includes="**/*.h"/>
30 <!-- Platform specific source files -->
31 <srcfiles dir="${cpp.dir}/src/eglfb" includes="*.c"/>
32 </uptodate>
33
34 <condition property="build.native.host">
35 <and>
36 <not>
37 <isset property="native.x11.uptodate"/>
38 </not>
39 <not>
40 <isset property="isCrossPlatform"/>
41 </not>
42 </and>
43 </condition>
44
45 <target name="compile-native-eglfb" if="${cross.build.EGL.FB}" unless="native.eglfb.uptodate">
46 <fail unless="cross.rt.es2.eglfb.cflags" message="Missing cross.rt.es2.eglfb.cflags definition"/>
47 <fail unless="cross.rt.es2.eglfb.ldflags" message="Missing cross.rt.es2.eglfb.ldflags definition"/>
48 <exec executable="make" dir="../prism-es2-native" failonerror="true">
49 <arg value="JDK_HOME=${platform.home}"/>
50 <arg value="DIST_DIR=${native.dist.dir}"/>
51 <arg value="BUILD_DIR=${native.build.dir}/eglfb/"/>
52
53 <arg value="PRISMES2_LIB=${prism-es2.eglfb.lib.file}"/>
54 <arg value="PRISMES2_LINK_LIBS=${cross.rt.es2.eglfb.ldflags}"/>
55 <arg value="PRISMES2_NATIVE_SRC=src/eglfb"/>
56 <arg value="PRISMES2_PLATFORM_CLASS_DIR=../prism-es2-eglfb/build/classes"/>
57 <arg value="PRISMES2_PLATFORM_PKG=com.sun.prism.es2"/>
58
59 <arg value="CC=${crosstools.gcc}"/>
60 <arg value="EXTRA_CFLAGS=${cross.rt.es2.eglfb.cflags}"/>
61 <arg value="LINK=${crosstools.gcc}"/>
62 <arg value="all"/>
63 </exec>
64 </target>
65
66 <target name="compile-native-eglx11" if="${cross.build.EGL.X11}" unless="native.eglx11.uptodate">
67 <fail unless="cross.rt.es2.eglx11.cflags" message="Missing cross.rt.es2.eglx11.cflags definition"/>
68 <fail unless="cross.rt.es2.eglx11.ldflags" message="Missing cross.rt.es2.eglx11.ldflags definition"/>
69 <exec executable="make" dir="../prism-es2-native" failonerror="true">
70 <arg value="JDK_HOME=${platform.home}"/>
71 <arg value="DIST_DIR=${native.dist.dir}"/>
72 <arg value="BUILD_DIR=${native.build.dir}/eglx11/"/>
73
74 <arg value="PRISMES2_LIB=${prism-es2.eglx11.lib.file}"/>
75 <arg value="PRISMES2_LINK_LIBS=${cross.rt.es2.eglx11.ldflags}"/>
76 <arg value="PRISMES2_NATIVE_SRC=src/eglx11"/>
77 <arg value="PRISMES2_PLATFORM_CLASS_DIR=../prism-es2-eglx11/build/classes"/>
78 <arg value="PRISMES2_PLATFORM_PKG=com.sun.prism.es2"/>
79
80 <arg value="CC=${crosstools.gcc}"/>
81 <arg value="EXTRA_CFLAGS=${cross.rt.es2.eglx11.cflags}"/>
82 <arg value="LINK=${crosstools.gcc}"/>
83 <arg value="all"/>
84 </exec>
85 </target>
86
87 <target name="compile-native-host" if="build.native.host">
88 <exec executable="make" dir="../prism-es2-native" failonerror="true">
89 <arg value="JDK_HOME=${platform.home}"/>
90 <arg value="DIST_DIR=${native.dist.dir}"/>
91 <arg value="BUILD_DIR=${native.build.dir}"/>
92
93 <!--
94 <arg value="PRISMES2_CLASS_DIR=../prism-es2/build/classes"/>
95 <arg value="PRISM_DEP_CP=${prism-common.classes.dir}"/>
96 -->
97
98 <arg value="all"/>
99 </exec>
100 </target>
101
102 <target name="compile-native" depends="compile-native-host,compile-native-eglx11,compile-native-eglfb"/>
103
104 <target name="clean-native" >
105 <exec executable="make" dir="../prism-es2-native" failonerror="true">
106 <arg value="DIST_DIR=${native.dist.dir}"/>
107 <arg value="BUILD_DIR=${native.build.dir}"/>
108 <arg value="clean"/>
109 </exec>
110 </target>
111
112 </project>