]> sigrok.org Git - pulseview.git/blame_incremental - android/custom_rules.xml
android/: Add some missing license headers.
[pulseview.git] / android / custom_rules.xml
... / ...
CommitLineData
1<?xml version="1.0" encoding="UTF-8"?>
2<!--
3 This file is part of the PulseView project.
4
5 Copyright (C) 2014 Marcus Comstedt <marcus@mc.pp.se>
6
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.
11
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.
16
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/>.
19-->
20<project>
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"/>
24
25 <target name="-get-prefix">
26 <loadproperties srcFile="${cmake-cache}" prefix="cmake">
27 <filterchain>
28 <replaceregex pattern=":[A-Z]*=" replace="="/>
29 </filterchain>
30 </loadproperties>
31 <property name="prefix" value="${cmake.CMAKE_INSTALL_PREFIX}"/>
32 </target>
33
34 <target name="-declare-anttasks" depends="-get-prefix">
35 <taskdef resource="anttasks.properties"
36 classpath="${prefix}/jar/sigrok-androidutils-anttasks.jar"/>
37 </target>
38
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"/>
44 </copylibs>
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">
51 <filterset>
52 <filter token="bundled_libs" value="${bundled_libs}"/>
53 </filterset>
54 </copy>
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/**"/>
61 </fileset>
62 </copy>
63 <copy todir="${resource.absolute.dir}">
64 <fileset dir="${prefix}/src/android/java/res">
65 <include name="**/strings.xml"/>
66 </fileset>
67 </copy>
68 <copy todir="${asset.absolute.dir}/libsigrokdecode">
69 <fileset dir="${prefix}/share/libsigrokdecode"/>
70 </copy>
71 <copy todir="${asset.absolute.dir}/python3.3">
72 <fileset dir="${prefix}/lib/python3.3">
73 <include name="**/*.py"/>
74 <exclude name="**/test/**"/>
75 </fileset>
76 </copy>
77 </target>
78</project>