Android.bp 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160
  1. //
  2. // Copyright (C) 2018 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_defaults {
  17. name: "lp_defaults",
  18. cflags: [
  19. "-Werror",
  20. "-Wextra",
  21. ],
  22. target: {
  23. linux_bionic: {
  24. enabled: true,
  25. },
  26. },
  27. }
  28. cc_library_shared {
  29. name: "liblpdump",
  30. defaults: ["lp_defaults"],
  31. host_supported: true,
  32. shared_libs: [
  33. "libbase",
  34. "liblog",
  35. "liblp",
  36. "libprotobuf-cpp-full",
  37. ],
  38. static_libs: [
  39. "libjsonpbparse",
  40. ],
  41. srcs: [
  42. "lpdump.cc",
  43. "dynamic_partitions_device_info.proto",
  44. ],
  45. proto: {
  46. type: "full",
  47. },
  48. target: {
  49. android: {
  50. shared_libs: [
  51. "libcutils",
  52. "libfs_mgr",
  53. ],
  54. },
  55. },
  56. }
  57. cc_binary {
  58. name: "lpdump",
  59. defaults: ["lp_defaults"],
  60. host_supported: true,
  61. shared_libs: [
  62. "libbase",
  63. "liblog",
  64. "liblp",
  65. ],
  66. static_libs: [
  67. "libjsonpbparse",
  68. ],
  69. target: {
  70. android: {
  71. srcs: [
  72. "lpdump_target.cc",
  73. ],
  74. shared_libs: [
  75. "liblpdump_interface-cpp",
  76. "libbinder",
  77. "libutils",
  78. ],
  79. required: [
  80. "lpdumpd",
  81. ],
  82. },
  83. host: {
  84. srcs: [
  85. "lpdump_host.cc",
  86. ],
  87. shared_libs: [
  88. "liblpdump",
  89. ],
  90. },
  91. },
  92. }
  93. cc_binary {
  94. name: "lpmake",
  95. defaults: ["lp_defaults"],
  96. host_supported: true,
  97. shared_libs: [
  98. "libbase",
  99. "liblog",
  100. "liblp",
  101. ],
  102. srcs: [
  103. "lpmake.cc",
  104. ],
  105. }
  106. cc_binary {
  107. name: "lpflash",
  108. defaults: ["lp_defaults"],
  109. host_supported: true,
  110. shared_libs: [
  111. "libbase",
  112. "liblog",
  113. "liblp",
  114. ],
  115. srcs: [
  116. "lpflash.cc",
  117. ],
  118. }
  119. cc_binary {
  120. name: "lpdumpd",
  121. defaults: ["lp_defaults"],
  122. init_rc: ["lpdumpd.rc"],
  123. shared_libs: [
  124. "libbase",
  125. "libbinder",
  126. "liblog",
  127. "liblp",
  128. "liblpdump",
  129. "liblpdump_interface-cpp",
  130. "libutils",
  131. ],
  132. srcs: [
  133. "lpdumpd.cc",
  134. ],
  135. }
  136. cc_binary {
  137. name: "lpunpack",
  138. defaults: ["lp_defaults"],
  139. device_supported: false,
  140. host_supported: true,
  141. shared_libs: [
  142. "libbase",
  143. "liblog",
  144. "liblp",
  145. "libsparse",
  146. ],
  147. srcs: [
  148. "lpunpack.cc",
  149. ],
  150. cppflags: [
  151. "-D_FILE_OFFSET_BITS=64",
  152. ],
  153. }