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.

32 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">
  6. <exec executable="${ndk.dir}/ndk-build" dir="${basedir}" failonerror="true">
  7. <arg value="clean"/>
  8. </exec>
  9. </target>
  10. <target name="-pre-build">
  11. <condition property="makefileConfig" value="Debug" else="Release">
  12. <equals arg1="${ant.project.invoked-targets}" arg2="debug"/>
  13. </condition>
  14. <condition property="ndkDebugValue" value="NDK_DEBUG=1" else="NDK_DEBUG=0">
  15. <equals arg1="${ant.project.invoked-targets}" arg2="debug"/>
  16. </condition>
  17. <condition property="app_abis" value="armeabi armeabi-v7a" else="armeabi armeabi-v7a">
  18. <equals arg1="${ant.project.invoked-targets}" arg2="debug"/>
  19. </condition>
  20. <exec executable="${ndk.dir}/ndk-build" dir="${basedir}" failonerror="true">
  21. <arg value="--jobs=2"/>
  22. <arg value="CONFIG=${makefileConfig}"/>
  23. <arg value="${ndkDebugValue}"/>
  24. <arg value="APP_ABI=${app_abis}"/>
  25. </exec>
  26. <delete file="${out.final.file}"/>
  27. <delete file="${out.packaged.file}"/>
  28. </target>
  29. <import file="${sdk.dir}/tools/ant/build.xml"/>
  30. </project>