Steven Moreland | 2e87adc | 2018-08-20 19:47:00 -0700 | [diff] [blame] | 1 | /* |
| 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 Moreland | a9fff71 | 2019-08-08 16:00:12 -0700 | [diff] [blame^] | 17 | cc_library_shared { |
Steven Moreland | 2e87adc | 2018-08-20 19:47:00 -0700 | [diff] [blame] | 18 | name: "libbinder_ndk", |
Steven Moreland | 2e87adc | 2018-08-20 19:47:00 -0700 | [diff] [blame] | 19 | |
| 20 | export_include_dirs: [ |
| 21 | "include_ndk", |
| 22 | "include_apex", |
| 23 | ], |
| 24 | |
Steven Moreland | b8cfad5 | 2019-01-09 13:07:00 -0800 | [diff] [blame] | 25 | cflags: [ |
| 26 | "-Wall", |
| 27 | "-Wextra", |
| 28 | "-Werror", |
| 29 | ], |
Steven Moreland | 763dc4c | 2018-12-12 11:30:06 -0800 | [diff] [blame] | 30 | |
Steven Moreland | 2e87adc | 2018-08-20 19:47:00 -0700 | [diff] [blame] | 31 | srcs: [ |
Steven Moreland | 4d5ad49 | 2018-09-13 12:49:16 -0700 | [diff] [blame] | 32 | "ibinder.cpp", |
Steven Moreland | 02f7565 | 2018-09-18 14:08:30 -0700 | [diff] [blame] | 33 | "ibinder_jni.cpp", |
Steven Moreland | 4d5ad49 | 2018-09-13 12:49:16 -0700 | [diff] [blame] | 34 | "parcel.cpp", |
| 35 | "process.cpp", |
Steven Moreland | 12300a0 | 2019-08-02 13:27:15 -0700 | [diff] [blame] | 36 | "stability.cpp", |
Steven Moreland | 5d62e44 | 2018-09-13 15:01:02 -0700 | [diff] [blame] | 37 | "status.cpp", |
Steven Moreland | 4d5ad49 | 2018-09-13 12:49:16 -0700 | [diff] [blame] | 38 | "service_manager.cpp", |
Steven Moreland | 2e87adc | 2018-08-20 19:47:00 -0700 | [diff] [blame] | 39 | ], |
| 40 | |
| 41 | shared_libs: [ |
Jooyung Han | 1f65e77 | 2019-03-07 16:55:04 +0900 | [diff] [blame] | 42 | "libandroid_runtime_lazy", |
Steven Moreland | 2e87adc | 2018-08-20 19:47:00 -0700 | [diff] [blame] | 43 | "libbase", |
| 44 | "libbinder", |
| 45 | "libutils", |
| 46 | ], |
dimitry | b2cf95d | 2018-10-31 14:56:29 +0100 | [diff] [blame] | 47 | |
Steven Moreland | f01f744 | 2019-02-11 15:04:13 -0800 | [diff] [blame] | 48 | header_libs: [ |
| 49 | "jni_headers", |
| 50 | ], |
| 51 | export_header_lib_headers: [ |
| 52 | "jni_headers", |
| 53 | ], |
| 54 | |
dimitry | b2cf95d | 2018-10-31 14:56:29 +0100 | [diff] [blame] | 55 | version_script: "libbinder_ndk.map.txt", |
Dongwon Kang | c45ac09 | 2018-12-11 21:59:02 +0000 | [diff] [blame] | 56 | stubs: { |
| 57 | symbol_file: "libbinder_ndk.map.txt", |
Steven Moreland | 12300a0 | 2019-08-02 13:27:15 -0700 | [diff] [blame] | 58 | versions: ["29", "30"], |
Dongwon Kang | c45ac09 | 2018-12-11 21:59:02 +0000 | [diff] [blame] | 59 | }, |
Steven Moreland | 2e87adc | 2018-08-20 19:47:00 -0700 | [diff] [blame] | 60 | } |
Steven Moreland | eb0e9cc | 2018-08-29 01:52:09 -0700 | [diff] [blame] | 61 | |
| 62 | ndk_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 | |
| 72 | ndk_library { |
| 73 | name: "libbinder_ndk", |
| 74 | symbol_file: "libbinder_ndk.map.txt", |
| 75 | first_version: "29", |
| 76 | } |
Steven Moreland | f1ac0ac | 2019-07-22 17:46:38 -0700 | [diff] [blame] | 77 | |
| 78 | llndk_library { |
| 79 | name: "libbinder_ndk", |
| 80 | symbol_file: "libbinder_ndk.map.txt", |
| 81 | export_include_dirs: [ |
| 82 | "include_ndk", |
| 83 | "include_apex", |
| 84 | ], |
| 85 | } |