Wedson Almeida Filho | ba42dac | 2020-08-13 17:11:18 +0100 | [diff] [blame] | 1 | // |
| 2 | // Copyright (C) 2020 The Android Open Source Project |
| 3 | // |
| 4 | // Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | // you may not use this file except in compliance with the License. |
| 6 | // You may obtain a copy of the License at |
| 7 | // |
| 8 | // http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | // |
| 10 | // Unless required by applicable law or agreed to in writing, software |
| 11 | // distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | // See the License for the specific language governing permissions and |
| 14 | // limitations under the License. |
| 15 | // |
| 16 | |
Bob Badour | 4c7858c | 2021-02-12 15:40:29 -0800 | [diff] [blame] | 17 | package { |
| 18 | // See: http://go/android-license-faq |
| 19 | // A large-scale-change added 'default_applicable_licenses' to import |
| 20 | // all of the 'license_kinds' from "system_security_license" |
| 21 | // to get the below license kinds: |
| 22 | // SPDX-license-identifier-Apache-2.0 |
| 23 | default_applicable_licenses: ["system_security_license"], |
| 24 | } |
| 25 | |
Seth Moore | 708da93 | 2022-08-18 14:38:05 -0700 | [diff] [blame] | 26 | cc_defaults { |
| 27 | name: "rkp_factory_extraction_defaults", |
Max Bires | d0f7b35 | 2022-01-27 18:30:46 -0800 | [diff] [blame] | 28 | defaults: [ |
Seth Moore | 708da93 | 2022-08-18 14:38:05 -0700 | [diff] [blame] | 29 | "keymint_use_latest_hal_aidl_ndk_static", |
Max Bires | d0f7b35 | 2022-01-27 18:30:46 -0800 | [diff] [blame] | 30 | ], |
Max Bires | f60987e | 2021-04-16 13:35:20 -0700 | [diff] [blame] | 31 | shared_libs: [ |
Max Bires | f60987e | 2021-04-16 13:35:20 -0700 | [diff] [blame] | 32 | "libbinder", |
| 33 | "libbinder_ndk", |
Seth Moore | 5914625 | 2021-07-02 08:59:23 -0700 | [diff] [blame] | 34 | "libcrypto", |
| 35 | "liblog", |
| 36 | ], |
| 37 | static_libs: [ |
Seth Moore | cd6e918 | 2022-11-04 17:39:05 +0000 | [diff] [blame] | 38 | "android.hardware.security.rkp-V3-ndk", |
Seth Moore | 5914625 | 2021-07-02 08:59:23 -0700 | [diff] [blame] | 39 | "libbase", |
Max Bires | f60987e | 2021-04-16 13:35:20 -0700 | [diff] [blame] | 40 | "libcppbor_external", |
| 41 | "libcppcose_rkp", |
Seth Moore | 5914625 | 2021-07-02 08:59:23 -0700 | [diff] [blame] | 42 | "libjsoncpp", |
Seth Moore | 6dfb02a | 2021-06-18 15:43:09 -0700 | [diff] [blame] | 43 | "libkeymint_remote_prov_support", |
Max Bires | f60987e | 2021-04-16 13:35:20 -0700 | [diff] [blame] | 44 | ], |
Max Bires | f60987e | 2021-04-16 13:35:20 -0700 | [diff] [blame] | 45 | } |
Seth Moore | 708da93 | 2022-08-18 14:38:05 -0700 | [diff] [blame] | 46 | |
| 47 | cc_library_static { |
| 48 | name: "librkp_factory_extraction", |
| 49 | defaults: [ |
| 50 | "rkp_factory_extraction_defaults", |
| 51 | ], |
| 52 | srcs: ["rkp_factory_extraction_lib.cpp"], |
| 53 | vendor_available: true, |
| 54 | } |
| 55 | |
| 56 | cc_test { |
| 57 | name: "librkp_factory_extraction_test", |
| 58 | defaults: [ |
| 59 | "rkp_factory_extraction_defaults", |
| 60 | ], |
| 61 | srcs: ["rkp_factory_extraction_lib_test.cpp"], |
| 62 | test_suites: ["device-tests"], |
| 63 | static_libs: [ |
| 64 | "libgmock", |
| 65 | "librkp_factory_extraction", |
| 66 | ], |
| 67 | } |
| 68 | |
| 69 | cc_binary { |
| 70 | name: "rkp_factory_extraction_tool", |
Jerome Gaillard | b6afaff | 2022-11-18 16:32:17 +0000 | [diff] [blame] | 71 | vendor: true, |
Seth Moore | 708da93 | 2022-08-18 14:38:05 -0700 | [diff] [blame] | 72 | srcs: ["rkp_factory_extraction_tool.cpp"], |
| 73 | defaults: [ |
| 74 | "rkp_factory_extraction_defaults", |
| 75 | ], |
| 76 | static_libs: [ |
| 77 | "libgflags", |
| 78 | "librkp_factory_extraction", |
| 79 | ], |
Robert Shih | 5b2d983 | 2023-06-28 15:32:45 -0700 | [diff] [blame^] | 80 | dist: { |
| 81 | targets: [ |
| 82 | "dist_files", |
| 83 | "rkp_factory_extraction_tool", |
| 84 | ], |
| 85 | dest: "rkp_factory_extraction_tool" |
| 86 | }, |
| 87 | compile_multilib: "both", |
| 88 | multilib: { |
| 89 | lib64: { |
| 90 | suffix: "64", |
| 91 | }, |
| 92 | }, |
| 93 | stl: "libc++_static", |
| 94 | target: { |
| 95 | android_arm: { |
| 96 | dist: { |
| 97 | dir: "rkp_factory_extraction_tool/arm", |
| 98 | }, |
| 99 | }, |
| 100 | android_arm64: { |
| 101 | dist: { |
| 102 | dir: "rkp_factory_extraction_tool/arm64", |
| 103 | }, |
| 104 | }, |
| 105 | android_x86: { |
| 106 | dist: { |
| 107 | dir: "rkp_factory_extraction_tool/x86", |
| 108 | }, |
| 109 | }, |
| 110 | android_x86_64: { |
| 111 | dist: { |
| 112 | dir: "rkp_factory_extraction_tool/x86_64", |
| 113 | }, |
| 114 | }, |
| 115 | }, |
Seth Moore | 708da93 | 2022-08-18 14:38:05 -0700 | [diff] [blame] | 116 | } |