• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1// libadbconnection
2// =========================================================
3// libadbconnection_client/server implement the socket handling for jdwp
4// forwarding and the track-jdwp service.
5cc_library {
6    name: "libadbconnection_server",
7    srcs: ["adbconnection_server.cpp"],
8
9    export_include_dirs: ["include"],
10
11    stl: "libc++_static",
12    shared_libs: ["liblog"],
13    static_libs: ["libbase"],
14
15    defaults: ["adbd_defaults", "host_adbd_supported"],
16
17    // Avoid getting duplicate symbol of android::build::GetBuildNumber().
18    use_version_lib: false,
19
20    recovery_available: true,
21    apex_available: [
22        "com.android.adbd",
23        // TODO(b/151398197) remove the below
24        "//apex_available:platform",
25    ],
26    compile_multilib: "both",
27}
28
29cc_library {
30    name: "libadbconnection_client",
31    srcs: ["adbconnection_client.cpp"],
32
33    export_include_dirs: ["include"],
34
35    stl: "libc++_static",
36    shared_libs: ["liblog"],
37    static_libs: ["libbase"],
38
39    defaults: ["adbd_defaults"],
40    visibility: [
41        "//art:__subpackages__",
42        "//system/core/adb/apex:__subpackages__",
43    ],
44    apex_available: [
45        "com.android.adbd",
46        "test_com.android.adbd",
47    ],
48
49    // libadbconnection_client doesn't need an embedded build number.
50    use_version_lib: false,
51
52    target: {
53        linux: {
54            version_script: "libadbconnection_client.map.txt",
55        },
56    },
57    stubs: {
58        symbol_file: "libadbconnection_client.map.txt",
59        versions: ["1"],
60    },
61
62    host_supported: true,
63    compile_multilib: "both",
64}
65