|
1 |
<project name="copy-native" default="install-binaries" basedir=".">
|
|
2 |
<description>
|
|
3 |
Downloads and copy all native dependencies.
|
|
4 |
</description>
|
|
5 |
<property name="binaries" location="${basedir}/../binaries/" />
|
|
6 |
<property name="buildman.executable" location="${basedir}/buildman/bin/bmn.py" />
|
|
7 |
<property environment="env" />
|
|
8 |
<condition property="depman" value="${env.HOMEPATH}/DepMan/">
|
|
9 |
<or>
|
|
10 |
<os family="windows" />
|
|
11 |
<os family="win9x" />
|
|
12 |
<os name="Windows Vista" />
|
|
13 |
</or>
|
|
14 |
</condition>
|
|
15 |
<condition property="depman" value="${env.HOME}/.depman/">
|
|
16 |
<os family="unix" />
|
|
17 |
</condition>
|
|
18 |
<condition property="depman" value="/Developer/DepMan/">
|
|
19 |
<os family="mac" />
|
|
20 |
</condition>
|
|
21 |
|
|
22 |
<condition property="isLinux">
|
|
23 |
<os family="unix" />
|
|
24 |
</condition>
|
|
25 |
<condition property="isWindows">
|
|
26 |
<or>
|
|
27 |
<os family="windows" />
|
|
28 |
<os family="win9x" />
|
|
29 |
<os name="Windows Vista" />
|
|
30 |
</or>
|
|
31 |
</condition>
|
|
32 |
<condition property="isMac">
|
|
33 |
<os family="mac" />
|
|
34 |
</condition>
|
|
35 |
|
|
36 |
<condition property="binaries-dir" value="${binaries}/w32/3D">
|
|
37 |
<or>
|
|
38 |
<os family="windows" />
|
|
39 |
<os family="win9x" />
|
|
40 |
<os name="Windows Vista" />
|
|
41 |
</or>
|
|
42 |
</condition>
|
|
43 |
<condition property="binaries-dir" value="${binaries}/linux/3D">
|
|
44 |
<os family="unix" />
|
|
45 |
</condition>
|
|
46 |
<condition property="binaries-dir" value="${binaries}/mac/3D">
|
|
47 |
<os family="mac" />
|
|
48 |
</condition>
|
|
49 |
|
|
50 |
|
|
51 |
<target name="install-binaries" depends="copy-binaries">
|
|
52 |
<copy todir="${install-binaries-dir}">
|
|
53 |
<fileset dir="${binaries-dir}" includes="**/**"
|
|
54 |
excludes="*.exe,*.head,links.properties" />
|
|
55 |
</copy>
|
|
56 |
</target>
|
|
57 |
|
|
58 |
<target name="copy-binaries"
|
|
59 |
depends="copy-linux-binaries,copy-win-binaries,copy-mac-binaries">
|
|
60 |
</target>
|
|
61 |
|
|
62 |
<target name="copy-win-binaries" if="isWindows"
|
|
63 |
depends="update-binaries-remote">
|
|
64 |
<mkdir dir="${binaries-dir}" />
|
|
65 |
<copy todir="${binaries-dir}">
|
|
66 |
<fileset dir="${depman}/bin/" includes="**/**"
|
|
67 |
excludes="*.exe" />
|
|
68 |
</copy>
|
|
69 |
</target>
|
|
70 |
|
|
71 |
<target name="copy-linux-binaries" if="isLinux"
|
|
72 |
depends="update-binaries-remote">
|
|
73 |
<mkdir dir="${binaries-dir}" />
|
|
74 |
<copy todir="${binaries-dir}">
|
|
75 |
<fileset dir="${depman}/lib/" includes="*.so*,**/*.so*"
|
|
76 |
followsymlinks="false" />
|
|
77 |
</copy>
|
|
78 |
|
|
79 |
<exec executable="${basedir}/gen_simb_link.sh" />
|
|
80 |
|
|
81 |
<!--
|
|
82 |
<exec executable="bash">
|
|
83 |
<arg value="-c"/>
|
|
84 |
<arg value="find ${depman}/lib/ -type l -exec ls -l {} ';' | sed 's/.*[.][/]//g' | sed 's/\(.*\) -> \(.*\)$/ln -s \2 \1/g' > ${binaries-dir}/install.sh.tmp"/>
|
|
85 |
</exec>
|
|
86 |
<concat destfile="${binaries-dir}/install-3D.sh">#!bin/sh
|
|
87 |
|
|
88 |
</concat>
|
|
89 |
<concat destfile="${binaries-dir}/install-3D.sh" append="true">
|
|
90 |
<filelist dir="${binaries-dir}" files="install.sh.tmp"/>
|
|
91 |
</concat>
|
|
92 |
<delete file="${binaries-dir}/install.sh.tmp"/>
|
|
93 |
<exec executable="bash">
|
|
94 |
<arg value="-c"/>
|
|
95 |
<arg value="cd ${depman}/lib/ ; (find . -type l -exec ls -l {} ';' | sed 's/.*[.][/]//g' | sed 's/\(.*\) -> \(.*\)$/\1=\2/g' > ${binaries-dir}/links.properties)"/>
|
|
96 |
</exec>
|
|
97 |
-->
|
|
98 |
</target>
|
|
99 |
<target name="copy-mac-binaries" if="isMac"
|
|
100 |
depends="update-binaries-remote">
|
|
101 |
<mkdir dir="${binaries-dir}" />
|
|
102 |
<copy todir="${binaries-dir}">
|
|
103 |
<fileset dir="${depman}/lib/"
|
|
104 |
includes="*.so*,**/*.so*,*.dylib*,**/*.dylib*,*.jnilib*,**/*.jnilib*"
|
|
105 |
followsymlinks="false" />
|
|
106 |
</copy>
|
|
107 |
|
|
108 |
<exec executable="${basedir}/gen_simb_link_mac.sh" />
|
|
109 |
|
|
110 |
<!--
|
|
111 |
<exec executable="bash">
|
|
112 |
<arg value="-c"/>
|
|
113 |
<arg value="find ${depman}/lib/ -type l -exec ls -l {} ';' | sed 's/.*[.][/]//g' | sed 's/\(.*\) -> \(.*\)$/ln -s \2 \1/g' > ${binaries-dir}/install.sh.tmp"/>
|
|
114 |
</exec>
|
|
115 |
<concat destfile="${binaries-dir}/install-3D.sh">#!bin/sh
|
|
116 |
|
|
117 |
</concat>
|
|
118 |
<concat destfile="${binaries-dir}/install-3D.sh" append="true">
|
|
119 |
<filelist dir="${binaries-dir}" files="install.sh.tmp"/>
|
|
120 |
</concat>
|
|
121 |
<delete file="${binaries-dir}/install.sh.tmp"/>
|
|
122 |
<exec executable="bash">
|
|
123 |
<arg value="-c"/>
|
|
124 |
<arg value="cd ${depman}/lib/ ; (find . -type l -exec ls -l {} ';' | sed 's/.*[.][/]//g' | sed 's/\(.*\) -> \(.*\)$/\1=\2/g' > ${binaries-dir}/links.properties)"/>
|
|
125 |
</exec>
|
|
126 |
-->
|
|
127 |
</target>
|
|
128 |
|
|
129 |
|
|
130 |
<target name="update-binaries-cache">
|
|
131 |
<exec executable="python">
|
|
132 |
<arg value="${buildman.executable}" />
|
|
133 |
<arg value="update" />
|
|
134 |
<arg value="--cache" />
|
|
135 |
</exec>
|
|
136 |
</target>
|
|
137 |
|
|
138 |
<target name="update-binaries-remote">
|
|
139 |
<exec executable="python">
|
|
140 |
<arg value="${buildman.executable}" />
|
|
141 |
<arg value="update" />
|
|
142 |
<arg value="--remote" />
|
|
143 |
</exec>
|
|
144 |
</target>
|
|
145 |
|
|
146 |
<target name="update-binaries-atifglrx-remote">
|
|
147 |
<exec executable="python">
|
|
148 |
<arg value="${buildman.executable}" />
|
|
149 |
<arg value="update" />
|
|
150 |
<arg value="--file" />
|
|
151 |
<arg value="depman-atifglrx.xml" />
|
|
152 |
<arg value="--remote" />
|
|
153 |
</exec>
|
|
154 |
</target>
|
|
155 |
</project>
|
0 |
156 |
|