blob: e2c27f1f3e8f073bd8885cf01367ccaac6735715 [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",
Joshua Duong62a42ec2020-07-30 16:34:29 -070051 "libadb_sysdeps",
Joshua Duongef28ca42019-12-19 16:36:30 -080052 "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 ],
Joshua Duongef28ca42019-12-19 16:36:30 -080067}
68
69// For running atest (b/147158681)
70cc_library_static {
71 name: "libadb_crypto_static",
72 defaults: ["libadb_crypto_defaults"],
73
74 apex_available: [
75 "//apex_available:platform",
76 ],
77
78 static_libs: [
79 "libadb_protos_static",
Joshua Duong62a42ec2020-07-30 16:34:29 -070080 "libadb_sysdeps",
Joshua Duongef28ca42019-12-19 16:36:30 -080081 ],
82}