/build.xml

http://github.com/bastos/vuvuzela-mirah-android · XML · 86 lines · 33 code · 10 blank · 43 comment · 0 complexity · 9074eb6956a799f7fe0af5f64c575a9d MD5 · raw file

  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <project name="Vuvuzela" default="help">
  3. <!-- The local.properties file is created and updated by the 'android' tool.
  4. It contains the path to the SDK. It should *NOT* be checked in in Version
  5. Control Systems. -->
  6. <property file="local.properties" />
  7. <!-- The build.properties file can be created by you and is never touched
  8. by the 'android' tool. This is the place to change some of the default property values
  9. used by the Ant rules.
  10. Here are some properties you may want to change/update:
  11. application.package
  12. the name of your application package as defined in the manifest. Used by the
  13. 'uninstall' rule.
  14. source.dir
  15. the name of the source directory. Default is 'src'.
  16. out.dir
  17. the name of the output directory. Default is 'bin'.
  18. Properties related to the SDK location or the project target should be updated
  19. using the 'android' tool with the 'update' action.
  20. This file is an integral part of the build system for your application and
  21. should be checked in in Version Control Systems.
  22. -->
  23. <property file="build.properties" />
  24. <!-- The default.properties file is created and updated by the 'android' tool, as well
  25. as ADT.
  26. This file is an integral part of the build system for your application and
  27. should be checked in in Version Control Systems. -->
  28. <property file="default.properties" />
  29. <!-- Custom Android task to deal with the project target, and import the proper rules.
  30. This requires ant 1.6.0 or above. -->
  31. <path id="android.antlibs">
  32. <pathelement path="${sdk.dir}/tools/lib/anttasks.jar" />
  33. <pathelement path="${sdk.dir}/tools/lib/sdklib.jar" />
  34. <pathelement path="${sdk.dir}/tools/lib/androidprefs.jar" />
  35. <pathelement path="${sdk.dir}/tools/lib/apkbuilder.jar" />
  36. <pathelement path="${sdk.dir}/tools/lib/jarutils.jar" />
  37. </path>
  38. <taskdef name="setup"
  39. classname="com.android.ant.SetupTask"
  40. classpathref="android.antlibs" />
  41. <!-- Execute the Android Setup task that will setup some properties specific to the target,
  42. and import the build rules files.
  43. The rules file is imported from
  44. <SDK>/platforms/<target_platform>/templates/android_rules.xml
  45. To customize some build steps for your project:
  46. - copy the content of the main node <project> from android_rules.xml
  47. - paste it in this build.xml below the <setup /> task.
  48. - disable the import by changing the setup task below to <setup import="false" />
  49. This will ensure that the properties are setup correctly but that your customized
  50. build steps are used.
  51. -->
  52. <setup />
  53. <target name="compile" depends="-resource-src, -aidl"
  54. description="Compiles project's .duby files into .class files">
  55. <exec executable="javac" dir="gen">
  56. <arg value="-d"/>
  57. <arg value="../bin/classes"/>
  58. <arg value="../gen/bastos/vuvuzela/R.java"/>
  59. </exec>
  60. <exec executable="dubyc" dir="src">
  61. <env key="CLASSPATH" file="${android.jar}" />
  62. <arg value="-d" />
  63. <arg value="../bin/classes" />
  64. <arg value="-c"/>
  65. <arg value="../bin/classes" />
  66. <arg value="." />
  67. </exec>
  68. </target>
  69. </project>