build.xml 3.9 KB

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