Android.bp 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247
  1. package {
  2. default_applicable_licenses: ["Android-Apache-2.0"],
  3. }
  4. python_binary_host {
  5. name: "check_boot_jars",
  6. main: "check_boot_jars/check_boot_jars.py",
  7. srcs: [
  8. "check_boot_jars/check_boot_jars.py",
  9. ],
  10. version: {
  11. py2: {
  12. enabled: true,
  13. },
  14. py3: {
  15. enabled: false,
  16. },
  17. },
  18. }
  19. python_binary_host {
  20. name: "manifest_fixer",
  21. main: "manifest_fixer.py",
  22. srcs: [
  23. "manifest_fixer.py",
  24. ],
  25. version: {
  26. py2: {
  27. enabled: true,
  28. },
  29. py3: {
  30. enabled: false,
  31. },
  32. },
  33. libs: [
  34. "manifest_utils",
  35. ],
  36. }
  37. python_test_host {
  38. name: "manifest_fixer_test",
  39. main: "manifest_fixer_test.py",
  40. srcs: [
  41. "manifest_fixer_test.py",
  42. "manifest_fixer.py",
  43. ],
  44. version: {
  45. py2: {
  46. enabled: true,
  47. },
  48. py3: {
  49. enabled: false,
  50. },
  51. },
  52. libs: [
  53. "manifest_utils",
  54. ],
  55. test_suites: ["general-tests"],
  56. }
  57. python_library_host {
  58. name: "manifest_utils",
  59. srcs: [
  60. "manifest.py",
  61. ],
  62. version: {
  63. py2: {
  64. enabled: true,
  65. },
  66. py3: {
  67. enabled: false,
  68. },
  69. },
  70. }
  71. python_binary_host {
  72. name: "manifest_check",
  73. main: "manifest_check.py",
  74. srcs: [
  75. "manifest_check.py",
  76. ],
  77. version: {
  78. py2: {
  79. enabled: true,
  80. },
  81. py3: {
  82. enabled: false,
  83. },
  84. },
  85. libs: [
  86. "manifest_utils",
  87. ],
  88. }
  89. python_test_host {
  90. name: "manifest_check_test",
  91. main: "manifest_check_test.py",
  92. srcs: [
  93. "manifest_check_test.py",
  94. "manifest_check.py",
  95. ],
  96. version: {
  97. py2: {
  98. enabled: true,
  99. },
  100. py3: {
  101. enabled: false,
  102. },
  103. },
  104. libs: [
  105. "manifest_utils",
  106. ],
  107. test_suites: ["general-tests"],
  108. }
  109. python_binary_host {
  110. name: "jsonmodify",
  111. main: "jsonmodify.py",
  112. srcs: [
  113. "jsonmodify.py",
  114. ],
  115. version: {
  116. py2: {
  117. enabled: true,
  118. },
  119. py3: {
  120. enabled: false,
  121. },
  122. },
  123. }
  124. python_binary_host {
  125. name: "test_config_fixer",
  126. main: "test_config_fixer.py",
  127. srcs: [
  128. "test_config_fixer.py",
  129. ],
  130. version: {
  131. py2: {
  132. enabled: true,
  133. },
  134. py3: {
  135. enabled: false,
  136. },
  137. },
  138. libs: [
  139. "manifest_utils",
  140. ],
  141. }
  142. python_test_host {
  143. name: "test_config_fixer_test",
  144. main: "test_config_fixer_test.py",
  145. srcs: [
  146. "test_config_fixer_test.py",
  147. "test_config_fixer.py",
  148. ],
  149. version: {
  150. py2: {
  151. enabled: true,
  152. },
  153. py3: {
  154. enabled: false,
  155. },
  156. },
  157. libs: [
  158. "manifest_utils",
  159. ],
  160. test_suites: ["general-tests"],
  161. }
  162. python_binary_host {
  163. name: "construct_context",
  164. main: "construct_context.py",
  165. srcs: [
  166. "construct_context.py",
  167. ],
  168. version: {
  169. py2: {
  170. enabled: true,
  171. },
  172. py3: {
  173. enabled: false,
  174. },
  175. },
  176. libs: [
  177. "manifest_utils",
  178. ],
  179. }
  180. python_test_host {
  181. name: "construct_context_test",
  182. main: "construct_context_test.py",
  183. srcs: [
  184. "construct_context_test.py",
  185. "construct_context.py",
  186. ],
  187. version: {
  188. py2: {
  189. enabled: true,
  190. },
  191. py3: {
  192. enabled: false,
  193. },
  194. },
  195. libs: [
  196. "manifest_utils",
  197. ],
  198. test_suites: ["general-tests"],
  199. }
  200. python_binary_host {
  201. name: "lint-project-xml",
  202. main: "lint-project-xml.py",
  203. srcs: [
  204. "lint-project-xml.py",
  205. "ninja_rsp.py",
  206. ],
  207. }
  208. python_binary_host {
  209. name: "gen-kotlin-build-file.py",
  210. main: "gen-kotlin-build-file.py",
  211. srcs: [
  212. "gen-kotlin-build-file.py",
  213. "ninja_rsp.py",
  214. ],
  215. }
  216. python_binary_host {
  217. name: "conv_linker_config",
  218. srcs: [
  219. "conv_linker_config.py",
  220. ],
  221. version: {
  222. py2: {
  223. enabled: false,
  224. },
  225. py3: {
  226. enabled: true,
  227. embedded_launcher: true,
  228. },
  229. },
  230. libs: [
  231. "linker_config_proto",
  232. ],
  233. }