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