blob: ce1de4a528af26caaaaf35836802cc02e3023032 [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__",
43 ],
44
45 host_supported: true,
46 recovery_available: true,
47
Joshua Duongef28ca42019-12-19 16:36:30 -080048 shared_libs: [
49 "libadb_protos",
50 "libbase",
51 "liblog",
52 "libcrypto",
53 "libcrypto_utils",
54 ],
55}
56
57cc_library {
58 name: "libadb_crypto",
59 defaults: ["libadb_crypto_defaults"],
60
61 apex_available: [
62 "com.android.adbd",
63 "test_com.android.adbd",
64 ],
Joshua Duongef28ca42019-12-19 16:36:30 -080065}
66
67// For running atest (b/147158681)
68cc_library_static {
69 name: "libadb_crypto_static",
70 defaults: ["libadb_crypto_defaults"],
71
72 apex_available: [
73 "//apex_available:platform",
74 ],
75
76 static_libs: [
77 "libadb_protos_static",
78 ],
79}