blob: 2cb44ebcfcf56edc29235f3c321cb382dde7a824 [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
18 srcs: [
19 "AppOpsManager.cpp",
20 "Binder.cpp",
21 "BpBinder.cpp",
22 "BufferedTextOutput.cpp",
23 "Debug.cpp",
Sudheer Shanka6ef26f12016-11-23 15:52:26 -080024 "IActivityManager.cpp",
Dan Willemsene05dc6d2016-07-25 17:13:45 -070025 "IAppOpsCallback.cpp",
26 "IAppOpsService.cpp",
27 "IBatteryStats.cpp",
28 "IInterface.cpp",
29 "IMediaResourceMonitor.cpp",
30 "IMemory.cpp",
31 "IPCThreadState.cpp",
32 "IPermissionController.cpp",
33 "IProcessInfoService.cpp",
34 "IResultReceiver.cpp",
35 "IServiceManager.cpp",
Dianne Hackborn1941a402016-08-29 12:30:43 -070036 "IShellCallback.cpp",
Pawin Vongmasafbffe922017-03-01 02:25:36 -080037 "HalToken.cpp",
Dan Willemsene05dc6d2016-07-25 17:13:45 -070038 "MemoryBase.cpp",
39 "MemoryDealer.cpp",
40 "MemoryHeapBase.cpp",
41 "Parcel.cpp",
42 "PermissionCache.cpp",
43 "PersistableBundle.cpp",
44 "ProcessInfoService.cpp",
45 "ProcessState.cpp",
46 "Static.cpp",
47 "Status.cpp",
48 "TextOutput.cpp",
Robert Quattlebaum6316f5b2017-01-04 13:25:14 -080049 "IpPrefix.cpp",
50 "Value.cpp",
Dan Willemsene05dc6d2016-07-25 17:13:45 -070051 ],
52
53 cflags: [
54 "-Wall",
55 "-Wextra",
56 "-Werror",
57 ],
58 product_variables: {
59 binder32bit: {
60 cflags: ["-DBINDER_IPC_32BIT=1"],
61 },
62 },
63
64 shared_libs: [
65 "libbase",
66 "liblog",
67 "libcutils",
68 "libutils",
Pawin Vongmasafbffe922017-03-01 02:25:36 -080069 "libhidlbase",
70 "android.hidl.token@1.0",
Dan Willemsene05dc6d2016-07-25 17:13:45 -070071 ],
72 export_shared_lib_headers: [
73 "libbase",
74 "libutils",
75 ],
76
77 clang: true,
78 sanitize: {
79 misc_undefined: ["integer"],
80 },
81}
82
83subdirs = ["tests"]