blob: b45fc8d3d57eed74125f99ccd42f4f8769ec596e [file] [log] [blame]
Joshua Duong8d669b22020-02-11 10:29:27 -08001// 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
Bob Badour4a6774b2021-02-12 19:46:09 -080015package {
16 // See: http://go/android-license-faq
17 // A large-scale-change added 'default_applicable_licenses' to import
18 // all of the 'license_kinds' from "packages_modules_adb_license"
19 // to get the below license kinds:
20 // SPDX-license-identifier-Apache-2.0
21 default_applicable_licenses: ["packages_modules_adb_license"],
22}
23
Joshua Duong8d669b22020-02-11 10:29:27 -080024cc_defaults {
25 name: "libadb_tls_connection_defaults",
26 cflags: [
27 "-Wall",
28 "-Wextra",
29 "-Wthread-safety",
30 "-Werror",
31 ],
32
33 compile_multilib: "both",
34
35 srcs: [
36 "adb_ca_list.cpp",
37 "tls_connection.cpp",
38 ],
39 target: {
40 windows: {
41 compile_multilib: "first",
42 enabled: true,
43 },
44 },
45 export_include_dirs: ["include"],
46
47 host_supported: true,
48 recovery_available: true,
49
50 visibility: [
Josh Gaodc20c2f2020-03-27 19:41:59 -070051 "//bootable/recovery/minadbd:__subpackages__",
Baligh Uddin95e03672020-10-18 15:09:52 +000052 "//packages/modules/adb:__subpackages__",
Joshua Duong8d669b22020-02-11 10:29:27 -080053 ],
54
Joshua Duong8d669b22020-02-11 10:29:27 -080055 shared_libs: [
Joshua Duong929364a2020-02-26 15:43:44 -080056 "libbase",
Joshua Duong8d669b22020-02-11 10:29:27 -080057 "libcrypto",
58 "liblog",
59 "libssl",
60 ],
61}
62
63cc_library {
64 name: "libadb_tls_connection",
65 defaults: ["libadb_tls_connection_defaults"],
66
Jooyung Han9864dad2021-11-22 10:15:19 +090067 min_sdk_version: "30",
Joshua Duong8d669b22020-02-11 10:29:27 -080068 apex_available: [
69 "com.android.adbd",
70 "test_com.android.adbd",
71 ],
72}
73
74// For running atest (b/147158681)
75cc_library_static {
76 name: "libadb_tls_connection_static",
77 defaults: ["libadb_tls_connection_defaults"],
78
79 apex_available: [
80 "//apex_available:platform",
81 ],
82}