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