Android.bp 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132
  1. package {
  2. default_applicable_licenses: ["Android-Apache-2.0"],
  3. }
  4. subdirs = [
  5. "androidmk",
  6. "bpfix",
  7. "cmd/*",
  8. "fs",
  9. "finder",
  10. "jar",
  11. "zip",
  12. "third_party/zip",
  13. "ui/*",
  14. ]
  15. bootstrap_go_package {
  16. name: "soong",
  17. pkgPath: "android/soong",
  18. deps: [
  19. "blueprint",
  20. ],
  21. srcs: [
  22. "doc.go",
  23. ],
  24. }
  25. //
  26. // Defaults to enable various configurations of host bionic
  27. //
  28. cc_defaults {
  29. name: "linux_bionic_supported",
  30. host_supported: true,
  31. target: {
  32. host: {
  33. enabled: false,
  34. },
  35. linux_bionic: {
  36. enabled: true,
  37. },
  38. },
  39. }
  40. //
  41. // C static libraries extracted from the gcc toolchain
  42. //
  43. kernel_headers {
  44. name: "device_kernel_headers",
  45. vendor: true,
  46. recovery_available: true,
  47. min_sdk_version: "apex_inherit",
  48. }
  49. cc_genrule {
  50. name: "host_bionic_linker_asm",
  51. host_supported: true,
  52. device_supported: false,
  53. target: {
  54. linux_bionic: {
  55. enabled: true,
  56. },
  57. linux_musl: {
  58. enabled: false,
  59. },
  60. linux_glibc: {
  61. enabled: false,
  62. },
  63. darwin: {
  64. enabled: false,
  65. },
  66. },
  67. tools: ["extract_linker"],
  68. cmd: "$(location) -s $(out) $(in)",
  69. srcs: [":linker"],
  70. out: ["linker.s"],
  71. }
  72. cc_genrule {
  73. name: "host_bionic_linker_script",
  74. host_supported: true,
  75. device_supported: false,
  76. target: {
  77. linux_bionic: {
  78. enabled: true,
  79. },
  80. linux_musl: {
  81. enabled: false,
  82. },
  83. linux_glibc: {
  84. enabled: false,
  85. },
  86. darwin: {
  87. enabled: false,
  88. },
  89. },
  90. tools: ["extract_linker"],
  91. cmd: "$(location) -T $(out) $(in)",
  92. srcs: [":linker"],
  93. out: ["linker.script"],
  94. }
  95. // Instantiate the dex_bootjars singleton module.
  96. dex_bootjars {
  97. name: "dex_bootjars",
  98. }
  99. // Pseudo-test that's run on checkbuilds to ensure that get_clang_version can
  100. // parse cc/config/global.go.
  101. genrule {
  102. name: "get_clang_version_test",
  103. cmd: "$(location get_clang_version) > $(out)",
  104. tools: ["get_clang_version"],
  105. srcs: ["cc/config/global.go"],
  106. out: ["clang-prebuilts-version.txt"],
  107. }
  108. dexpreopt_systemserver_check {
  109. name: "dexpreopt_systemserver_check",
  110. }
  111. // buildinfo.prop contains common properties for system/build.prop, like ro.build.version.*
  112. buildinfo_prop {
  113. name: "buildinfo.prop",
  114. // not installable because this will be included to system/build.prop
  115. installable: false,
  116. // Currently, only microdroid can refer to buildinfo.prop
  117. visibility: ["//packages/modules/Virtualization/microdroid"],
  118. }