blob: a96c9a0efffed71a417597bf643ab8bd4f846630 [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
17cc_library {
18 name: "libbinder_ndk",
Steven Morelandf01f7442019-02-11 15:04:13 -080019 vendor_available: true,
Steven Moreland2e87adc2018-08-20 19:47:00 -070020
21 export_include_dirs: [
22 "include_ndk",
23 "include_apex",
24 ],
25
Steven Morelandb8cfad52019-01-09 13:07:00 -080026 cflags: [
27 "-Wall",
28 "-Wextra",
29 "-Werror",
30 ],
Steven Moreland763dc4c2018-12-12 11:30:06 -080031
Steven Moreland2e87adc2018-08-20 19:47:00 -070032 srcs: [
Steven Moreland4d5ad492018-09-13 12:49:16 -070033 "ibinder.cpp",
Steven Moreland02f75652018-09-18 14:08:30 -070034 "ibinder_jni.cpp",
Steven Moreland4d5ad492018-09-13 12:49:16 -070035 "parcel.cpp",
36 "process.cpp",
Steven Moreland5d62e442018-09-13 15:01:02 -070037 "status.cpp",
Steven Moreland4d5ad492018-09-13 12:49:16 -070038 "service_manager.cpp",
Steven Moreland2e87adc2018-08-20 19:47:00 -070039 ],
40
41 shared_libs: [
42 "libbase",
43 "libbinder",
44 "libutils",
45 ],
dimitryb2cf95d2018-10-31 14:56:29 +010046
Steven Moreland81311c02019-01-22 16:02:02 -080047 required: [
48 // libbinder_ndk may be used by Java and non-Java things. When lower-level things use it,
49 // they shouldn't have to take on the cost of loading libandroid_runtime.
50 "libandroid_runtime",
51 ],
52
Steven Morelandf01f7442019-02-11 15:04:13 -080053 header_libs: [
54 "jni_headers",
55 ],
56 export_header_lib_headers: [
57 "jni_headers",
58 ],
59
dimitryb2cf95d2018-10-31 14:56:29 +010060 version_script: "libbinder_ndk.map.txt",
Dongwon Kangc45ac092018-12-11 21:59:02 +000061 stubs: {
62 symbol_file: "libbinder_ndk.map.txt",
63 versions: ["29"],
64 },
Steven Moreland2e87adc2018-08-20 19:47:00 -070065}
Steven Morelandeb0e9cc2018-08-29 01:52:09 -070066
67ndk_headers {
68 name: "libbinder_ndk_headers",
69 from: "include_ndk/android",
70 to: "android",
71 srcs: [
72 "include_ndk/android/*.h",
73 ],
74 license: "NOTICE",
75}
76
77ndk_library {
78 name: "libbinder_ndk",
79 symbol_file: "libbinder_ndk.map.txt",
80 first_version: "29",
81}