1package {
2    // See: http://go/android-license-faq
3    // A large-scale-change added 'default_applicable_licenses' to import
4    // all of the 'license_kinds' from "frameworks_native_license"
5    // to get the below license kinds:
6    //   SPDX-license-identifier-Apache-2.0
7    default_applicable_licenses: ["frameworks_native_license"],
8}
9
10cc_defaults {
11    name: "pdx_default_transport_compiler_defaults",
12    cflags: [
13        "-Wall",
14        "-Wextra",
15        "-Werror",
16    ],
17}
18
19cc_defaults {
20    name: "pdx_default_transport_lib_defaults",
21    export_include_dirs: ["private"],
22    whole_static_libs: ["libpdx"],
23}
24
25cc_defaults {
26    name: "pdx_use_transport_servicefs",
27    export_include_dirs: ["private/servicefs"],
28    whole_static_libs: [
29        "libpdx_servicefs",
30        "libservicefs",
31    ],
32}
33
34cc_defaults {
35    name: "pdx_use_transport_uds",
36    export_include_dirs: ["private/uds"],
37    whole_static_libs: ["libpdx_uds"],
38}
39
40cc_library_shared {
41    name: "libpdx_default_transport",
42    defaults: [
43        "pdx_default_transport_compiler_defaults",
44        "pdx_default_transport_lib_defaults",
45        "pdx_use_transport_uds",
46    ],
47    shared_libs: [
48        "libbase",
49        "libbinder",
50        "libcutils",
51        "liblog",
52        "libutils",
53        "libselinux",
54    ],
55}
56
57cc_binary {
58    name: "pdx_tool",
59    system_ext_specific: true,
60    defaults: ["pdx_default_transport_compiler_defaults"],
61    srcs: [
62        "pdx_tool.cpp",
63    ],
64    shared_libs: [
65        "libbinder",
66        "libcutils",
67        "liblog",
68        "libpdx_default_transport",
69    ],
70}
71
72// Benchmarks.
73cc_binary {
74    name: "pdx_benchmarks",
75    defaults: ["pdx_default_transport_compiler_defaults"],
76    srcs: [
77        "pdx_benchmarks.cpp",
78    ],
79    shared_libs: [
80        "libbase",
81        "libbinder",
82        "libchrome",
83        "libcutils",
84        "liblog",
85        "libutils",
86        "libpdx_default_transport",
87    ],
88}
89