blob: 032a61a1228cea1d089297430190d83cb7364ee5 [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
Steven Morelandc75fc622017-08-04 11:04:39 -070015cc_defaults {
16 name: "libhidl-defaults",
17 cflags: [
18 "-Wall",
19 "-Werror",
20 ],
21}
Steven Moreland8dd65742017-02-17 22:39:46 -080022
Yifan Hong00f4a392016-11-16 12:35:58 -080023cc_test {
24 name: "libhidl_test",
Steven Morelandc75fc622017-08-04 11:04:39 -070025 defaults: ["libhidl-defaults"],
Yifan Hong00f4a392016-11-16 12:35:58 -080026 gtest: false,
27 srcs: ["test_main.cpp"],
28
Dan Willemsen6365a872016-09-13 16:29:54 -070029 shared_libs: [
Steven Moreland951fb132017-11-07 14:24:07 -080030 "android.hardware.tests.inheritance@1.0",
Dan Willemsen6365a872016-09-13 16:29:54 -070031 "libbase",
Yifan Hong00f4a392016-11-16 12:35:58 -080032 "libhidlbase",
33 "libhidltransport",
34 "libhwbinder",
Dan Willemsen6365a872016-09-13 16:29:54 -070035 "liblog",
36 "libutils",
Jeff Tinker0f3461d2017-01-03 10:40:55 -080037 "libcutils",
Dan Willemsen6365a872016-09-13 16:29:54 -070038 ],
Yifan Hong2be94182017-03-03 19:07:38 -080039 static_libs: ["libgtest", "libgmock"],
Yifan Hong00f4a392016-11-16 12:35:58 -080040
Steven Moreland951fb132017-11-07 14:24:07 -080041 required: [
42 "android.hardware.tests.inheritance@1.0-impl",
43 ],
44
Yifan Hong00f4a392016-11-16 12:35:58 -080045 cflags: [
46 "-O0",
47 "-g",
Steven Morelandc75fc622017-08-04 11:04:39 -070048 ],
Dan Willemsen6365a872016-09-13 16:29:54 -070049}