Android.bp 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199
  1. package {
  2. default_applicable_licenses: ["Android-Apache-2.0"],
  3. default_visibility: ["//build/soong:__subpackages__"],
  4. }
  5. python_binary_host {
  6. name: "check_boot_jars",
  7. main: "check_boot_jars/check_boot_jars.py",
  8. srcs: [
  9. "check_boot_jars/check_boot_jars.py",
  10. ],
  11. }
  12. python_binary_host {
  13. name: "manifest_fixer",
  14. main: "manifest_fixer.py",
  15. srcs: [
  16. "manifest_fixer.py",
  17. ],
  18. libs: [
  19. "manifest_utils",
  20. ],
  21. }
  22. python_test_host {
  23. name: "manifest_fixer_test",
  24. main: "manifest_fixer_test.py",
  25. srcs: [
  26. "manifest_fixer_test.py",
  27. "manifest_fixer.py",
  28. ],
  29. version: {
  30. py3: {
  31. embedded_launcher: true,
  32. },
  33. },
  34. libs: [
  35. "manifest_utils",
  36. ],
  37. test_options: {
  38. unit_test: true,
  39. },
  40. }
  41. python_library_host {
  42. name: "manifest_utils",
  43. srcs: [
  44. "manifest.py",
  45. ],
  46. version: {
  47. py2: {
  48. // TODO(b/203436762) Remove when system/apex/apexer/apexer.py is converted
  49. enabled: true,
  50. },
  51. py3: {
  52. enabled: true,
  53. },
  54. },
  55. visibility: ["//system/apex/apexer:__pkg__"],
  56. }
  57. python_binary_host {
  58. name: "manifest_check",
  59. main: "manifest_check.py",
  60. srcs: [
  61. "manifest_check.py",
  62. ],
  63. libs: [
  64. "manifest_utils",
  65. ],
  66. }
  67. python_test_host {
  68. name: "manifest_check_test",
  69. main: "manifest_check_test.py",
  70. srcs: [
  71. "manifest_check_test.py",
  72. "manifest_check.py",
  73. ],
  74. libs: [
  75. "manifest_utils",
  76. ],
  77. test_options: {
  78. unit_test: true,
  79. },
  80. }
  81. python_binary_host {
  82. name: "jsonmodify",
  83. main: "jsonmodify.py",
  84. srcs: [
  85. "jsonmodify.py",
  86. ],
  87. }
  88. python_binary_host {
  89. name: "test_config_fixer",
  90. main: "test_config_fixer.py",
  91. srcs: [
  92. "test_config_fixer.py",
  93. ],
  94. libs: [
  95. "manifest_utils",
  96. ],
  97. }
  98. python_test_host {
  99. name: "test_config_fixer_test",
  100. main: "test_config_fixer_test.py",
  101. srcs: [
  102. "test_config_fixer_test.py",
  103. "test_config_fixer.py",
  104. ],
  105. libs: [
  106. "manifest_utils",
  107. ],
  108. test_suites: ["general-tests"],
  109. }
  110. python_binary_host {
  111. name: "construct_context",
  112. main: "construct_context.py",
  113. srcs: [
  114. "construct_context.py",
  115. ],
  116. libs: [
  117. "manifest_utils",
  118. ],
  119. }
  120. python_test_host {
  121. name: "construct_context_test",
  122. main: "construct_context_test.py",
  123. srcs: [
  124. "construct_context_test.py",
  125. "construct_context.py",
  126. ],
  127. libs: [
  128. "manifest_utils",
  129. ],
  130. test_suites: ["general-tests"],
  131. }
  132. python_library_host {
  133. name: "ninja_rsp",
  134. srcs: ["ninja_rsp.py"],
  135. }
  136. python_binary_host {
  137. name: "lint_project_xml",
  138. main: "lint_project_xml.py",
  139. srcs: [
  140. "lint_project_xml.py",
  141. ],
  142. libs: ["ninja_rsp"],
  143. }
  144. python_test_host {
  145. name: "lint_project_xml_test",
  146. main: "lint_project_xml_test.py",
  147. srcs: [
  148. "lint_project_xml_test.py",
  149. "lint_project_xml.py",
  150. ],
  151. libs: ["ninja_rsp"],
  152. test_suites: ["general-tests"],
  153. }
  154. python_binary_host {
  155. name: "gen-kotlin-build-file.py",
  156. main: "gen-kotlin-build-file.py",
  157. srcs: [
  158. "gen-kotlin-build-file.py",
  159. ],
  160. libs: ["ninja_rsp"],
  161. }
  162. python_binary_host {
  163. name: "conv_linker_config",
  164. srcs: [
  165. "conv_linker_config.py",
  166. ],
  167. version: {
  168. py3: {
  169. embedded_launcher: true,
  170. },
  171. },
  172. libs: [
  173. "linker_config_proto",
  174. ],
  175. }
  176. python_binary_host {
  177. name: "get_clang_version",
  178. main: "get_clang_version.py",
  179. srcs: [
  180. "get_clang_version.py",
  181. ],
  182. }