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