blob: 6b08c8703e8fe6e9a6d220bbc10bd9212c4138a0 [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 = [
16 "test",
Steven Moreland40ede2c2016-11-09 13:51:53 -080017 "manager/1.0"
Yifan Hong602b85a2016-10-24 13:40:01 -070018]
19
Dan Willemsen6365a872016-09-13 16:29:54 -070020cc_library_shared {
21 name: "libhidl",
22 shared_libs: [
23 "libbase",
24 "liblog",
25 "libutils",
26 "libhwbinder",
27 "libcutils",
28 ],
29 export_shared_lib_headers: [
30 "libbase",
31 "libutils",
32 ],
33 local_include_dirs: ["include"],
34 export_include_dirs: ["include"],
35
36 clang: true,
37 sanitize: {
38 misc_undefined: ["integer"],
39 },
Steven Moreland5d5ef7f2016-10-20 19:19:55 -070040
41 generated_sources: ["android.hidl.manager@1.0_genc++"],
42 generated_headers: ["android.hidl.manager@1.0_genc++_headers"],
43 export_generated_headers: ["android.hidl.manager@1.0_genc++_headers"],
44
Dan Willemsen6365a872016-09-13 16:29:54 -070045 srcs: [
46 "HidlSupport.cpp",
Steven Moreland5d5ef7f2016-10-20 19:19:55 -070047 "ServiceManagement.cpp",
Dan Willemsen6365a872016-09-13 16:29:54 -070048 "Static.cpp",
49 "Status.cpp",
Yifan Hong5e2318c2016-10-27 17:19:21 -070050 "TaskRunner.cpp",
Dan Willemsen6365a872016-09-13 16:29:54 -070051 ],
52
53 product_variables: {
54 debuggable: {
55 cflags: ["-DLIBHIDL_TARGET_DEBUGGABLE"],
56 },
57 },
58}