blob: b225128618c13f5411b302ce87d1b224f721b34d [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",
Dan Willemsene05dc6d2016-07-25 17:13:45 -070037 "MemoryBase.cpp",
38 "MemoryDealer.cpp",
39 "MemoryHeapBase.cpp",
40 "Parcel.cpp",
41 "PermissionCache.cpp",
42 "PersistableBundle.cpp",
43 "ProcessInfoService.cpp",
44 "ProcessState.cpp",
45 "Static.cpp",
46 "Status.cpp",
47 "TextOutput.cpp",
Robert Quattlebaum6316f5b2017-01-04 13:25:14 -080048 "IpPrefix.cpp",
49 "Value.cpp",
Dan Willemsene05dc6d2016-07-25 17:13:45 -070050 ],
51
52 cflags: [
53 "-Wall",
54 "-Wextra",
55 "-Werror",
56 ],
57 product_variables: {
58 binder32bit: {
59 cflags: ["-DBINDER_IPC_32BIT=1"],
60 },
61 },
62
63 shared_libs: [
64 "libbase",
65 "liblog",
66 "libcutils",
67 "libutils",
Dan Willemsene05dc6d2016-07-25 17:13:45 -070068 ],
69 export_shared_lib_headers: [
70 "libbase",
71 "libutils",
72 ],
73
Dan Stozad630e522016-12-01 15:16:31 -080074 export_include_dirs: [
75 "include",
76 ],
77
Dan Willemsene05dc6d2016-07-25 17:13:45 -070078 clang: true,
79 sanitize: {
80 misc_undefined: ["integer"],
81 },
82}
83
84subdirs = ["tests"]