blob: 38dc10b485ddf464c65de218352409359e364233 [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: [
26 "android.hardware.identity@1.0",
27 "libcrypto",
28 "libbase",
29 "libhidlbase",
30 "libhardware",
31 ],
32 static_libs: [
33 "libcppbor",
34 ],
35}
36
37cc_test {
38 name: "android.hardware.identity-support-lib-test",
39 srcs: [
40 "tests/IdentityCredentialSupportTest.cpp",
41 ],
42 shared_libs: [
43 "android.hardware.identity-support-lib",
44 "android.hardware.identity@1.0",
45 "libcrypto",
46 "libbase",
47 "libhidlbase",
48 "libhardware",
49 ],
50 static_libs: [
51 "libcppbor",
52 "libgmock",
53 ],
54 test_suites: ["general-tests"],
55}
56
57// --
58
59cc_library {
60 name: "libcppbor",
61 vendor_available: true,
62 host_supported: true,
63 srcs: [
64 "src/cppbor.cpp",
65 "src/cppbor_parse.cpp",
66 ],
67 export_include_dirs: [
68 "include/cppbor",
69 ],
70 shared_libs: [
71 "libbase",
72 ],
73}
74
75cc_test {
76 name: "cppbor_test",
77 srcs: [
78 "tests/cppbor_test.cpp",
79 ],
80 shared_libs: [
81 "libcppbor",
82 "libbase",
83 ],
84 static_libs: [
85 "libgmock",
86 ],
87 test_suites: ["general-tests"],
88}
89
90cc_test_host {
91 name: "cppbor_host_test",
92 srcs: [
93 "tests/cppbor_test.cpp",
94 ],
95 shared_libs: [
96 "libcppbor",
97 "libbase",
98 ],
99 static_libs: [
100 "libgmock",
101 ],
102 test_suites: ["general-tests"],
103}