blob: 2b6c69544255e0c1dcc7a39c5a1a358825b97a23 [file] [log] [blame]
David Zeuthenc75ac312019-10-28 13:16:45 -04001// 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//
15
16cc_library {
17 name: "android.hardware.identity-support-lib",
18 vendor_available: true,
19 srcs: [
20 "src/IdentityCredentialSupport.cpp",
21 ],
22 export_include_dirs: [
23 "include",
24 ],
25 shared_libs: [
Selene Huang459cb802020-01-08 22:59:02 -080026 "android.hardware.keymaster@4.0",
David Zeuthenc75ac312019-10-28 13:16:45 -040027 "libcrypto",
28 "libbase",
29 "libhidlbase",
30 "libhardware",
Selene Huang459cb802020-01-08 22:59:02 -080031 "libkeymaster_portable",
32 "libsoft_attestation_cert",
33 "libpuresoftkeymasterdevice",
David Zeuthenc75ac312019-10-28 13:16:45 -040034 ],
35 static_libs: [
36 "libcppbor",
37 ],
38}
39
40cc_test {
41 name: "android.hardware.identity-support-lib-test",
42 srcs: [
43 "tests/IdentityCredentialSupportTest.cpp",
44 ],
45 shared_libs: [
46 "android.hardware.identity-support-lib",
David Zeuthenc75ac312019-10-28 13:16:45 -040047 "libcrypto",
48 "libbase",
49 "libhidlbase",
50 "libhardware",
51 ],
52 static_libs: [
53 "libcppbor",
54 "libgmock",
55 ],
56 test_suites: ["general-tests"],
57}
58
59// --
60
61cc_library {
62 name: "libcppbor",
63 vendor_available: true,
64 host_supported: true,
65 srcs: [
66 "src/cppbor.cpp",
67 "src/cppbor_parse.cpp",
68 ],
69 export_include_dirs: [
70 "include/cppbor",
71 ],
72 shared_libs: [
73 "libbase",
74 ],
75}
76
77cc_test {
78 name: "cppbor_test",
79 srcs: [
80 "tests/cppbor_test.cpp",
81 ],
82 shared_libs: [
83 "libcppbor",
84 "libbase",
85 ],
86 static_libs: [
87 "libgmock",
88 ],
89 test_suites: ["general-tests"],
90}
91
92cc_test_host {
93 name: "cppbor_host_test",
94 srcs: [
95 "tests/cppbor_test.cpp",
96 ],
97 shared_libs: [
98 "libcppbor",
99 "libbase",
100 ],
101 static_libs: [
102 "libgmock",
103 ],
104 test_suites: ["general-tests"],
105}