1/* 2 * Copyright (C) 2019 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 17cc_library_host_static { 18 name: "libhidl-lint", 19 defaults: ["hidl-gen-defaults"], 20 export_shared_lib_headers: ["libjsoncpp"], 21 srcs: [ 22 "Lint.cpp", 23 "LintRegistry.cpp", 24 "lints/*", 25 ], 26 shared_libs: [ 27 "libbase", 28 "libjsoncpp", 29 "liblog", 30 ], 31 static_libs: [ 32 "libcrypto", 33 "libhidl-gen", 34 "libhidl-gen-ast", 35 "libhidl-gen-hash", 36 "libhidl-gen-host-utils", 37 "libhidl-gen-utils", 38 ], 39} 40 41cc_binary_host { 42 name: "hidl-lint", 43 defaults: ["hidl-gen-defaults"], 44 srcs: ["main.cpp"], 45 static_libs: [ 46 "libbase", 47 "libcrypto", 48 "libhidl-gen", 49 "libhidl-gen-ast", 50 "libhidl-gen-hash", 51 "libhidl-gen-host-utils", 52 "libhidl-gen-utils", 53 "libjsoncpp", 54 "liblog", 55 ], 56 whole_static_libs: ["libhidl-lint"], 57} 58