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