| 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 |  | 
 | 17 | cc_binary { | 
 | 18 |     name: "gatekeeperd", | 
 | 19 |     cflags: [ | 
 | 20 |         "-Wall", | 
 | 21 |         "-Wextra", | 
 | 22 |         "-Werror", | 
 | 23 |         "-Wunused", | 
 | 24 |     ], | 
 | 25 |     srcs: [ | 
| Dan Willemsen | 3e963f9 | 2018-10-31 10:32:32 -0700 | [diff] [blame] | 26 |         "gatekeeperd.cpp", | 
 | 27 |     ], | 
 | 28 |  | 
 | 29 |     shared_libs: [ | 
 | 30 |         "libbinder", | 
 | 31 |         "libgatekeeper", | 
| David Anderson | 97400bd | 2019-02-15 15:59:39 -0800 | [diff] [blame] | 32 |         "libgsi", | 
| Dan Willemsen | 3e963f9 | 2018-10-31 10:32:32 -0700 | [diff] [blame] | 33 |         "liblog", | 
 | 34 |         "libhardware", | 
 | 35 |         "libbase", | 
 | 36 |         "libutils", | 
 | 37 |         "libcrypto", | 
 | 38 |         "libkeystore_aidl", | 
 | 39 |         "libkeystore_binder", | 
 | 40 |         "libhidlbase", | 
| Dan Willemsen | 3e963f9 | 2018-10-31 10:32:32 -0700 | [diff] [blame] | 41 |         "android.hardware.gatekeeper@1.0", | 
| Janis Danisevskis | 3a1eb67 | 2019-03-29 11:14:31 -0700 | [diff] [blame] | 42 |         "libgatekeeper_aidl", | 
| Dan Willemsen | 3e963f9 | 2018-10-31 10:32:32 -0700 | [diff] [blame] | 43 |     ], | 
 | 44 |  | 
 | 45 |     static_libs: ["libscrypt_static"], | 
 | 46 |     include_dirs: ["external/scrypt/lib/crypto"], | 
 | 47 |     init_rc: ["gatekeeperd.rc"], | 
 | 48 | } | 
| Janis Danisevskis | 3a1eb67 | 2019-03-29 11:14:31 -0700 | [diff] [blame] | 49 |  | 
 | 50 | filegroup { | 
 | 51 |     name: "gatekeeper_aidl", | 
 | 52 |     srcs: [ | 
 | 53 |         "binder/android/service/gatekeeper/IGateKeeperService.aidl", | 
 | 54 |     ], | 
 | 55 |     path: "binder", | 
 | 56 | } | 
 | 57 |  | 
 | 58 | cc_library_shared { | 
 | 59 |     name: "libgatekeeper_aidl", | 
 | 60 |     srcs: [ | 
 | 61 |         ":gatekeeper_aidl", | 
 | 62 |         "GateKeeperResponse.cpp", | 
 | 63 |     ], | 
 | 64 |     aidl: { | 
 | 65 |         export_aidl_headers: true, | 
 | 66 |         include_dirs: [ | 
 | 67 |             "system/core/gatekeeperd/binder", | 
 | 68 |             "frameworks/base/core/java/", | 
 | 69 |         ], | 
 | 70 |     }, | 
 | 71 |     export_include_dirs: ["include"], | 
 | 72 |     shared_libs: [ | 
 | 73 |         "libbase", | 
 | 74 |         "libbinder", | 
 | 75 |         "libcutils", | 
 | 76 |         "liblog", | 
 | 77 |         "libutils", | 
 | 78 |     ], | 
 | 79 |     export_shared_lib_headers: [ | 
 | 80 |         "libbinder", | 
 | 81 |     ], | 
 | 82 | } |