Android.bp 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148
  1. // Copyright (C) 2009 The Android Open Source Project
  2. //
  3. // Licensed under the Apache License, Version 2.0 (the "License");
  4. // you may not use this file except in compliance with the License.
  5. // You may obtain a copy of the License at
  6. //
  7. // http://www.apache.org/licenses/LICENSE-2.0
  8. //
  9. // Unless required by applicable law or agreed to in writing, software
  10. // distributed under the License is distributed on an "AS IS" BASIS,
  11. // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  12. // See the License for the specific language governing permissions and
  13. // limitations under the License.
  14. cc_library_headers {
  15. name: "libbinder_headers",
  16. export_include_dirs: ["include"],
  17. vendor_available: true,
  18. header_libs: [
  19. "libbase_headers",
  20. "libcutils_headers",
  21. "libutils_headers",
  22. ],
  23. export_header_lib_headers: [
  24. "libbase_headers",
  25. "libcutils_headers",
  26. "libutils_headers",
  27. ],
  28. }
  29. cc_library_shared {
  30. name: "libbinder",
  31. // for vndbinder
  32. vendor_available: true,
  33. vndk: {
  34. enabled: true,
  35. },
  36. double_loadable: true,
  37. srcs: [
  38. "ActivityManager.cpp",
  39. "AppOpsManager.cpp",
  40. "Binder.cpp",
  41. "BpBinder.cpp",
  42. "BufferedTextOutput.cpp",
  43. "Debug.cpp",
  44. "IActivityManager.cpp",
  45. "IAppOpsCallback.cpp",
  46. "IAppOpsService.cpp",
  47. "IBatteryStats.cpp",
  48. "IInterface.cpp",
  49. "IMediaResourceMonitor.cpp",
  50. "IMemory.cpp",
  51. "IPCThreadState.cpp",
  52. "IPermissionController.cpp",
  53. "IProcessInfoService.cpp",
  54. "IResultReceiver.cpp",
  55. "IServiceManager.cpp",
  56. "IShellCallback.cpp",
  57. "IUidObserver.cpp",
  58. "MemoryBase.cpp",
  59. "MemoryDealer.cpp",
  60. "MemoryHeapBase.cpp",
  61. "Parcel.cpp",
  62. "ParcelFileDescriptor.cpp",
  63. "PermissionCache.cpp",
  64. "PermissionController.cpp",
  65. "PersistableBundle.cpp",
  66. "ProcessInfoService.cpp",
  67. "ProcessState.cpp",
  68. "Static.cpp",
  69. "Status.cpp",
  70. "TextOutput.cpp",
  71. "IpPrefix.cpp",
  72. "Value.cpp",
  73. ":libbinder_aidl",
  74. ],
  75. target: {
  76. vendor: {
  77. exclude_srcs: [
  78. "ActivityManager.cpp",
  79. "AppOpsManager.cpp",
  80. "IActivityManager.cpp",
  81. "IAppOpsCallback.cpp",
  82. "IAppOpsService.cpp",
  83. "IBatteryStats.cpp",
  84. "IMediaResourceMonitor.cpp",
  85. "IPermissionController.cpp",
  86. "IProcessInfoService.cpp",
  87. "IUidObserver.cpp",
  88. "PermissionCache.cpp",
  89. "PermissionController.cpp",
  90. "ProcessInfoService.cpp",
  91. "IpPrefix.cpp",
  92. ":libbinder_aidl",
  93. ],
  94. },
  95. },
  96. aidl: {
  97. export_aidl_headers: true,
  98. },
  99. cflags: [
  100. "-Wall",
  101. "-Wextra",
  102. "-Werror",
  103. "-Wzero-as-null-pointer-constant",
  104. ],
  105. product_variables: {
  106. binder32bit: {
  107. cflags: ["-DBINDER_IPC_32BIT=1"],
  108. },
  109. },
  110. shared_libs: [
  111. "libbase",
  112. "liblog",
  113. "libcutils",
  114. "libutils",
  115. "libbinderthreadstate",
  116. ],
  117. header_libs: [
  118. "libbinder_headers",
  119. ],
  120. export_header_lib_headers: [
  121. "libbinder_headers",
  122. ],
  123. clang: true,
  124. sanitize: {
  125. misc_undefined: ["integer"],
  126. },
  127. }
  128. // AIDL interface between libbinder and framework.jar
  129. filegroup {
  130. name: "libbinder_aidl",
  131. srcs: [
  132. "aidl/android/content/pm/IPackageManagerNative.aidl",
  133. ],
  134. }
  135. subdirs = ["tests"]