Android.bp 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211
  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. visibility: ["//system/apex/apexer:__pkg__"],
  47. }
  48. python_binary_host {
  49. name: "manifest_check",
  50. main: "manifest_check.py",
  51. srcs: [
  52. "manifest_check.py",
  53. ],
  54. libs: [
  55. "manifest_utils",
  56. ],
  57. }
  58. python_test_host {
  59. name: "manifest_check_test",
  60. main: "manifest_check_test.py",
  61. srcs: [
  62. "manifest_check_test.py",
  63. "manifest_check.py",
  64. ],
  65. libs: [
  66. "manifest_utils",
  67. ],
  68. test_options: {
  69. unit_test: true,
  70. },
  71. }
  72. python_binary_host {
  73. name: "jsonmodify",
  74. main: "jsonmodify.py",
  75. srcs: [
  76. "jsonmodify.py",
  77. ],
  78. }
  79. python_test_host {
  80. name: "jsonmodify_test",
  81. main: "jsonmodify_test.py",
  82. srcs: [
  83. "jsonmodify_test.py",
  84. "jsonmodify.py",
  85. ],
  86. test_suites: ["general-tests"],
  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. }
  183. sh_binary_host {
  184. name: "list_image",
  185. src: "list_image.sh",
  186. }
  187. filegroup {
  188. name: "rustfmt.toml",
  189. srcs: ["rustfmt.toml"],
  190. visibility: ["//visibility:public"],
  191. }