blob: da4869a9a6bef6f5915cdfb9e6d40c6b60c24371 [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
48 stl: "libc++_static",
49
50 shared_libs: [
51 "libadb_protos",
52 "libbase",
53 "liblog",
54 "libcrypto",
55 "libcrypto_utils",
56 ],
57}
58
59cc_library {
60 name: "libadb_crypto",
61 defaults: ["libadb_crypto_defaults"],
62
63 apex_available: [
64 "com.android.adbd",
65 "test_com.android.adbd",
66 ],
67
68 static_libs: [
69 "libadb_protos",
70 ],
71}
72
73// For running atest (b/147158681)
74cc_library_static {
75 name: "libadb_crypto_static",
76 defaults: ["libadb_crypto_defaults"],
77
78 apex_available: [
79 "//apex_available:platform",
80 ],
81
82 static_libs: [
83 "libadb_protos_static",
84 ],
85}