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