blob: c4052c39b412fc6f26d1e28c9622caee2d4216ae [file] [log] [blame]
Joshua Duongef28ca42019-12-19 16:36:30 -08001// Copyright (C) 2019 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_crypto_defaults",
17 cflags: [
18 "-Wall",
19 "-Wextra",
20 "-Wthread-safety",
21 "-Werror",
22 ],
23
24 compile_multilib: "both",
25
26 srcs: [
27 "key.cpp",
28 "rsa_2048_key.cpp",
29 "x509_generator.cpp",
30 ],
31
32 target: {
33 windows: {
34 compile_multilib: "first",
35 enabled: true,
36 },
37 },
38
39 export_include_dirs: ["include"],
40
41 visibility: [
Josh Gao37356142020-03-27 19:41:59 -070042 "//bootable/recovery/minadbd:__subpackages__",
Baligh Uddin27674472020-10-18 15:09:52 +000043 "//packages/modules/adb:__subpackages__",
44 "//system/core/adb:__subpackages__",
Joshua Duongef28ca42019-12-19 16:36:30 -080045 ],
46
47 host_supported: true,
48 recovery_available: true,
49
Joshua Duongef28ca42019-12-19 16:36:30 -080050 shared_libs: [
51 "libadb_protos",
Joshua Duong62a42ec2020-07-30 16:34:29 -070052 "libadb_sysdeps",
Joshua Duongef28ca42019-12-19 16:36:30 -080053 "libbase",
54 "liblog",
55 "libcrypto",
56 "libcrypto_utils",
57 ],
58}
59
60cc_library {
61 name: "libadb_crypto",
62 defaults: ["libadb_crypto_defaults"],
63
64 apex_available: [
65 "com.android.adbd",
66 "test_com.android.adbd",
67 ],
Joshua Duongef28ca42019-12-19 16:36:30 -080068}
69
70// For running atest (b/147158681)
71cc_library_static {
72 name: "libadb_crypto_static",
73 defaults: ["libadb_crypto_defaults"],
74
75 apex_available: [
76 "//apex_available:platform",
77 ],
78
79 static_libs: [
80 "libadb_protos_static",
Joshua Duong62a42ec2020-07-30 16:34:29 -070081 "libadb_sysdeps",
Joshua Duongef28ca42019-12-19 16:36:30 -080082 ],
83}