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.

34 lines
1.3KB

  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <project name="JuceDemo" default="debug">
  3. <loadproperties srcFile="local.properties"/>
  4. <loadproperties srcFile="project.properties"/>
  5. <target name="clean" depends="android_rules.clean">
  6. <delete dir="libs"/>
  7. <delete dir="obj"/>
  8. <exec executable="${ndk.dir}/ndk-build" dir="${basedir}" failonerror="true">
  9. <arg value="clean"/>
  10. </exec>
  11. </target>
  12. <target name="-pre-build">
  13. <condition property="makefileConfig" value="Debug" else="Release">
  14. <equals arg1="${ant.project.invoked-targets}" arg2="debug"/>
  15. </condition>
  16. <condition property="ndkDebugValue" value="NDK_DEBUG=1" else="NDK_DEBUG=0">
  17. <equals arg1="${ant.project.invoked-targets}" arg2="debug"/>
  18. </condition>
  19. <condition property="app_abis" value="armeabi armeabi-v7a" else="armeabi armeabi-v7a">
  20. <equals arg1="${ant.project.invoked-targets}" arg2="debug"/>
  21. </condition>
  22. <exec executable="${ndk.dir}/ndk-build" dir="${basedir}" failonerror="true">
  23. <arg value="--jobs=4"/>
  24. <arg value="CONFIG=${makefileConfig}"/>
  25. <arg value="${ndkDebugValue}"/>
  26. <arg value="APP_ABI=${app_abis}"/>
  27. </exec>
  28. <delete file="${out.final.file}"/>
  29. <delete file="${out.packaged.file}"/>
  30. </target>
  31. <import file="${sdk.dir}/tools/ant/build.xml"/>
  32. </project>