Android.bp 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129
  1. //
  2. // Copyright (C) 2019 The Android Open Source Project
  3. //
  4. // Licensed under the Apache License, Version 2.0 (the "License");
  5. // you may not use this file except in compliance with the License.
  6. // You may obtain a copy of the License at
  7. //
  8. // http://www.apache.org/licenses/LICENSE-2.0
  9. //
  10. // Unless required by applicable law or agreed to in writing, software
  11. // distributed under the License is distributed on an "AS IS" BASIS,
  12. // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13. // See the License for the specific language governing permissions and
  14. // limitations under the License.
  15. //
  16. cc_binary {
  17. name: "gsi_tool",
  18. shared_libs: [
  19. "gsi_aidl_interface-cpp",
  20. "libbinder",
  21. "libbase",
  22. "libcutils",
  23. "libgsi",
  24. "liblog",
  25. "libservices",
  26. "libutils",
  27. ],
  28. srcs: [
  29. "gsi_tool.cpp",
  30. ],
  31. }
  32. cc_library {
  33. name: "libgsi",
  34. recovery_available: true,
  35. host_supported: true,
  36. srcs: [
  37. "libgsi.cpp",
  38. ],
  39. shared_libs: [
  40. "libbase",
  41. ],
  42. export_include_dirs: ["include"],
  43. }
  44. cc_library_headers {
  45. name: "libgsi_headers",
  46. host_supported: true,
  47. recovery_available: true,
  48. vendor_available: true,
  49. export_include_dirs: ["include"],
  50. }
  51. cc_binary {
  52. name: "gsid",
  53. srcs: [
  54. "daemon.cpp",
  55. "gsi_service.cpp",
  56. ],
  57. required: [
  58. "mke2fs",
  59. ],
  60. init_rc: [
  61. "gsid.rc",
  62. ],
  63. shared_libs: [
  64. "gsi_aidl_interface-cpp",
  65. "libbase",
  66. "libbinder",
  67. "libext4_utils",
  68. "libfs_mgr",
  69. "libgsi",
  70. "liblog",
  71. "liblp",
  72. "libutils",
  73. ],
  74. static_libs: [
  75. "libdm",
  76. "libfiemap_writer",
  77. ],
  78. local_include_dirs: ["include"],
  79. }
  80. cc_test {
  81. name: "gsi_boot_test",
  82. shared_libs: [
  83. "libbase",
  84. "libcutils",
  85. "libhardware",
  86. "libhidlbase",
  87. "libhidltransport",
  88. "libhwbinder",
  89. "liblog",
  90. "libutils",
  91. ],
  92. static_libs: [
  93. "libext4_utils",
  94. "libfstab",
  95. "[email protected]",
  96. ],
  97. srcs: [
  98. "tests/boot_tests.cpp",
  99. ],
  100. }
  101. aidl_interface {
  102. name: "gsi_aidl_interface",
  103. srcs: [
  104. "aidl/android/gsi/GsiInstallParams.aidl",
  105. "aidl/android/gsi/GsiProgress.aidl",
  106. "aidl/android/gsi/IGsiService.aidl",
  107. ],
  108. local_include_dir: "aidl",
  109. backend: {
  110. ndk: {
  111. enabled: false,
  112. },
  113. },
  114. }
  115. filegroup {
  116. name: "gsiservice_aidl",
  117. srcs: [
  118. "aidl/android/gsi/GsiInstallParams.aidl",
  119. "aidl/android/gsi/GsiProgress.aidl",
  120. "aidl/android/gsi/IGsiService.aidl",
  121. ],
  122. }