blob: f9b1e962b9a6f189508d0f32e79af6cc34f2a9b1 [file] [log] [blame]
Dan Willemsen6365a872016-09-13 16:29:54 -07001// Copyright (C) 2016 The Android Open Source Project
2//
3// Licensed under the Apache License, Version 2.0 (the "License");
4// you may not use this file except in compliance with the License.
5// You may obtain a copy of the License at
6//
7// http://www.apache.org/licenses/LICENSE-2.0
8//
9// Unless required by applicable law or agreed to in writing, software
10// distributed under the License is distributed on an "AS IS" BASIS,
11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12// See the License for the specific language governing permissions and
13// limitations under the License.
14
Yifan Hong602b85a2016-10-24 13:40:01 -070015subdirs = [
Steven Morelandff189a02017-09-15 16:22:48 -070016 "adapter",
Martijn Coenen30791002016-12-01 15:40:46 +010017 "base", // libhidlbase
18 "libhidlmemory", // libhidlmemory
Steven Morelande6656972017-10-11 11:22:44 -070019 "minijail",
Martijn Coenen30791002016-12-01 15:40:46 +010020 "transport", // libhidltransport
Yifan Hong602b85a2016-10-24 13:40:01 -070021]
22
Steven Morelandc75fc622017-08-04 11:04:39 -070023cc_defaults {
24 name: "libhidl-defaults",
25 cflags: [
26 "-Wall",
27 "-Werror",
28 ],
29}
Steven Moreland8dd65742017-02-17 22:39:46 -080030
Yifan Hong00f4a392016-11-16 12:35:58 -080031cc_test {
32 name: "libhidl_test",
Steven Morelandc75fc622017-08-04 11:04:39 -070033 defaults: ["libhidl-defaults"],
Yifan Hong00f4a392016-11-16 12:35:58 -080034 gtest: false,
35 srcs: ["test_main.cpp"],
36
Dan Willemsen6365a872016-09-13 16:29:54 -070037 shared_libs: [
Steven Moreland951fb132017-11-07 14:24:07 -080038 "android.hardware.tests.inheritance@1.0",
Dan Willemsen6365a872016-09-13 16:29:54 -070039 "libbase",
Yifan Hong00f4a392016-11-16 12:35:58 -080040 "libhidlbase",
41 "libhidltransport",
42 "libhwbinder",
Dan Willemsen6365a872016-09-13 16:29:54 -070043 "liblog",
44 "libutils",
Jeff Tinker0f3461d2017-01-03 10:40:55 -080045 "libcutils",
Dan Willemsen6365a872016-09-13 16:29:54 -070046 ],
Yifan Hong2be94182017-03-03 19:07:38 -080047 static_libs: ["libgtest", "libgmock"],
Yifan Hong00f4a392016-11-16 12:35:58 -080048
Steven Moreland951fb132017-11-07 14:24:07 -080049 required: [
50 "android.hardware.tests.inheritance@1.0-impl",
51 ],
52
Yifan Hong00f4a392016-11-16 12:35:58 -080053 cflags: [
54 "-O0",
55 "-g",
Steven Morelandc75fc622017-08-04 11:04:39 -070056 ],
Dan Willemsen6365a872016-09-13 16:29:54 -070057}