blob: 4780757f599bd8b62651d67fcda65986bf002460 [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",
35 "MemoryBase.cpp",
36 "MemoryDealer.cpp",
37 "MemoryHeapBase.cpp",
38 "Parcel.cpp",
39 "PermissionCache.cpp",
40 "PersistableBundle.cpp",
41 "ProcessInfoService.cpp",
42 "ProcessState.cpp",
43 "Static.cpp",
44 "Status.cpp",
45 "TextOutput.cpp",
46 ],
47
48 cflags: [
49 "-Wall",
50 "-Wextra",
51 "-Werror",
52 ],
53 product_variables: {
54 binder32bit: {
55 cflags: ["-DBINDER_IPC_32BIT=1"],
56 },
57 },
58
59 shared_libs: [
60 "libbase",
61 "liblog",
62 "libcutils",
63 "libutils",
64 ],
65 export_shared_lib_headers: [
66 "libbase",
67 "libutils",
68 ],
69
70 clang: true,
71 sanitize: {
72 misc_undefined: ["integer"],
73 },
74}
75
76subdirs = ["tests"]