blob: e66e425aee2b704ce8c8d785d3cf9199c5df0aa6 [file] [log] [blame]
Steven Moreland2e87adc2018-08-20 19:47:00 -07001/*
2 * Copyright (C) 2018 The Android Open Source Project
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
Steven Morelande8a434d2019-09-20 18:42:35 +000017// TODO(b/31559095): bionic on host should define this
18cc_defaults {
19 name: "libbinder_ndk_host_user",
20 target: {
21 host: {
22 cflags: [
23 "-D__INTRODUCED_IN(n)=",
24 "-D__assert(a,b,c)=",
Elliott Hughes906e0bb2019-10-30 14:14:45 -070025 // We want all the APIs to be available on the host.
26 "-D__ANDROID_API__=10000",
Steven Morelande8a434d2019-09-20 18:42:35 +000027 ],
28 },
29 },
30}
31
Steven Morelanda9fff712019-08-08 16:00:12 -070032cc_library_shared {
Steven Moreland2e87adc2018-08-20 19:47:00 -070033 name: "libbinder_ndk",
Steven Moreland2e87adc2018-08-20 19:47:00 -070034
Steven Morelande8a434d2019-09-20 18:42:35 +000035 defaults: ["libbinder_ndk_host_user"],
36 host_supported: true,
37
Steven Moreland2e87adc2018-08-20 19:47:00 -070038 export_include_dirs: [
39 "include_ndk",
Steven Moreland6b7ea2a2019-08-08 16:19:21 -070040 "include_platform",
Steven Moreland2e87adc2018-08-20 19:47:00 -070041 ],
42
Steven Morelandb8cfad52019-01-09 13:07:00 -080043 cflags: [
44 "-Wall",
45 "-Wextra",
46 "-Werror",
47 ],
Steven Moreland763dc4c2018-12-12 11:30:06 -080048
Steven Moreland2e87adc2018-08-20 19:47:00 -070049 srcs: [
Steven Moreland4d5ad492018-09-13 12:49:16 -070050 "ibinder.cpp",
Steven Moreland02f75652018-09-18 14:08:30 -070051 "ibinder_jni.cpp",
Steven Moreland4d5ad492018-09-13 12:49:16 -070052 "parcel.cpp",
Steven Moreland7c615582020-01-06 16:34:39 -080053 "parcel_jni.cpp",
Steven Moreland4d5ad492018-09-13 12:49:16 -070054 "process.cpp",
Steven Moreland12300a02019-08-02 13:27:15 -070055 "stability.cpp",
Steven Moreland5d62e442018-09-13 15:01:02 -070056 "status.cpp",
Steven Moreland4d5ad492018-09-13 12:49:16 -070057 "service_manager.cpp",
Steven Moreland2e87adc2018-08-20 19:47:00 -070058 ],
59
60 shared_libs: [
Jooyung Han1f65e772019-03-07 16:55:04 +090061 "libandroid_runtime_lazy",
Steven Moreland2e87adc2018-08-20 19:47:00 -070062 "libbase",
63 "libbinder",
64 "libutils",
65 ],
dimitryb2cf95d2018-10-31 14:56:29 +010066
Steven Morelandf01f7442019-02-11 15:04:13 -080067 header_libs: [
68 "jni_headers",
69 ],
70 export_header_lib_headers: [
71 "jni_headers",
72 ],
73
Steven Morelande8a434d2019-09-20 18:42:35 +000074 target: {
75 linux: {
76 version_script: "libbinder_ndk.map.txt",
77 },
78 },
Dongwon Kangc45ac092018-12-11 21:59:02 +000079 stubs: {
80 symbol_file: "libbinder_ndk.map.txt",
Steven Morelande8a434d2019-09-20 18:42:35 +000081 versions: [
82 "29",
83 "30",
84 ],
Dongwon Kangc45ac092018-12-11 21:59:02 +000085 },
Steven Moreland2e87adc2018-08-20 19:47:00 -070086}
Steven Morelandeb0e9cc2018-08-29 01:52:09 -070087
88ndk_headers {
89 name: "libbinder_ndk_headers",
90 from: "include_ndk/android",
91 to: "android",
92 srcs: [
93 "include_ndk/android/*.h",
94 ],
95 license: "NOTICE",
96}
97
98ndk_library {
99 name: "libbinder_ndk",
100 symbol_file: "libbinder_ndk.map.txt",
101 first_version: "29",
102}
Steven Morelandf1ac0ac2019-07-22 17:46:38 -0700103
104llndk_library {
105 name: "libbinder_ndk",
106 symbol_file: "libbinder_ndk.map.txt",
107 export_include_dirs: [
108 "include_ndk",
Steven Moreland6b7ea2a2019-08-08 16:19:21 -0700109 "include_platform",
Steven Morelandf1ac0ac2019-07-22 17:46:38 -0700110 ],
111}