blob: 175e9827c334766a96f64ae85233bef3417f6d10 [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",
24 "IAppOpsCallback.cpp",
25 "IAppOpsService.cpp",
26 "IBatteryStats.cpp",
27 "IInterface.cpp",
28 "IMediaResourceMonitor.cpp",
29 "IMemory.cpp",
30 "IPCThreadState.cpp",
31 "IPermissionController.cpp",
32 "IProcessInfoService.cpp",
33 "IResultReceiver.cpp",
34 "IServiceManager.cpp",
Dianne Hackborn1941a402016-08-29 12:30:43 -070035 "IShellCallback.cpp",
Dan Willemsene05dc6d2016-07-25 17:13:45 -070036 "MemoryBase.cpp",
37 "MemoryDealer.cpp",
38 "MemoryHeapBase.cpp",
39 "Parcel.cpp",
40 "PermissionCache.cpp",
41 "PersistableBundle.cpp",
42 "ProcessInfoService.cpp",
43 "ProcessState.cpp",
44 "Static.cpp",
45 "Status.cpp",
46 "TextOutput.cpp",
47 ],
48
49 cflags: [
50 "-Wall",
51 "-Wextra",
52 "-Werror",
53 ],
54 product_variables: {
55 binder32bit: {
56 cflags: ["-DBINDER_IPC_32BIT=1"],
57 },
58 },
59
60 shared_libs: [
61 "libbase",
62 "liblog",
63 "libcutils",
64 "libutils",
65 ],
66 export_shared_lib_headers: [
67 "libbase",
68 "libutils",
69 ],
70
71 clang: true,
72 sanitize: {
73 misc_undefined: ["integer"],
74 },
75}
76
77subdirs = ["tests"]