blob: 5fc37a9c068ec31546b9c278e38796e658df5cbd [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
Vijay Venkatraman5583be72017-03-24 16:13:58 -070015cc_library_headers {
16 name: "libbinder_headers",
17 export_include_dirs: ["include"],
18}
19
Dan Willemsene05dc6d2016-07-25 17:13:45 -070020cc_library {
21 name: "libbinder",
22
23 srcs: [
24 "AppOpsManager.cpp",
25 "Binder.cpp",
26 "BpBinder.cpp",
27 "BufferedTextOutput.cpp",
28 "Debug.cpp",
Sudheer Shanka6ef26f12016-11-23 15:52:26 -080029 "IActivityManager.cpp",
Dan Willemsene05dc6d2016-07-25 17:13:45 -070030 "IAppOpsCallback.cpp",
31 "IAppOpsService.cpp",
32 "IBatteryStats.cpp",
33 "IInterface.cpp",
34 "IMediaResourceMonitor.cpp",
35 "IMemory.cpp",
36 "IPCThreadState.cpp",
37 "IPermissionController.cpp",
38 "IProcessInfoService.cpp",
39 "IResultReceiver.cpp",
40 "IServiceManager.cpp",
Dianne Hackborn1941a402016-08-29 12:30:43 -070041 "IShellCallback.cpp",
Dan Willemsene05dc6d2016-07-25 17:13:45 -070042 "MemoryBase.cpp",
43 "MemoryDealer.cpp",
44 "MemoryHeapBase.cpp",
45 "Parcel.cpp",
46 "PermissionCache.cpp",
47 "PersistableBundle.cpp",
48 "ProcessInfoService.cpp",
49 "ProcessState.cpp",
50 "Static.cpp",
51 "Status.cpp",
52 "TextOutput.cpp",
Robert Quattlebaum6316f5b2017-01-04 13:25:14 -080053 "IpPrefix.cpp",
54 "Value.cpp",
Dan Willemsene05dc6d2016-07-25 17:13:45 -070055 ],
56
57 cflags: [
58 "-Wall",
59 "-Wextra",
60 "-Werror",
61 ],
62 product_variables: {
63 binder32bit: {
64 cflags: ["-DBINDER_IPC_32BIT=1"],
65 },
66 },
67
68 shared_libs: [
69 "libbase",
70 "liblog",
71 "libcutils",
72 "libutils",
Dan Willemsene05dc6d2016-07-25 17:13:45 -070073 ],
74 export_shared_lib_headers: [
75 "libbase",
76 "libutils",
77 ],
78
Dan Stozad630e522016-12-01 15:16:31 -080079 export_include_dirs: [
80 "include",
81 ],
82
Dan Willemsene05dc6d2016-07-25 17:13:45 -070083 clang: true,
84 sanitize: {
85 misc_undefined: ["integer"],
86 },
87}
88
89subdirs = ["tests"]