build.xml 3.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <project name="libPluginProtocol" default="plugin-publish">
  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. <!-- if sdk.dir was not set from one of the property file, then
  24. get it from the ANDROID_HOME env var.
  25. This must be done before we load project.properties since
  26. the proguard config can use sdk.dir -->
  27. <property environment="env" />
  28. <condition property="sdk.dir" value="${env.ANDROID_HOME}">
  29. <isset property="env.ANDROID_HOME" />
  30. </condition>
  31. <!-- The project.properties file is created and updated by the 'android'
  32. tool, as well as ADT.
  33. This contains project specific properties such as project target, and library
  34. dependencies. Lower level build properties are stored in ant.properties
  35. (or in .classpath for Eclipse projects).
  36. This file is an integral part of the build system for your
  37. application and should be checked into Version Control Systems. -->
  38. <loadproperties srcFile="project.properties" />
  39. <!-- quick check on sdk.dir -->
  40. <fail
  41. 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."
  42. unless="sdk.dir"
  43. />
  44. <!--
  45. Import per project custom build rules if present at the root of the project.
  46. This is the place to put custom intermediary targets such as:
  47. -pre-build
  48. -pre-compile
  49. -post-compile (This is typically used for code obfuscation.
  50. Compiled code location: ${out.classes.absolute.dir}
  51. If this is not done in place, override ${out.dex.input.absolute.dir})
  52. -post-package
  53. -post-build
  54. -pre-clean
  55. -->
  56. <import file="custom_rules.xml" optional="true" />
  57. <!-- Import the actual build file.
  58. To customize existing targets, there are two options:
  59. - Customize only one target:
  60. - copy/paste the target into this file, *before* the
  61. <import> task.
  62. - customize it to your needs.
  63. - Customize the whole content of build.xml
  64. - copy/paste the content of the rules files (minus the top node)
  65. into this file, replacing the <import> task.
  66. - customize to your needs.
  67. ***********************
  68. ****** IMPORTANT ******
  69. ***********************
  70. In all cases you must update the value of version-tag below to read 'custom' instead of an integer,
  71. in order to avoid having your file be overridden by tools such as "android update project"
  72. -->
  73. <!-- version-tag: 1 -->
  74. <import file="${plugin.dir}/tools/android/build_common.xml" />
  75. </project>