blob: 701e6981fa89d1e008de07aa6be9f0c8ae9d344b [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,
Jiyong Parkb7df6cb2017-04-13 21:19:48 -070019 header_libs: [
20 "libbase_headers",
21 "libcutils_headers",
22 "libutils_headers",
23 ],
24 export_header_lib_headers: [
25 "libbase_headers",
26 "libcutils_headers",
27 "libutils_headers",
28 ],
Vijay Venkatraman5583be72017-03-24 16:13:58 -070029}
30
Dan Willemsene05dc6d2016-07-25 17:13:45 -070031cc_library {
32 name: "libbinder",
33
Steven Moreland3aa76162017-04-13 21:19:48 -070034 // for vndbinder
35 vendor_available: true,
36
Dan Willemsene05dc6d2016-07-25 17:13:45 -070037 srcs: [
38 "AppOpsManager.cpp",
39 "Binder.cpp",
40 "BpBinder.cpp",
41 "BufferedTextOutput.cpp",
42 "Debug.cpp",
Sudheer Shanka6ef26f12016-11-23 15:52:26 -080043 "IActivityManager.cpp",
Dan Willemsene05dc6d2016-07-25 17:13:45 -070044 "IAppOpsCallback.cpp",
45 "IAppOpsService.cpp",
46 "IBatteryStats.cpp",
47 "IInterface.cpp",
48 "IMediaResourceMonitor.cpp",
49 "IMemory.cpp",
50 "IPCThreadState.cpp",
51 "IPermissionController.cpp",
52 "IProcessInfoService.cpp",
53 "IResultReceiver.cpp",
54 "IServiceManager.cpp",
Dianne Hackborn1941a402016-08-29 12:30:43 -070055 "IShellCallback.cpp",
Dan Willemsene05dc6d2016-07-25 17:13:45 -070056 "MemoryBase.cpp",
57 "MemoryDealer.cpp",
58 "MemoryHeapBase.cpp",
59 "Parcel.cpp",
60 "PermissionCache.cpp",
61 "PersistableBundle.cpp",
62 "ProcessInfoService.cpp",
63 "ProcessState.cpp",
64 "Static.cpp",
65 "Status.cpp",
66 "TextOutput.cpp",
Robert Quattlebaum6316f5b2017-01-04 13:25:14 -080067 "IpPrefix.cpp",
68 "Value.cpp",
Todd Kennedy757186e2017-08-02 07:49:20 -070069 "aidl/android/content/pm/IPackageManagerNative.aidl",
Dan Willemsene05dc6d2016-07-25 17:13:45 -070070 ],
71
Todd Kennedy757186e2017-08-02 07:49:20 -070072 aidl: {
73 export_aidl_headers: true,
74 },
75
Dan Willemsene05dc6d2016-07-25 17:13:45 -070076 cflags: [
77 "-Wall",
78 "-Wextra",
79 "-Werror",
80 ],
81 product_variables: {
82 binder32bit: {
83 cflags: ["-DBINDER_IPC_32BIT=1"],
84 },
85 },
86
87 shared_libs: [
88 "libbase",
89 "liblog",
90 "libcutils",
91 "libutils",
Dan Willemsene05dc6d2016-07-25 17:13:45 -070092 ],
Jiyong Park42842052017-06-20 13:51:22 +090093
94 header_libs: [
95 "libbinder_headers",
96 ],
97
Jiyong Park42842052017-06-20 13:51:22 +090098 export_header_lib_headers: [
99 "libbinder_headers",
Dan Stozad630e522016-12-01 15:16:31 -0800100 ],
101
Dan Willemsene05dc6d2016-07-25 17:13:45 -0700102 clang: true,
103 sanitize: {
104 misc_undefined: ["integer"],
105 },
106}
107
108subdirs = ["tests"]