Android.bp 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. // Copyright (C) 2012 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_shared {
  15. name: "libkeystore-engine",
  16. srcs: [
  17. "android_engine.cpp",
  18. "keystore_backend_binder.cpp",
  19. ],
  20. cflags: [
  21. "-fvisibility=hidden",
  22. "-Wall",
  23. "-Werror",
  24. ],
  25. shared_libs: [
  26. "libbinder",
  27. "libcrypto",
  28. "libcutils",
  29. "libhidlbase",
  30. "libkeystore_aidl",
  31. "libkeystore_binder",
  32. "libkeystore_parcelables",
  33. "liblog",
  34. "libbase",
  35. "libutils",
  36. ],
  37. }
  38. // This builds a variant of libkeystore-engine that uses a HIDL HAL
  39. // owned by the WiFi user to perform signing operations.
  40. cc_library_shared {
  41. name: "libkeystore-engine-wifi-hidl",
  42. srcs: [
  43. "android_engine.cpp",
  44. "keystore_backend_hidl.cpp",
  45. ],
  46. cflags: [
  47. "-fvisibility=hidden",
  48. "-Wall",
  49. "-Werror",
  50. "-DBACKEND_WIFI_HIDL",
  51. ],
  52. shared_libs: [
  53. "[email protected]",
  54. "libcrypto",
  55. "liblog",
  56. "libhidlbase",
  57. "libhidltransport",
  58. "libcutils",
  59. "libutils",
  60. ],
  61. vendor: true,
  62. }