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