blob: 18b6c69a275c13b0c32e3f9a062731dff1ad4371 [file] [log] [blame]
Dan Willemsene05dc6d2016-07-25 17:13:45 -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
15cc_library {
16 name: "libbinder",
17
Steven Moreland3aa76162017-04-13 21:19:48 -070018 // for vndbinder
19 vendor_available: true,
20
Dan Willemsene05dc6d2016-07-25 17:13:45 -070021 srcs: [
22 "AppOpsManager.cpp",
23 "Binder.cpp",
24 "BpBinder.cpp",
25 "BufferedTextOutput.cpp",
26 "Debug.cpp",
Sudheer Shanka6ef26f12016-11-23 15:52:26 -080027 "IActivityManager.cpp",
Dan Willemsene05dc6d2016-07-25 17:13:45 -070028 "IAppOpsCallback.cpp",
29 "IAppOpsService.cpp",
30 "IBatteryStats.cpp",
31 "IInterface.cpp",
32 "IMediaResourceMonitor.cpp",
33 "IMemory.cpp",
34 "IPCThreadState.cpp",
35 "IPermissionController.cpp",
36 "IProcessInfoService.cpp",
37 "IResultReceiver.cpp",
38 "IServiceManager.cpp",
Dianne Hackborn1941a402016-08-29 12:30:43 -070039 "IShellCallback.cpp",
Dan Willemsene05dc6d2016-07-25 17:13:45 -070040 "MemoryBase.cpp",
41 "MemoryDealer.cpp",
42 "MemoryHeapBase.cpp",
43 "Parcel.cpp",
44 "PermissionCache.cpp",
45 "PersistableBundle.cpp",
46 "ProcessInfoService.cpp",
47 "ProcessState.cpp",
48 "Static.cpp",
49 "Status.cpp",
50 "TextOutput.cpp",
Robert Quattlebaum6316f5b2017-01-04 13:25:14 -080051 "IpPrefix.cpp",
52 "Value.cpp",
Dan Willemsene05dc6d2016-07-25 17:13:45 -070053 ],
54
55 cflags: [
56 "-Wall",
57 "-Wextra",
58 "-Werror",
59 ],
60 product_variables: {
61 binder32bit: {
62 cflags: ["-DBINDER_IPC_32BIT=1"],
63 },
64 },
65
66 shared_libs: [
67 "libbase",
68 "liblog",
69 "libcutils",
70 "libutils",
Dan Willemsene05dc6d2016-07-25 17:13:45 -070071 ],
72 export_shared_lib_headers: [
73 "libbase",
74 "libutils",
75 ],
76
Dan Stozad630e522016-12-01 15:16:31 -080077 export_include_dirs: [
78 "include",
79 ],
80
Dan Willemsene05dc6d2016-07-25 17:13:45 -070081 clang: true,
82 sanitize: {
83 misc_undefined: ["integer"],
84 },
85}
86
87subdirs = ["tests"]