1 // 2 // Copyright (C) 2016 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_library_host_shared { 18 19 name: "libvtsc", 20 21 srcs: [ 22 "VtsCompilerUtils.cpp", 23 "code_gen/CodeGenBase.cpp", 24 "code_gen/common/HalHidlCodeGenUtils.cpp", 25 "code_gen/driver/DriverCodeGenBase.cpp", 26 "code_gen/driver/HalCodeGen.cpp", 27 "code_gen/driver/HalSubmoduleCodeGen.cpp", 28 "code_gen/driver/HalHidlCodeGen.cpp", 29 "code_gen/driver/LegacyHalCodeGen.cpp", 30 "code_gen/driver/LibSharedCodeGen.cpp", 31 "code_gen/fuzzer/FuzzerCodeGenBase.cpp", 32 "code_gen/fuzzer/HalHidlFuzzerCodeGen.cpp", 33 "code_gen/profiler/ProfilerCodeGenBase.cpp", 34 "code_gen/profiler/HalHidlProfilerCodeGen.cpp", 35 ], 36 37 include_dirs: ["test/vts/drivers/hal/common"], 38 39 static_libs: ["libz"], 40 41 shared_libs: [ 42 "libbase", 43 "libhidl-gen-utils", 44 "libprotobuf-cpp-full", 45 "libvts_common", 46 "libvts_multidevice_proto", 47 ], 48 49 cflags: [ 50 "-Wall", 51 "-Werror", 52 ], 53 54 } 55 56 cc_binary_host { 57 58 name: "vtsc", 59 60 srcs: ["VtsCompilerMain.cpp"], 61 62 include_dirs: ["test/vts/drivers/hal/common"], 63 64 static_libs: ["libz"], 65 66 shared_libs: [ 67 "libbase", 68 "libhidl-gen-utils", 69 "libvts_multidevice_proto", 70 "libvtsc", 71 ], 72 73 cflags: [ 74 "-Wall", 75 "-Werror", 76 ], 77 78 } 79