• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1// Copyright (C) 2020 The Android Open Source Project
2//
3// Licensed under the Apache License, Version 2.0 (the "License");
4// you may not use this file except in compliance with the License.
5// You may obtain a copy of the License at
6//
7//      http://www.apache.org/licenses/LICENSE-2.0
8//
9// Unless required by applicable law or agreed to in writing, software
10// distributed under the License is distributed on an "AS IS" BASIS,
11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12// See the License for the specific language governing permissions and
13// limitations under the License.
14
15cc_defaults {
16    name: "libadb_pairing_auth_defaults",
17    cflags: [
18        "-Wall",
19        "-Wextra",
20        "-Wthread-safety",
21        "-Werror",
22    ],
23
24    compile_multilib: "both",
25
26    srcs: [
27        "aes_128_gcm.cpp",
28        "pairing_auth.cpp",
29    ],
30    target: {
31        android: {
32            version_script: "libadb_pairing_auth.map.txt",
33        },
34        windows: {
35            compile_multilib: "first",
36            enabled: true,
37        },
38    },
39    export_include_dirs: ["include"],
40
41    visibility: [
42        "//art:__subpackages__",
43        "//system/core/adb:__subpackages__",
44    ],
45
46    // libadb_pairing_auth doesn't need an embedded build number.
47    use_version_lib: false,
48
49    host_supported: true,
50    recovery_available: false,
51
52    stl: "libc++_static",
53
54    static_libs: ["libbase"],
55    shared_libs: [
56        "libcrypto",
57        "liblog",
58    ],
59}
60
61cc_library {
62    name: "libadb_pairing_auth",
63    defaults: ["libadb_pairing_auth_defaults"],
64
65    apex_available: [
66        "com.android.adbd",
67    ],
68
69    stubs: {
70        symbol_file: "libadb_pairing_auth.map.txt",
71        versions: ["30"],
72    },
73}
74
75// For running atest (b/147158681)
76cc_library_static {
77    name: "libadb_pairing_auth_static",
78    defaults: ["libadb_pairing_auth_defaults"],
79
80    apex_available: [
81        "//apex_available:platform",
82    ],
83}
84