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_library_static {
11    name: "libpdx_uds",
12    cflags: [
13        "-Wall",
14        "-Wextra",
15        "-Werror",
16        "-DLOG_TAG=\"libpdx_uds\"",
17        "-DTRACE=0",
18    ],
19    export_include_dirs: ["private"],
20    local_include_dirs: ["private"],
21    srcs: [
22        "channel_event_set.cpp",
23        "channel_manager.cpp",
24        "channel_parcelable.cpp",
25        "client_channel_factory.cpp",
26        "client_channel.cpp",
27        "ipc_helper.cpp",
28        "service_endpoint.cpp",
29    ],
30    static_libs: [
31        "libcutils",
32        "libbase",
33        "libpdx",
34    ],
35    shared_libs: [
36        "libbinder",
37        "libselinux",
38    ],
39}
40
41cc_test {
42    name: "libpdx_uds_tests",
43    cflags: [
44        "-Wall",
45        "-Wextra",
46        "-Werror",
47    ],
48    srcs: [
49        "client_channel_tests.cpp",
50        "ipc_helper_tests.cpp",
51        "remote_method_tests.cpp",
52        "service_framework_tests.cpp",
53    ],
54    static_libs: [
55        "libgmock",
56        "libpdx_uds",
57        "libpdx",
58    ],
59    shared_libs: [
60        "libbase",
61        "libcutils",
62        "liblog",
63        "libutils",
64        "libbinder",
65        "libselinux",
66    ],
67}
68