]>
Commit | Line | Data |
---|---|---|
1 | <?xml version="1.0" encoding="UTF-8"?> | |
2 | <!-- | |
3 | ||
4 | This file is part of the PulseView project. | |
5 | ||
6 | Copyright (C) 2014 Marcus Comstedt <marcus@mc.pp.se> | |
7 | ||
8 | This program is free software: you can redistribute it and/or modify | |
9 | it under the terms of the GNU General Public License as published by | |
10 | the Free Software Foundation, either version 3 of the License, or | |
11 | (at your option) any later version. | |
12 | ||
13 | This program is distributed in the hope that it will be useful, | |
14 | but WITHOUT ANY WARRANTY; without even the implied warranty of | |
15 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
16 | GNU General Public License for more details. | |
17 | ||
18 | You should have received a copy of the GNU General Public License | |
19 | along with this program. If not, see <http://www.gnu.org/licenses/>. | |
20 | ||
21 | --> | |
22 | <project> | |
23 | <property name="pulseview-source-path" value="${basedir}/.."/> | |
24 | <property name="pulseview-build-path" value="${pulseview-source-path}"/> | |
25 | <property name="cmake-cache" value="${pulseview-build-path}/CMakeCache.txt"/> | |
26 | ||
27 | <target name="-get-prefix"> | |
28 | <loadproperties srcFile="${cmake-cache}" prefix="cmake"> | |
29 | <filterchain> | |
30 | <replaceregex pattern=":[A-Z]*=" replace="="/> | |
31 | </filterchain> | |
32 | </loadproperties> | |
33 | <property name="prefix" value="${cmake.CMAKE_INSTALL_PREFIX}"/> | |
34 | </target> | |
35 | ||
36 | <target name="-declare-anttasks" depends="-get-prefix"> | |
37 | <taskdef resource="anttasks.properties" | |
38 | classpath="${prefix}/jar/sigrok-androidutils-anttasks.jar"/> | |
39 | </target> | |
40 | ||
41 | <target name="-pre-build" depends="-get-prefix, -declare-anttasks"> | |
42 | <copylibs todir="${native.libs.absolute.dir}" property="bundled_libs"> | |
43 | <fileset dir="${pulseview-build-path}/libs"/> | |
44 | <include name="libgnustl_shared.so"/> | |
45 | <exclude name="lib*.so"/> | |
46 | </copylibs> | |
47 | <copy file="${prefix}/jar/sigrok-androidutils.jar" | |
48 | tofile="${jar.libs.absolute.dir}/sigrok-androidutils.jar"/> | |
49 | <copy file="${prefix}/share/sigrok-androidutils/device_filter.xml" | |
50 | tofile="${resource.absolute.dir}/xml/device_filter.xml"/> | |
51 | <copy file="bundled_libs.xml.in" | |
52 | tofile="${resource.absolute.dir}/values/bundled_libs.xml"> | |
53 | <filterset> | |
54 | <filter token="bundled_libs" value="${bundled_libs}"/> | |
55 | </filterset> | |
56 | </copy> | |
57 | <copy file="${pulseview-source-path}/icons/sigrok-logo-notext.png" | |
58 | tofile="${resource.absolute.dir}/drawable/logo.png"/> | |
59 | <copy todir="${source.absolute.dir}"> | |
60 | <fileset dir="${prefix}/src/android/java/src"> | |
61 | <include name="org/qtproject/qt5/android/bindings/**"/> | |
62 | <include name="org/kde/necessitas/ministro/**"/> | |
63 | </fileset> | |
64 | </copy> | |
65 | <copy todir="${resource.absolute.dir}"> | |
66 | <fileset dir="${prefix}/src/android/java/res"> | |
67 | <include name="**/strings.xml"/> | |
68 | </fileset> | |
69 | </copy> | |
70 | <copy todir="${asset.absolute.dir}/libsigrokdecode"> | |
71 | <fileset dir="${prefix}/share/libsigrokdecode"/> | |
72 | </copy> | |
73 | <copy todir="${asset.absolute.dir}/python3.3"> | |
74 | <fileset dir="${prefix}/lib/python3.3"> | |
75 | <include name="**/*.py"/> | |
76 | <exclude name="**/test/**"/> | |
77 | </fileset> | |
78 | </copy> | |
79 | </target> | |
80 | </project> |