blob: e97c28c8a8f330740f08cabd9c4670316a426412 [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: [
38 "libbase",
Yifan Hong00f4a392016-11-16 12:35:58 -080039 "libhidlbase",
40 "libhidltransport",
41 "libhwbinder",
Dan Willemsen6365a872016-09-13 16:29:54 -070042 "liblog",
43 "libutils",
Jeff Tinker0f3461d2017-01-03 10:40:55 -080044 "libcutils",
Dan Willemsen6365a872016-09-13 16:29:54 -070045 ],
Yifan Hong2be94182017-03-03 19:07:38 -080046 static_libs: ["libgtest", "libgmock"],
Yifan Hong00f4a392016-11-16 12:35:58 -080047
48 cflags: [
49 "-O0",
50 "-g",
Steven Morelandc75fc622017-08-04 11:04:39 -070051 ],
Dan Willemsen6365a872016-09-13 16:29:54 -070052}