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 15package { 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 24cc_defaults { 25 name: "libadb_pairing_auth_defaults", 26 cflags: [ 27 "-Wall", 28 "-Wextra", 29 "-Wthread-safety", 30 "-Werror", 31 ], 32 33 compile_multilib: "both", 34 35 srcs: [ 36 "aes_128_gcm.cpp", 37 "pairing_auth.cpp", 38 ], 39 target: { 40 android: { 41 version_script: "libadb_pairing_auth.map.txt", 42 }, 43 windows: { 44 compile_multilib: "first", 45 enabled: true, 46 }, 47 }, 48 export_include_dirs: ["include"], 49 50 visibility: [ 51 "//art:__subpackages__", 52 "//packages/modules/adb:__subpackages__", 53 ], 54 55 // libadb_pairing_auth doesn't need an embedded build number. 56 use_version_lib: false, 57 58 host_supported: true, 59 recovery_available: false, 60 61 stl: "libc++_static", 62 63 static_libs: ["libbase"], 64 shared_libs: [ 65 "libcrypto", 66 "liblog", 67 ], 68} 69 70cc_library { 71 name: "libadb_pairing_auth", 72 defaults: ["libadb_pairing_auth_defaults"], 73 74 apex_available: [ 75 "com.android.adbd", 76 ], 77 78 stubs: { 79 symbol_file: "libadb_pairing_auth.map.txt", 80 versions: ["30"], 81 }, 82} 83 84// For running atest (b/147158681) 85cc_library_static { 86 name: "libadb_pairing_auth_static", 87 defaults: ["libadb_pairing_auth_defaults"], 88 89 apex_available: [ 90 "//apex_available:platform", 91 ], 92} 93