-
- <property name="pulseview-source-path" value="${basedir}/.."/>
- <property name="pulseview-build-path" value="${pulseview-source-path}"/>
- <property name="cmake-cache" value="${pulseview-build-path}/CMakeCache.txt"/>
-
- <target name="-get-prefix">
- <loadproperties srcFile="${cmake-cache}" prefix="cmake">
- <filterchain>
- <replaceregex pattern=":[A-Z]*=" replace="=" />
- </filterchain>
- </loadproperties>
- <property name="prefix" value="${cmake.CMAKE_INSTALL_PREFIX}"/>
- </target>
-
- <target name="-declare-anttasks" depends="-get-prefix">
- <taskdef resource="anttasks.properties"
- classpath="${prefix}/jar/sigrok-androidutils-anttasks.jar"/>
- </target>
-
- <target name="-pre-build" depends="-get-prefix, -declare-anttasks">
- <copylibs todir="${native.libs.absolute.dir}" property="bundled_libs">
- <fileset dir="${pulseview-build-path}/libs" />
- <include name="libgnustl_shared.so"/>
- <exclude name="lib*.so"/>
- </copylibs>
- <copy file="${prefix}/jar/sigrok-androidutils.jar"
- tofile="${jar.libs.absolute.dir}/sigrok-androidutils.jar"/>
- <copy file="${prefix}/share/sigrok-androidutils/device_filter.xml"
- tofile="${resource.absolute.dir}/xml/device_filter.xml"/>
- <copy file="bundled_libs.xml.in"
- tofile="${resource.absolute.dir}/values/bundled_libs.xml">
- <filterset>
- <filter token="bundled_libs" value="${bundled_libs}"/>
- </filterset>
- </copy>
- <copy file="${pulseview-source-path}/icons/sigrok-logo-notext.png"
- tofile="${resource.absolute.dir}/drawable/logo.png" />
- <copy todir="${source.absolute.dir}">
- <fileset dir="${prefix}/src/android/java/src">
- <include name="org/qtproject/qt5/android/bindings/**"/>
- <include name="org/kde/necessitas/ministro/**"/>
- </fileset>
- </copy>
- <copy todir="${resource.absolute.dir}">
- <fileset dir="${prefix}/src/android/java/res">
- <include name="**/strings.xml"/>
- </fileset>
- </copy>
- <copy todir="${asset.absolute.dir}/libsigrokdecode">
- <fileset dir="${prefix}/share/libsigrokdecode" />
- </copy>
- <copy todir="${asset.absolute.dir}/python3.3">
- <fileset dir="${prefix}/lib/python3.3">
- <include name="**/*.py"/>
- <exclude name="**/test/**"/>
- </fileset>
- </copy>
- </target>
+ <property name="pulseview-source-path" value="${basedir}/.."/>
+ <property name="pulseview-build-path" value="${pulseview-source-path}"/>
+ <property name="cmake-cache" value="${pulseview-build-path}/CMakeCache.txt"/>
+ <target name="-get-prefix">
+ <loadproperties srcFile="${cmake-cache}" prefix="cmake">
+ <filterchain>
+ <replaceregex pattern=":[A-Z]*=" replace="="/>
+ </filterchain>
+ </loadproperties>
+ <property name="prefix" value="${cmake.CMAKE_INSTALL_PREFIX}"/>
+ <property name="android.abi" value="${cmake.ANDROID_ABI}"/>
+ </target>
+ <target name="-declare-anttasks" depends="-get-prefix">
+ <taskdef resource="anttasks.properties"
+ classpath="${prefix}/jar/sigrok-androidutils-anttasks.jar"/>
+ </target>
+ <target name="-pre-build" depends="-get-prefix, -declare-anttasks">
+ <copylibs todir="${native.libs.absolute.dir}" property="bundled_libs">
+ <fileset dir="${pulseview-build-path}/libs"/>
+ <include name="libgnustl_shared.so"/>
+ <include name="libintl.so"/>
+ <include name="libffi.so"/>
+ <exclude name="lib*.so"/>
+ </copylibs>
+ <copy todir="${native.libs.absolute.dir}">
+ <fileset dir="${prefix}/jar">
+ <include name="QtAndroid-bundled.jar" />
+ <include name="QtAndroidAccessibility-bundled.jar" />
+ </fileset>
+ </copy>
+ <copy todir="${native.libs.absolute.dir}/${android.abi}">
+ <fileset dir="${prefix}/lib">
+ <include name="libQt5Core.so" />
+ <include name="libQt5Gui.so" />
+ <include name="libQt5Widgets.so" />
+ <include name="libQt5Svg.so" />
+ </fileset>
+ </copy>
+ <copy todir="${native.libs.absolute.dir}/${android.abi}">
+ <fileset dir="${prefix}/plugins">
+ <include name="platforms/android/libqtforandroid.so"/>
+ <include name="platforms/libqeglfs.so"/>
+ <include name="platforms/libqminimal.so"/>
+ <include name="platforms/libqminimalegl.so"/>
+ <include name="platforms/libqoffscreen.so"/>
+ <include name="generic/libqevdevkeyboardplugin.so"/>
+ <include name="generic/libqevdevmouseplugin.so"/>
+ <include name="generic/libqevdevtabletplugin.so"/>
+ <include name="generic/libqevdevtouchplugin.so"/>
+ <include name="imageformats/libqsvg.so"/>
+ <include name="iconengines/libqsvgicon.so"/>
+ <include name="accessible/libqtaccessiblewidgets.so"/>
+ </fileset>
+ <filtermapper>
+ <replacestring from="/" to="_" />
+ <prefixlines prefix="libplugins_" />
+ </filtermapper>
+ </copy>
+ <copy file="${prefix}/jar/sigrok-androidutils.jar"
+ tofile="${jar.libs.absolute.dir}/sigrok-androidutils.jar"/>
+ <copy file="${prefix}/share/sigrok-androidutils/device_filter.xml"
+ tofile="${resource.absolute.dir}/xml/device_filter.xml"/>
+ <copy file="bundled_libs.xml.in"
+ tofile="${resource.absolute.dir}/values/bundled_libs.xml">
+ <filterset>
+ <filter token="bundled_libs" value="${bundled_libs}"/>
+ </filterset>
+ </copy>
+ <copy file="${pulseview-source-path}/icons/sigrok-logo-notext.png"
+ tofile="${resource.absolute.dir}/drawable/logo.png"/>
+ <copy todir="${source.absolute.dir}">
+ <fileset dir="${prefix}/src/android/java/src">
+ <include name="org/qtproject/qt5/android/bindings/**"/>
+ <include name="org/kde/necessitas/ministro/**"/>
+ </fileset>
+ </copy>
+ <copy todir="${resource.absolute.dir}">
+ <fileset dir="${prefix}/src/android/java/res">
+ <include name="**/strings.xml"/>
+ </fileset>
+ </copy>
+ <copy todir="${asset.absolute.dir}/libsigrokdecode">
+ <fileset dir="${prefix}/share/libsigrokdecode"/>
+ </copy>
+ <copy todir="${asset.absolute.dir}/python3.3">
+ <fileset dir="${prefix}/lib/python3.3">
+ <include name="**/*.py"/>
+ <exclude name="**/test/**"/>
+ <exclude name="**/tests/**"/>
+ <exclude name="**/tkinter/**"/>
+ <exclude name="**/turtledemo/**"/>
+ <exclude name="**/turtle.py"/>
+ <exclude name="**/idlelib/**"/>
+ </fileset>
+ </copy>
+ </target>