Android.bp 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. cc_library_headers {
  2. name: "libpdx_headers",
  3. export_include_dirs: ["private"],
  4. vendor_available: true,
  5. }
  6. cc_library_static {
  7. name: "libpdx",
  8. clang: true,
  9. cflags: [
  10. "-Wall",
  11. "-Wextra",
  12. "-Werror",
  13. "-DLOG_TAG=\"libpdx\"",
  14. "-DTRACE=0",
  15. ],
  16. header_libs: ["libpdx_headers"],
  17. export_header_lib_headers: ["libpdx_headers"],
  18. srcs: [
  19. "client.cpp",
  20. "service.cpp",
  21. "service_dispatcher.cpp",
  22. "status.cpp",
  23. ],
  24. shared_libs: [
  25. "libbinder",
  26. "libcutils",
  27. "libutils",
  28. "liblog",
  29. ],
  30. }
  31. cc_test {
  32. name: "pdx_tests",
  33. clang: true,
  34. cflags: [
  35. "-Wall",
  36. "-Wextra",
  37. "-Werror",
  38. ],
  39. srcs: [
  40. "client_tests.cpp",
  41. "mock_tests.cpp",
  42. "serialization_tests.cpp",
  43. "service_tests.cpp",
  44. "status_tests.cpp",
  45. "thread_local_buffer_tests.cpp",
  46. "variant_tests.cpp",
  47. ],
  48. static_libs: [
  49. "libcutils",
  50. "libgmock",
  51. "libpdx",
  52. "liblog",
  53. "libutils",
  54. "libvndksupport",
  55. ],
  56. }
  57. // Code analysis target.
  58. cc_test {
  59. name: "pdx_encoder_performance_test",
  60. clang: true,
  61. cflags: [
  62. "-Wall",
  63. "-Wextra",
  64. "-Werror",
  65. "-O2",
  66. ],
  67. srcs: [
  68. "encoder_performance_test.cpp",
  69. ],
  70. static_libs: [
  71. "libpdx",
  72. ],
  73. }