The JUCE cross-platform C++ framework, with DISTRHO/KXStudio specific changes
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

38 lines
1.6KB

  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <project name="Juce Demo" default="debug">
  3. <loadproperties srcFile="local.properties"/>
  4. <loadproperties srcFile="project.properties"/>
  5. <path id="android.antlibs">
  6. <pathelement path="${sdk.dir}/tools/lib/anttasks.jar"/>
  7. <pathelement path="${sdk.dir}/tools/lib/sdklib.jar"/>
  8. <pathelement path="${sdk.dir}/tools/lib/androidprefs.jar"/>
  9. </path>
  10. <taskdef name="setup" classname="com.android.ant.SetupTask" classpathref="android.antlibs"/>
  11. <target name="clean">
  12. <exec executable="${ndk.dir}/ndk-build" dir="${basedir}" failonerror="true">
  13. <arg value="clean"/>
  14. </exec>
  15. </target>
  16. <target name="-pre-build">
  17. <condition property="makefileConfig" value="Debug" else="Release">
  18. <equals arg1="${ant.project.invoked-targets}" arg2="debug"/>
  19. </condition>
  20. <condition property="ndkDebugValue" value="NDK_DEBUG=1" else="NDK_DEBUG=0">
  21. <equals arg1="${ant.project.invoked-targets}" arg2="debug"/>
  22. </condition>
  23. <condition property="app_abis" value="armeabi armeabi-v7a" else="armeabi armeabi-v7a">
  24. <equals arg1="${ant.project.invoked-targets}" arg2="debug"/>
  25. </condition>
  26. <exec executable="${ndk.dir}/ndk-build" dir="${basedir}" failonerror="true">
  27. <arg value="--jobs=2"/>
  28. <arg value="CONFIG=${makefileConfig}"/>
  29. <arg value="${ndkDebugValue}"/>
  30. <arg value="APP_ABI=${app_abis}"/>
  31. </exec>
  32. <delete file="${out.final.file}"/>
  33. <delete file="${out.packaged.file}"/>
  34. </target>
  35. <import file="${sdk.dir}/tools/ant/build.xml"/>
  36. </project>