• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1//
2// Copyright (C) 2018 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_defaults {
18
19    name: "libvts_resource-defaults",
20
21    cflags: [
22        "-Wall",
23        "-Werror",
24    ],
25
26    local_include_dirs: ["include"],
27
28    static_libs: [
29        "android.hardware.audio@4.0",
30        "android.hardware.audio.effect@2.0",
31        "android.hardware.audio.effect@4.0",
32    ],
33
34    shared_libs: [
35        "android.hidl.allocator@1.0",
36        "android.hidl.memory@1.0",
37        "libbase",
38        "libcutils",
39        "libfmq",
40        "libhidlbase",
41        "libhidlmemory",
42        "liblog",
43        "libprotobuf-cpp-full",
44        "libutils",
45    ],
46
47    export_include_dirs: ["include"],
48
49    export_static_lib_headers: [
50        "android.hardware.audio@4.0",
51        "android.hardware.audio.effect@2.0",
52        "android.hardware.audio.effect@4.0",
53    ],
54
55    export_shared_lib_headers: [
56        "android.hidl.allocator@1.0",
57        "android.hidl.memory@1.0",
58        "libcutils",
59        "libfmq",
60        "libhidlbase",
61        "libutils",
62    ],
63}
64
65cc_library_shared {
66    name: "libvts_resource_driver",
67
68    defaults: ["libvts_resource-defaults"],
69
70    // TODO(b/153609531): remove when no longer needed.
71    native_bridge_supported: true,
72
73    srcs: [
74        "hidl_handle_driver/VtsHidlHandleDriver.cpp",
75        "hidl_memory_driver/VtsHidlMemoryDriver.cpp",
76    ],
77}
78
79cc_library_shared {
80    name: "libvts_resource_manager",
81
82    defaults: ["libvts_resource-defaults"],
83
84    // TODO(b/153609531): remove when no longer needed.
85    native_bridge_supported: true,
86
87    srcs: [
88        "resource_manager/VtsResourceManager.cpp",
89    ],
90
91    shared_libs: [
92        "libvts_multidevice_proto",
93        "libvts_resource_driver",
94    ],
95}
96
97cc_test {
98    name: "vts_resource_fmq_test",
99
100    defaults: ["libvts_resource-defaults"],
101
102    rtti: true,
103
104    srcs: [
105        "fmq_driver/VtsFmqDriverTest.cpp"
106    ],
107}
108
109cc_test {
110    name: "vts_resource_hidl_memory_test",
111
112    defaults: ["libvts_resource-defaults"],
113
114    srcs: [
115        "hidl_memory_driver/VtsHidlMemoryDriver.cpp",
116        "hidl_memory_driver/VtsHidlMemoryDriverTest.cpp",
117    ]
118}
119
120cc_test {
121    name: "vts_resource_hidl_handle_test",
122
123    defaults: ["libvts_resource-defaults"],
124
125    srcs: [
126        "hidl_handle_driver/VtsHidlHandleDriver.cpp",
127        "hidl_handle_driver/VtsHidlHandleDriverTest.cpp",
128    ]
129}
130