1 // 2 // Copyright (C) 2017 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_defaults { 18 name: "citadeld_defaults", 19 srcs: [ 20 "aidl/android/hardware/citadel/ICitadeld.aidl", 21 ], 22 defaults: ["nos_cc_defaults"], 23 header_libs: [ 24 "nos_headers", 25 ], 26 shared_libs: [ 27 "libbase", 28 "libbinder", 29 "libnos", 30 "libutils", 31 ], 32 } 33 34 cc_defaults { 35 name: "citadeld_hw_defaults", 36 defaults: [ 37 "nos_cc_hw_defaults", 38 "citadeld_defaults", 39 ], 40 } 41 42 cc_binary { 43 name: "citadeld", 44 init_rc: ["citadeld.rc"], 45 srcs: [ 46 "main.cpp", 47 ], 48 defaults: ["citadeld_hw_defaults"], 49 shared_libs: [ 50 "libnos", 51 "libnos_client_citadel", 52 "libnos_transport", 53 ], 54 } 55 56 cc_library { 57 name: "libnos_citadeld_proxy", 58 srcs: [ 59 "CitadeldProxyClient.cpp", 60 ], 61 defaults: ["citadeld_defaults"], 62 export_include_dirs: ["include"], 63 export_shared_lib_headers: ["libbinder"], 64 aidl: { 65 export_aidl_headers: true, 66 }, 67 } 68