Home | History | Annotate | Download | only in common
      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_shared {
     18 
     19     name: "libvts_common",
     20     host_supported: true,
     21 
     22     cflags: [
     23         "-Wall",
     24         "-Werror",
     25     ],
     26 
     27     srcs: [
     28         "specification_parser/InterfaceSpecificationParser.cpp",
     29         "utils/InterfaceSpecUtil.cpp",
     30         "utils/StringUtil.cpp",
     31     ],
     32 
     33     include_dirs: [
     34         "frameworks/native/include",
     35         "libcore",
     36         "system/core/include",
     37         "system/extras",
     38     ],
     39 
     40     local_include_dirs: ["include"],
     41 
     42     shared_libs: [
     43         "libprotobuf-cpp-full",
     44         "libvts_multidevice_proto",
     45     ],
     46 
     47     export_include_dirs: ["include"],
     48 
     49     target: {
     50         android: {
     51             srcs: [
     52                 "binder/VtsFuzzerBinderService.cpp",
     53                 "component_loader/DllLoader.cpp",
     54                 "fuzz_tester/FuzzerBase.cpp",
     55                 "fuzz_tester/FuzzerCallbackBase.cpp",
     56                 "fuzz_tester/FuzzerWrapper.cpp",
     57                 "specification_parser/SpecificationBuilder.cpp",
     58                 "replayer/VtsHidlHalReplayer.cpp",
     59             ],
     60             shared_libs: [
     61                 "libbinder",
     62                 "libcutils",
     63                 "libdl",
     64                 "liblog",
     65                 "libutils",
     66                 "libvts_codecoverage",
     67                 "libvts_drivercomm",
     68                 "libvts_multidevice_proto",
     69             ],
     70         },
     71     },
     72 }
     73