1/* 2 * Copyright (C) 2022 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 17package { 18 default_applicable_licenses: ["Android-Apache-2.0"], 19} 20 21cc_library { 22 name: "VehicleHalJsonConfigLoader", 23 vendor: true, 24 srcs: ["src/*.cpp"], 25 local_include_dirs: ["include"], 26 export_include_dirs: ["include"], 27 defaults: ["VehicleHalDefaults"], 28 static_libs: ["VehicleHalUtils"], 29 header_libs: [ 30 "IVehicleGeneratedHeaders-V3", 31 ], 32 shared_libs: ["libjsoncpp"], 33} 34 35cc_library { 36 name: "VehicleHalJsonConfigLoaderEnableTestProperties", 37 vendor: true, 38 srcs: [ 39 "src/*.cpp", 40 ":VhalTestVendorProperties", 41 ], 42 local_include_dirs: ["include"], 43 export_include_dirs: ["include"], 44 defaults: ["VehicleHalDefaults"], 45 static_libs: ["VehicleHalUtils"], 46 header_libs: [ 47 "IVehicleGeneratedHeaders-V3", 48 "libbinder_headers", 49 ], 50 cflags: ["-DENABLE_VEHICLE_HAL_TEST_PROPERTIES"], 51 shared_libs: ["libjsoncpp"], 52 host_supported: true, 53} 54 55cc_library_headers { 56 name: "VehicleHalJsonConfigLoaderHeaders", 57 vendor: true, 58 local_include_dirs: ["include"], 59 export_include_dirs: ["include"], 60 defaults: ["VehicleHalDefaults"], 61 static_libs: ["VehicleHalUtils"], 62 header_libs: [ 63 "IVehicleGeneratedHeaders-V3", 64 ], 65 shared_libs: ["libjsoncpp"], 66} 67