Android.bp 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114
  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. }
  48. cc_genrule {
  49. name: "host_bionic_linker_asm",
  50. host_supported: true,
  51. device_supported: false,
  52. target: {
  53. linux_bionic: {
  54. enabled: true,
  55. },
  56. linux_glibc: {
  57. enabled: false,
  58. },
  59. darwin: {
  60. enabled: false,
  61. },
  62. },
  63. tools: ["extract_linker"],
  64. cmd: "$(location) -s $(out) $(in)",
  65. srcs: [":linker"],
  66. out: ["linker.s"],
  67. }
  68. cc_genrule {
  69. name: "host_bionic_linker_script",
  70. host_supported: true,
  71. device_supported: false,
  72. target: {
  73. linux_bionic: {
  74. enabled: true,
  75. },
  76. linux_glibc: {
  77. enabled: false,
  78. },
  79. darwin: {
  80. enabled: false,
  81. },
  82. },
  83. tools: ["extract_linker"],
  84. cmd: "$(location) -T $(out) $(in)",
  85. srcs: [":linker"],
  86. out: ["linker.script"],
  87. }
  88. // Instantiate the dex_bootjars singleton module.
  89. dex_bootjars {
  90. name: "dex_bootjars",
  91. }
  92. // Pseudo-test that's run on checkbuilds to ensure that get_clang_version can
  93. // parse cc/config/global.go.
  94. genrule {
  95. name: "get_clang_version_test",
  96. cmd: "$(location get_clang_version) > $(out)",
  97. tools: ["get_clang_version"],
  98. srcs: ["cc/config/global.go"],
  99. out: ["clang-prebuilts-version.txt"],
  100. }
  101. dexpreopt_systemserver_check {
  102. name: "dexpreopt_systemserver_check",
  103. }