build.xml 3.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <project name="HelloAmber" 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 into
  5. Version Control Systems. -->
  6. <property file="local.properties" />
  7. <!-- The ant.properties file can be created by you. It is only edited by the
  8. 'android' tool to add properties to it.
  9. This is the place to change some Ant specific build properties.
  10. Here are some properties you may want to change/update:
  11. source.dir
  12. The name of the source directory. Default is 'src'.
  13. out.dir
  14. The name of the output directory. Default is 'bin'.
  15. For other overridable properties, look at the beginning of the rules
  16. files in the SDK, at tools/ant/build.xml
  17. Properties related to the SDK location or the project target should
  18. be updated using the 'android' tool with the 'update' action.
  19. This file is an integral part of the build system for your
  20. application and should be checked into Version Control Systems.
  21. -->
  22. <property file="ant.properties" />
  23. <!-- The project.properties file is created and updated by the 'android'
  24. tool, as well as ADT.
  25. This contains project specific properties such as project target, and library
  26. dependencies. Lower level build properties are stored in ant.properties
  27. (or in .classpath for Eclipse projects).
  28. This file is an integral part of the build system for your
  29. application and should be checked into Version Control Systems. -->
  30. <loadproperties srcFile="project.properties" />
  31. <!-- quick check on sdk.dir -->
  32. <fail
  33. message="sdk.dir is missing. Make sure to generate local.properties using 'android update project' or to inject it through an env var"
  34. unless="sdk.dir"
  35. />
  36. <!--
  37. Import per project custom build rules if present at the root of the project.
  38. This is the place to put custom intermediary targets such as:
  39. -pre-build
  40. -pre-compile
  41. -post-compile (This is typically used for code obfuscation.
  42. Compiled code location: ${out.classes.absolute.dir}
  43. If this is not done in place, override ${out.dex.input.absolute.dir})
  44. -post-package
  45. -post-build
  46. -pre-clean
  47. -->
  48. <import file="custom_rules.xml" optional="true" />
  49. <!-- Import the actual build file.
  50. To customize existing targets, there are two options:
  51. - Customize only one target:
  52. - copy/paste the target into this file, *before* the
  53. <import> task.
  54. - customize it to your needs.
  55. - Customize the whole content of build.xml
  56. - copy/paste the content of the rules files (minus the top node)
  57. into this file, replacing the <import> task.
  58. - customize to your needs.
  59. ***********************
  60. ****** IMPORTANT ******
  61. ***********************
  62. In all cases you must update the value of version-tag below to read 'custom' instead of an integer,
  63. in order to avoid having your file be overridden by tools such as "android update project"
  64. -->
  65. <!-- version-tag: 1 -->
  66. <import file="${sdk.dir}/tools/ant/build.xml" />
  67. </project>