blob: 509b0b193829eaf1f6f8ccf557a7e30715882057 [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
Steven Moreland3aa76162017-04-13 21:19:48 -070023 // for vndbinder
24 vendor_available: true,
25
Dan Willemsene05dc6d2016-07-25 17:13:45 -070026 srcs: [
27 "AppOpsManager.cpp",
28 "Binder.cpp",
29 "BpBinder.cpp",
30 "BufferedTextOutput.cpp",
31 "Debug.cpp",
Sudheer Shanka6ef26f12016-11-23 15:52:26 -080032 "IActivityManager.cpp",
Dan Willemsene05dc6d2016-07-25 17:13:45 -070033 "IAppOpsCallback.cpp",
34 "IAppOpsService.cpp",
35 "IBatteryStats.cpp",
36 "IInterface.cpp",
37 "IMediaResourceMonitor.cpp",
38 "IMemory.cpp",
39 "IPCThreadState.cpp",
40 "IPermissionController.cpp",
41 "IProcessInfoService.cpp",
42 "IResultReceiver.cpp",
43 "IServiceManager.cpp",
Dianne Hackborn1941a402016-08-29 12:30:43 -070044 "IShellCallback.cpp",
Dan Willemsene05dc6d2016-07-25 17:13:45 -070045 "MemoryBase.cpp",
46 "MemoryDealer.cpp",
47 "MemoryHeapBase.cpp",
48 "Parcel.cpp",
49 "PermissionCache.cpp",
50 "PersistableBundle.cpp",
51 "ProcessInfoService.cpp",
52 "ProcessState.cpp",
53 "Static.cpp",
54 "Status.cpp",
55 "TextOutput.cpp",
Robert Quattlebaum6316f5b2017-01-04 13:25:14 -080056 "IpPrefix.cpp",
57 "Value.cpp",
Dan Willemsene05dc6d2016-07-25 17:13:45 -070058 ],
59
60 cflags: [
61 "-Wall",
62 "-Wextra",
63 "-Werror",
64 ],
65 product_variables: {
66 binder32bit: {
67 cflags: ["-DBINDER_IPC_32BIT=1"],
68 },
69 },
70
71 shared_libs: [
72 "libbase",
73 "liblog",
74 "libcutils",
75 "libutils",
Dan Willemsene05dc6d2016-07-25 17:13:45 -070076 ],
Jiyong Park42842052017-06-20 13:51:22 +090077
78 header_libs: [
79 "libbinder_headers",
80 ],
81
Dan Willemsene05dc6d2016-07-25 17:13:45 -070082 export_shared_lib_headers: [
83 "libbase",
84 "libutils",
85 ],
86
Jiyong Park42842052017-06-20 13:51:22 +090087 export_header_lib_headers: [
88 "libbinder_headers",
Dan Stozad630e522016-12-01 15:16:31 -080089 ],
90
Dan Willemsene05dc6d2016-07-25 17:13:45 -070091 clang: true,
92 sanitize: {
93 misc_undefined: ["integer"],
94 },
95}
96
97subdirs = ["tests"]