| Dan Willemsen | 3e963f9 | 2018-10-31 10:32:32 -0700 | [diff] [blame] | 1 | // | 
 | 2 | // Copyright (C) 2015 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 | d69ad69 | 2021-02-16 19:02:14 -0800 | [diff] [blame] | 17 | package { | 
 | 18 |     default_applicable_licenses: ["Android-Apache-2.0"], | 
 | 19 | } | 
 | 20 |  | 
| Dan Willemsen | 3e963f9 | 2018-10-31 10:32:32 -0700 | [diff] [blame] | 21 | cc_binary { | 
 | 22 |     name: "gatekeeperd", | 
 | 23 |     cflags: [ | 
 | 24 |         "-Wall", | 
 | 25 |         "-Wextra", | 
 | 26 |         "-Werror", | 
 | 27 |         "-Wunused", | 
 | 28 |     ], | 
 | 29 |     srcs: [ | 
| Dan Willemsen | 3e963f9 | 2018-10-31 10:32:32 -0700 | [diff] [blame] | 30 |         "gatekeeperd.cpp", | 
 | 31 |     ], | 
| David Drysdale | c5b7d17 | 2021-11-22 15:15:57 +0000 | [diff] [blame] | 32 |     defaults: [ | 
 | 33 |         "keymint_use_latest_hal_aidl_ndk_shared", | 
 | 34 |     ], | 
| Dan Willemsen | 3e963f9 | 2018-10-31 10:32:32 -0700 | [diff] [blame] | 35 |     shared_libs: [ | 
 | 36 |         "libbinder", | 
| Hasini Gunasinghe | 6fd5603 | 2020-12-08 21:08:13 +0000 | [diff] [blame] | 37 |         "libbinder_ndk", | 
| Dan Willemsen | 3e963f9 | 2018-10-31 10:32:32 -0700 | [diff] [blame] | 38 |         "libgatekeeper", | 
| David Anderson | 97400bd | 2019-02-15 15:59:39 -0800 | [diff] [blame] | 39 |         "libgsi", | 
| Dan Willemsen | 3e963f9 | 2018-10-31 10:32:32 -0700 | [diff] [blame] | 40 |         "liblog", | 
 | 41 |         "libhardware", | 
 | 42 |         "libbase", | 
 | 43 |         "libutils", | 
 | 44 |         "libcrypto", | 
| Dan Willemsen | 3e963f9 | 2018-10-31 10:32:32 -0700 | [diff] [blame] | 45 |         "libhidlbase", | 
| Dan Willemsen | 3e963f9 | 2018-10-31 10:32:32 -0700 | [diff] [blame] | 46 |         "android.hardware.gatekeeper@1.0", | 
| Janis Danisevskis | 3a1eb67 | 2019-03-29 11:14:31 -0700 | [diff] [blame] | 47 |         "libgatekeeper_aidl", | 
| Jiyong Park | 1486987 | 2021-07-27 12:19:00 +0900 | [diff] [blame] | 48 |         "android.security.authorization-ndk", | 
| Dan Willemsen | 3e963f9 | 2018-10-31 10:32:32 -0700 | [diff] [blame] | 49 |     ], | 
 | 50 |  | 
 | 51 |     static_libs: ["libscrypt_static"], | 
 | 52 |     include_dirs: ["external/scrypt/lib/crypto"], | 
 | 53 |     init_rc: ["gatekeeperd.rc"], | 
 | 54 | } | 
| Janis Danisevskis | 3a1eb67 | 2019-03-29 11:14:31 -0700 | [diff] [blame] | 55 |  | 
 | 56 | filegroup { | 
 | 57 |     name: "gatekeeper_aidl", | 
 | 58 |     srcs: [ | 
 | 59 |         "binder/android/service/gatekeeper/IGateKeeperService.aidl", | 
 | 60 |     ], | 
 | 61 |     path: "binder", | 
 | 62 | } | 
 | 63 |  | 
 | 64 | cc_library_shared { | 
 | 65 |     name: "libgatekeeper_aidl", | 
 | 66 |     srcs: [ | 
 | 67 |         ":gatekeeper_aidl", | 
 | 68 |         "GateKeeperResponse.cpp", | 
 | 69 |     ], | 
 | 70 |     aidl: { | 
 | 71 |         export_aidl_headers: true, | 
 | 72 |         include_dirs: [ | 
 | 73 |             "system/core/gatekeeperd/binder", | 
 | 74 |             "frameworks/base/core/java/", | 
 | 75 |         ], | 
 | 76 |     }, | 
 | 77 |     export_include_dirs: ["include"], | 
 | 78 |     shared_libs: [ | 
 | 79 |         "libbase", | 
 | 80 |         "libbinder", | 
 | 81 |         "libcutils", | 
 | 82 |         "liblog", | 
 | 83 |         "libutils", | 
 | 84 |     ], | 
 | 85 |     export_shared_lib_headers: [ | 
 | 86 |         "libbinder", | 
 | 87 |     ], | 
 | 88 | } |