Android.bp 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118
  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. toolchain_library {
  44. name: "libwinpthread",
  45. host_supported: true,
  46. enabled: false,
  47. target: {
  48. windows: {
  49. enabled: true,
  50. },
  51. windows_x86: {
  52. src: "prebuilts/gcc/linux-x86/host/x86_64-w64-mingw32-4.8/x86_64-w64-mingw32/lib32/libwinpthread.a",
  53. },
  54. windows_x86_64: {
  55. src: "prebuilts/gcc/linux-x86/host/x86_64-w64-mingw32-4.8/x86_64-w64-mingw32/lib/libwinpthread.a",
  56. },
  57. },
  58. notice: ":mingw-libwinpthread-notice",
  59. }
  60. kernel_headers {
  61. name: "device_kernel_headers",
  62. vendor: true,
  63. recovery_available: true,
  64. }
  65. cc_genrule {
  66. name: "host_bionic_linker_asm",
  67. host_supported: true,
  68. device_supported: false,
  69. target: {
  70. linux_bionic: {
  71. enabled: true,
  72. },
  73. linux_glibc: {
  74. enabled: false,
  75. },
  76. darwin: {
  77. enabled: false,
  78. },
  79. },
  80. tools: ["extract_linker"],
  81. cmd: "$(location) -s $(out) $(in)",
  82. srcs: [":linker"],
  83. out: ["linker.s"],
  84. }
  85. cc_genrule {
  86. name: "host_bionic_linker_flags",
  87. host_supported: true,
  88. device_supported: false,
  89. target: {
  90. linux_bionic: {
  91. enabled: true,
  92. },
  93. linux_glibc: {
  94. enabled: false,
  95. },
  96. darwin: {
  97. enabled: false,
  98. },
  99. },
  100. tools: ["extract_linker"],
  101. cmd: "$(location) -f $(out) $(in)",
  102. srcs: [":linker"],
  103. out: ["linker.flags"],
  104. }
  105. // Instantiate the dex_bootjars singleton module.
  106. dex_bootjars {
  107. name: "dex_bootjars",
  108. }