blob: 3a353c2b71ff53b3754f85d862f7e408aed2474d [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"],
Jiyong Park172bd722017-06-21 12:14:18 +090018 vendor_available: true,
Vijay Venkatraman5583be72017-03-24 16:13:58 -070019}
20
Dan Willemsene05dc6d2016-07-25 17:13:45 -070021cc_library {
22 name: "libbinder",
23
Steven Moreland3aa76162017-04-13 21:19:48 -070024 // for vndbinder
25 vendor_available: true,
26
Dan Willemsene05dc6d2016-07-25 17:13:45 -070027 srcs: [
28 "AppOpsManager.cpp",
29 "Binder.cpp",
30 "BpBinder.cpp",
31 "BufferedTextOutput.cpp",
32 "Debug.cpp",
Sudheer Shanka6ef26f12016-11-23 15:52:26 -080033 "IActivityManager.cpp",
Dan Willemsene05dc6d2016-07-25 17:13:45 -070034 "IAppOpsCallback.cpp",
35 "IAppOpsService.cpp",
36 "IBatteryStats.cpp",
37 "IInterface.cpp",
38 "IMediaResourceMonitor.cpp",
39 "IMemory.cpp",
40 "IPCThreadState.cpp",
41 "IPermissionController.cpp",
42 "IProcessInfoService.cpp",
43 "IResultReceiver.cpp",
44 "IServiceManager.cpp",
Dianne Hackborn1941a402016-08-29 12:30:43 -070045 "IShellCallback.cpp",
Dan Willemsene05dc6d2016-07-25 17:13:45 -070046 "MemoryBase.cpp",
47 "MemoryDealer.cpp",
48 "MemoryHeapBase.cpp",
49 "Parcel.cpp",
50 "PermissionCache.cpp",
51 "PersistableBundle.cpp",
52 "ProcessInfoService.cpp",
53 "ProcessState.cpp",
54 "Static.cpp",
55 "Status.cpp",
56 "TextOutput.cpp",
Robert Quattlebaum6316f5b2017-01-04 13:25:14 -080057 "IpPrefix.cpp",
58 "Value.cpp",
Dan Willemsene05dc6d2016-07-25 17:13:45 -070059 ],
60
61 cflags: [
62 "-Wall",
63 "-Wextra",
64 "-Werror",
65 ],
66 product_variables: {
67 binder32bit: {
68 cflags: ["-DBINDER_IPC_32BIT=1"],
69 },
70 },
71
72 shared_libs: [
73 "libbase",
74 "liblog",
75 "libcutils",
76 "libutils",
Dan Willemsene05dc6d2016-07-25 17:13:45 -070077 ],
Jiyong Park42842052017-06-20 13:51:22 +090078
79 header_libs: [
80 "libbinder_headers",
81 ],
82
Dan Willemsene05dc6d2016-07-25 17:13:45 -070083 export_shared_lib_headers: [
84 "libbase",
85 "libutils",
86 ],
87
Jiyong Park42842052017-06-20 13:51:22 +090088 export_header_lib_headers: [
89 "libbinder_headers",
Dan Stozad630e522016-12-01 15:16:31 -080090 ],
91
Dan Willemsene05dc6d2016-07-25 17:13:45 -070092 clang: true,
93 sanitize: {
94 misc_undefined: ["integer"],
95 },
96}
97
98subdirs = ["tests"]