blob: 574be7b3043515cca7826ebfbe4621f6a6fd466e [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 Moreland2e87adc2018-08-20 19:47:00 -070019
20 export_include_dirs: [
21 "include_ndk",
Steven Moreland6b7ea2a2019-08-08 16:19:21 -070022 "include_platform",
Steven Moreland2e87adc2018-08-20 19:47:00 -070023 ],
24
Steven Morelandb8cfad52019-01-09 13:07:00 -080025 cflags: [
26 "-Wall",
27 "-Wextra",
28 "-Werror",
29 ],
Steven Moreland763dc4c2018-12-12 11:30:06 -080030
Steven Moreland2e87adc2018-08-20 19:47:00 -070031 srcs: [
Steven Moreland4d5ad492018-09-13 12:49:16 -070032 "ibinder.cpp",
Steven Moreland02f75652018-09-18 14:08:30 -070033 "ibinder_jni.cpp",
Steven Moreland4d5ad492018-09-13 12:49:16 -070034 "parcel.cpp",
35 "process.cpp",
Steven Moreland12300a02019-08-02 13:27:15 -070036 "stability.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: [
Jooyung Han1f65e772019-03-07 16:55:04 +090042 "libandroid_runtime_lazy",
Steven Moreland2e87adc2018-08-20 19:47:00 -070043 "libbase",
44 "libbinder",
45 "libutils",
46 ],
dimitryb2cf95d2018-10-31 14:56:29 +010047
Steven Morelandf01f7442019-02-11 15:04:13 -080048 header_libs: [
49 "jni_headers",
50 ],
51 export_header_lib_headers: [
52 "jni_headers",
53 ],
54
dimitryb2cf95d2018-10-31 14:56:29 +010055 version_script: "libbinder_ndk.map.txt",
Dongwon Kangc45ac092018-12-11 21:59:02 +000056 stubs: {
57 symbol_file: "libbinder_ndk.map.txt",
Steven Moreland12300a02019-08-02 13:27:15 -070058 versions: ["29", "30"],
Dongwon Kangc45ac092018-12-11 21:59:02 +000059 },
Steven Moreland2e87adc2018-08-20 19:47:00 -070060}
Steven Morelandeb0e9cc2018-08-29 01:52:09 -070061
62ndk_headers {
63 name: "libbinder_ndk_headers",
64 from: "include_ndk/android",
65 to: "android",
66 srcs: [
67 "include_ndk/android/*.h",
68 ],
69 license: "NOTICE",
70}
71
72ndk_library {
73 name: "libbinder_ndk",
74 symbol_file: "libbinder_ndk.map.txt",
75 first_version: "29",
76}
Steven Morelandf1ac0ac2019-07-22 17:46:38 -070077
78llndk_library {
79 name: "libbinder_ndk",
80 symbol_file: "libbinder_ndk.map.txt",
81 export_include_dirs: [
82 "include_ndk",
Steven Moreland6b7ea2a2019-08-08 16:19:21 -070083 "include_platform",
Steven Morelandf1ac0ac2019-07-22 17:46:38 -070084 ],
85}