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