Home | History | Annotate | Download | only in vtsc
      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/HalHidlCodeGen.cpp",
     28         "code_gen/driver/LibSharedCodeGen.cpp",
     29         "code_gen/fuzzer/FuzzerCodeGenBase.cpp",
     30         "code_gen/fuzzer/HalHidlFuzzerCodeGen.cpp",
     31         "code_gen/profiler/ProfilerCodeGenBase.cpp",
     32         "code_gen/profiler/HalHidlProfilerCodeGen.cpp",
     33     ],
     34 
     35     include_dirs: ["test/vts/drivers/hal/common"],
     36 
     37     static_libs: ["libz"],
     38 
     39     shared_libs: [
     40         "libbase",
     41         "libhidl-gen-utils",
     42         "libprotobuf-cpp-full",
     43         "libvts_common",
     44         "libvts_multidevice_proto",
     45     ],
     46 
     47     cflags: [
     48         "-Wall",
     49         "-Werror",
     50     ],
     51 
     52 }
     53 
     54 cc_binary_host {
     55 
     56     name: "vtsc",
     57 
     58     srcs: ["VtsCompilerMain.cpp"],
     59 
     60     include_dirs: ["test/vts/drivers/hal/common"],
     61 
     62     static_libs: ["libz"],
     63 
     64     shared_libs: [
     65         "libbase",
     66         "libhidl-gen-utils",
     67         "libvts_multidevice_proto",
     68         "libvtsc",
     69     ],
     70 
     71     cflags: [
     72         "-Wall",
     73         "-Werror",
     74     ],
     75 
     76 }
     77