blob: 962984cbf631266e9653ca5951547dd2eb72218d [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
19 "transport", // libhidltransport
Yifan Hong602b85a2016-10-24 13:40:01 -070020]
21
Steven Morelandc75fc622017-08-04 11:04:39 -070022cc_defaults {
23 name: "libhidl-defaults",
24 cflags: [
25 "-Wall",
26 "-Werror",
27 ],
28}
Steven Moreland8dd65742017-02-17 22:39:46 -080029
Yifan Hong00f4a392016-11-16 12:35:58 -080030cc_test {
31 name: "libhidl_test",
Steven Morelandc75fc622017-08-04 11:04:39 -070032 defaults: ["libhidl-defaults"],
Yifan Hong00f4a392016-11-16 12:35:58 -080033 gtest: false,
34 srcs: ["test_main.cpp"],
35
Dan Willemsen6365a872016-09-13 16:29:54 -070036 shared_libs: [
37 "libbase",
Yifan Hong00f4a392016-11-16 12:35:58 -080038 "libhidlbase",
39 "libhidltransport",
40 "libhwbinder",
Dan Willemsen6365a872016-09-13 16:29:54 -070041 "liblog",
42 "libutils",
Jeff Tinker0f3461d2017-01-03 10:40:55 -080043 "libcutils",
Dan Willemsen6365a872016-09-13 16:29:54 -070044 ],
Yifan Hong2be94182017-03-03 19:07:38 -080045 static_libs: ["libgtest", "libgmock"],
Yifan Hong00f4a392016-11-16 12:35:58 -080046
47 cflags: [
48 "-O0",
49 "-g",
Steven Morelandc75fc622017-08-04 11:04:39 -070050 ],
Dan Willemsen6365a872016-09-13 16:29:54 -070051}