blob: 9d14b030ac1e621be18ba3abd234bed857ed61ae [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: [
42 "//system/core/adb:__subpackages__",
Josh Gao37356142020-03-27 19:41:59 -070043 "//bootable/recovery/minadbd:__subpackages__",
Joshua Duongef28ca42019-12-19 16:36:30 -080044 ],
45
46 host_supported: true,
47 recovery_available: true,
48
Joshua Duongef28ca42019-12-19 16:36:30 -080049 shared_libs: [
50 "libadb_protos",
51 "libbase",
52 "liblog",
53 "libcrypto",
54 "libcrypto_utils",
55 ],
56}
57
58cc_library {
59 name: "libadb_crypto",
60 defaults: ["libadb_crypto_defaults"],
61
62 apex_available: [
63 "com.android.adbd",
64 "test_com.android.adbd",
65 ],
Joshua Duongef28ca42019-12-19 16:36:30 -080066}
67
68// For running atest (b/147158681)
69cc_library_static {
70 name: "libadb_crypto_static",
71 defaults: ["libadb_crypto_defaults"],
72
73 apex_available: [
74 "//apex_available:platform",
75 ],
76
77 static_libs: [
78 "libadb_protos_static",
79 ],
80}