1cc_defaults {
2    name: "pdx_default_transport_compiler_defaults",
3    clang: true,
4    cflags: [
5        "-Wall",
6        "-Wextra",
7        "-Werror",
8    ],
9}
10
11cc_defaults {
12    name: "pdx_default_transport_lib_defaults",
13    export_include_dirs: ["private"],
14    whole_static_libs: ["libpdx"],
15}
16
17cc_defaults {
18    name: "pdx_use_transport_servicefs",
19    export_include_dirs: ["private/servicefs"],
20    whole_static_libs: ["libpdx_servicefs", "libservicefs"],
21}
22
23cc_defaults {
24    name: "pdx_use_transport_uds",
25    export_include_dirs: ["private/uds"],
26    whole_static_libs: ["libpdx_uds"],
27}
28
29cc_library_shared {
30    name: "libpdx_default_transport",
31    defaults: [
32        "pdx_default_transport_compiler_defaults",
33        "pdx_default_transport_lib_defaults",
34        "pdx_use_transport_uds",
35    ],
36    shared_libs: [
37        "libbase",
38        "libbinder",
39        "libcutils",
40        "liblog",
41        "libutils",
42        "libcrypto",
43    ],
44}
45
46cc_binary {
47    name: "pdx_tool",
48    defaults: ["pdx_default_transport_compiler_defaults"],
49    srcs: [
50        "pdx_tool.cpp",
51    ],
52    shared_libs: [
53        "libbinder",
54        "libcutils",
55        "liblog",
56        "libpdx_default_transport",
57    ],
58}
59
60// Benchmarks.
61cc_binary {
62    name: "pdx_benchmarks",
63    defaults: ["pdx_default_transport_compiler_defaults"],
64    srcs: [
65        "pdx_benchmarks.cpp",
66    ],
67    shared_libs: [
68        "libbase",
69        "libbinder",
70        "libchrome",
71        "libcutils",
72        "liblog",
73        "libutils",
74        "libpdx_default_transport",
75    ],
76}
77
78