blob: c351493382f57488c668697f353207cebec09641 [file] [log] [blame]
Dan Willemsenf7cc91b2016-09-13 16:35:00 -07001// Copyright (C) 2009 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
Dan Willemsenf7cc91b2016-09-13 16:35:00 -070015cc_library_shared {
16 name: "libhwbinder",
17 shared_libs: [
18 "libbase",
19 "liblog",
20 "libcutils",
21 "libutils",
22 ],
23 export_shared_lib_headers: [
24 "libbase",
25 "libutils",
26 ],
27 export_include_dirs: ["include"],
Dan Willemsencb209b32017-04-07 14:19:44 -070028 include_dirs: ["frameworks/native/include"],
Dan Willemsenf7cc91b2016-09-13 16:35:00 -070029
Dan Willemsencb209b32017-04-07 14:19:44 -070030 vendor_available: true,
Dan Willemsenf7cc91b2016-09-13 16:35:00 -070031 clang: true,
32 sanitize: {
33 misc_undefined: ["integer"],
34 },
35 srcs: [
36 "Binder.cpp",
Yifan Hong1e118d22017-01-12 14:42:28 -080037 "BpHwBinder.cpp",
Dan Willemsenf7cc91b2016-09-13 16:35:00 -070038 "BufferedTextOutput.cpp",
39 "Debug.cpp",
40 "IInterface.cpp",
41 "IPCThreadState.cpp",
42 "Parcel.cpp",
43 "ProcessState.cpp",
44 "Static.cpp",
45 "TextOutput.cpp",
46 ],
47
48 product_variables: {
49 binder32bit: {
50 cflags: ["-DBINDER_IPC_32BIT=1"],
51 },
52 },
53
54 cflags: ["-Werror"],
55}