summaryrefslogtreecommitdiff
path: root/libs/vr/libpdx_default_transport/Android.bp
blob: 804685747ec2f61fea1a64514ca2126c9997e659 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
package {
    // See: http://go/android-license-faq
    // A large-scale-change added 'default_applicable_licenses' to import
    // all of the 'license_kinds' from "frameworks_native_license"
    // to get the below license kinds:
    //   SPDX-license-identifier-Apache-2.0
    default_applicable_licenses: ["frameworks_native_license"],
}

cc_defaults {
    name: "pdx_default_transport_compiler_defaults",
    clang: true,
    cflags: [
        "-Wall",
        "-Wextra",
        "-Werror",
    ],
}

cc_defaults {
    name: "pdx_default_transport_lib_defaults",
    export_include_dirs: ["private"],
    whole_static_libs: ["libpdx"],
}

cc_defaults {
    name: "pdx_use_transport_servicefs",
    export_include_dirs: ["private/servicefs"],
    whole_static_libs: ["libpdx_servicefs", "libservicefs"],
}

cc_defaults {
    name: "pdx_use_transport_uds",
    export_include_dirs: ["private/uds"],
    whole_static_libs: ["libpdx_uds"],
}

cc_library_shared {
    name: "libpdx_default_transport",
    defaults: [
        "pdx_default_transport_compiler_defaults",
        "pdx_default_transport_lib_defaults",
        "pdx_use_transport_uds",
    ],
    shared_libs: [
        "libbase",
        "libbinder",
        "libcutils",
        "liblog",
        "libutils",
        "libselinux",
    ],
}

cc_binary {
    name: "pdx_tool",
    system_ext_specific: true,
    defaults: ["pdx_default_transport_compiler_defaults"],
    srcs: [
        "pdx_tool.cpp",
    ],
    shared_libs: [
        "libbinder",
        "libcutils",
        "liblog",
        "libpdx_default_transport",
    ],
}

// Benchmarks.
cc_binary {
    name: "pdx_benchmarks",
    defaults: ["pdx_default_transport_compiler_defaults"],
    srcs: [
        "pdx_benchmarks.cpp",
    ],
    shared_libs: [
        "libbase",
        "libbinder",
        "libchrome",
        "libcutils",
        "liblog",
        "libutils",
        "libpdx_default_transport",
    ],
}