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