1 cc_library_static { 2 name: "libpdx", 3 clang: true, 4 cflags: [ 5 "-Wall", 6 "-Wextra", 7 "-Werror", 8 ], 9 export_include_dirs: ["private"], 10 local_include_dirs: ["private"], 11 srcs: [ 12 "client.cpp", 13 "service.cpp", 14 "status.cpp", 15 ], 16 } 17 18 cc_test { 19 name: "pdx_tests", 20 clang: true, 21 cflags: [ 22 "-Wall", 23 "-Wextra", 24 "-Werror", 25 ], 26 srcs: [ 27 "client_tests.cpp", 28 "mock_tests.cpp", 29 "serialization_tests.cpp", 30 "service_tests.cpp", 31 "status_tests.cpp", 32 "thread_local_buffer_tests.cpp", 33 "variant_tests.cpp", 34 ], 35 static_libs: [ 36 "libgmock", 37 "libpdx", 38 "liblog", 39 "libutils", 40 "libvndksupport", 41 ], 42 } 43 44 // Code analysis target. 45 cc_test { 46 name: "pdx_encoder_performance_test", 47 clang: true, 48 cflags: [ 49 "-Wall", 50 "-Wextra", 51 "-Werror", 52 "-O2", 53 ], 54 srcs: [ 55 "encoder_performance_test.cpp", 56 ], 57 static_libs: [ 58 "libpdx", 59 ], 60 } 61