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