Android.bp 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. // Copyright (C) 2015 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. // libgatekeeper contains just the code necessary to communicate with a
  15. // GoogleGateKeeper implementation, e.g. one running in TrustZone.
  16. cc_library_shared {
  17. name: "libgatekeeper",
  18. vendor_available: true,
  19. vndk: {
  20. enabled: true,
  21. },
  22. srcs: [
  23. "gatekeeper_messages.cpp",
  24. "gatekeeper.cpp",
  25. ],
  26. cflags: [
  27. "-Wall",
  28. "-Werror",
  29. "-g",
  30. ],
  31. header_libs: [
  32. "libhardware_headers",
  33. ],
  34. export_include_dirs: ["include"],
  35. // TODO(krasin): reenable coverage flags, when the new Clang toolchain is released.
  36. // Currently, if enabled, these flags will cause an internal error in Clang.
  37. // Bug: 25119481
  38. clang_cflags: ["-fno-sanitize-coverage=edge,indirect-calls,8bit-counters,trace-cmp"],
  39. }
  40. // libgatekeeper_static is an empty static library that exports
  41. // all of the files in gatekeeper as includes.
  42. cc_library_static {
  43. name: "libgatekeeper_static",
  44. export_include_dirs: [
  45. ".",
  46. "include",
  47. ],
  48. }