Dan Albert | 2a8d9c2 | 2016-09-23 15:55:49 -0700 | [diff] [blame] | 1 | // Copyright (C) 2016 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 | |
| 15 | // The headers module is in frameworks/native/Android.bp. |
Bob Badour | 8a6a2bc | 2021-02-12 17:07:05 -0800 | [diff] [blame] | 16 | package { |
| 17 | // See: http://go/android-license-faq |
| 18 | // A large-scale-change added 'default_applicable_licenses' to import |
| 19 | // all of the 'license_kinds' from "frameworks_base_license" |
| 20 | // to get the below license kinds: |
| 21 | // SPDX-license-identifier-Apache-2.0 |
| 22 | default_applicable_licenses: ["frameworks_base_license"], |
| 23 | } |
| 24 | |
Dan Albert | 2a8d9c2 | 2016-09-23 15:55:49 -0700 | [diff] [blame] | 25 | ndk_library { |
Dan Willemsen | 3dcf031 | 2017-04-07 15:48:45 -0700 | [diff] [blame] | 26 | name: "libandroid", |
Dan Albert | 2a8d9c2 | 2016-09-23 15:55:49 -0700 | [diff] [blame] | 27 | symbol_file: "libandroid.map.txt", |
| 28 | first_version: "9", |
Dan Albert | 98e462d | 2017-01-05 16:01:14 -0800 | [diff] [blame] | 29 | unversioned_until: "current", |
Dan Albert | 2a8d9c2 | 2016-09-23 15:55:49 -0700 | [diff] [blame] | 30 | } |
Colin Cross | 3f8fd40 | 2017-04-20 12:20:20 -0700 | [diff] [blame] | 31 | |
| 32 | cc_defaults { |
| 33 | name: "libandroid_defaults", |
| 34 | cflags: [ |
| 35 | "-Wall", |
| 36 | "-Werror", |
Siarhei Vishniakou | cf07528 | 2020-01-15 17:35:58 -0800 | [diff] [blame] | 37 | "-Wextra", |
Colin Cross | 3f8fd40 | 2017-04-20 12:20:20 -0700 | [diff] [blame] | 38 | "-Wunused", |
| 39 | "-Wunreachable-code", |
| 40 | ], |
| 41 | } |
| 42 | |
| 43 | cc_library_shared { |
| 44 | name: "libandroid", |
| 45 | defaults: ["libandroid_defaults"], |
| 46 | |
| 47 | srcs: [ |
Chong Zhang | 8af8792 | 2020-11-11 14:46:30 -0800 | [diff] [blame] | 48 | "activity_manager.cpp", |
Colin Cross | 3f8fd40 | 2017-04-20 12:20:20 -0700 | [diff] [blame] | 49 | "asset_manager.cpp", |
Alec Mouri | cf3ad87 | 2020-04-27 22:36:17 -0700 | [diff] [blame] | 50 | "choreographer.cpp", |
Colin Cross | 3f8fd40 | 2017-04-20 12:20:20 -0700 | [diff] [blame] | 51 | "configuration.cpp", |
| 52 | "hardware_buffer_jni.cpp", |
| 53 | "input.cpp", |
| 54 | "looper.cpp", |
| 55 | "native_activity.cpp", |
| 56 | "native_window_jni.cpp", |
| 57 | "net.c", |
| 58 | "obb.cpp", |
Chong Zhang | 06dbe5b | 2020-11-02 16:02:07 -0800 | [diff] [blame] | 59 | "permission_manager.cpp", |
Bo Liu | 4426772 | 2021-07-16 17:03:20 -0400 | [diff] [blame] | 60 | "performance_hint.cpp", |
Colin Cross | 3f8fd40 | 2017-04-20 12:20:20 -0700 | [diff] [blame] | 61 | "sensor.cpp", |
| 62 | "sharedmem.cpp", |
| 63 | "storage_manager.cpp", |
Marissa Wall | f6a73fa | 2018-12-10 10:41:08 -0800 | [diff] [blame] | 64 | "surface_control.cpp", |
Alec Mouri | cf3ad87 | 2020-04-27 22:36:17 -0700 | [diff] [blame] | 65 | "surface_texture.cpp", |
Seigo Nonaka | 50692ca | 2018-08-31 12:27:15 -0700 | [diff] [blame] | 66 | "system_fonts.cpp", |
Colin Cross | 3f8fd40 | 2017-04-20 12:20:20 -0700 | [diff] [blame] | 67 | "trace.cpp", |
Colin Cross | b16eb69 | 2021-04-22 17:22:26 -0700 | [diff] [blame] | 68 | "thermal.cpp", |
Colin Cross | 3f8fd40 | 2017-04-20 12:20:20 -0700 | [diff] [blame] | 69 | ], |
| 70 | |
| 71 | shared_libs: [ |
| 72 | "liblog", |
Marissa Wall | 1be5a10 | 2019-01-18 16:14:04 -0800 | [diff] [blame] | 73 | "libhidlbase", |
Colin Cross | 3f8fd40 | 2017-04-20 12:20:20 -0700 | [diff] [blame] | 74 | "libcutils", |
| 75 | "libandroidfw", |
| 76 | "libinput", |
| 77 | "libutils", |
| 78 | "libbinder", |
| 79 | "libui", |
| 80 | "libgui", |
Colin Cross | b16eb69 | 2021-04-22 17:22:26 -0700 | [diff] [blame] | 81 | "libharfbuzz_ng", // Only for including hb.h via minikin |
Colin Cross | 3f8fd40 | 2017-04-20 12:20:20 -0700 | [diff] [blame] | 82 | "libsensor", |
Steven Moreland | 8e6aa66 | 2021-04-05 23:19:26 +0000 | [diff] [blame] | 83 | "libactivitymanager_aidl", |
Colin Cross | 3f8fd40 | 2017-04-20 12:20:20 -0700 | [diff] [blame] | 84 | "libandroid_runtime", |
Seigo Nonaka | 75b841b | 2018-10-30 11:39:49 -0700 | [diff] [blame] | 85 | "libminikin", |
Colin Cross | 3f8fd40 | 2017-04-20 12:20:20 -0700 | [diff] [blame] | 86 | "libnetd_client", |
Stan Iliev | 564ca3e | 2018-09-04 22:00:00 +0000 | [diff] [blame] | 87 | "libhwui", |
Seigo Nonaka | 50692ca | 2018-08-31 12:27:15 -0700 | [diff] [blame] | 88 | "libxml2", |
Stan Iliev | 5af5d30 | 2020-01-13 11:29:18 -0500 | [diff] [blame] | 89 | "libEGL", |
| 90 | "libGLESv2", |
Chris Ye | 48dbcaa | 2020-02-10 13:29:01 -0800 | [diff] [blame] | 91 | "libpowermanager", |
Marissa Wall | 1be5a10 | 2019-01-18 16:14:04 -0800 | [diff] [blame] | 92 | "android.hardware.configstore@1.0", |
| 93 | "android.hardware.configstore-utils", |
Alec Mouri | cf3ad87 | 2020-04-27 22:36:17 -0700 | [diff] [blame] | 94 | "libnativedisplay", |
Colin Cross | 3f8fd40 | 2017-04-20 12:20:20 -0700 | [diff] [blame] | 95 | ], |
| 96 | |
| 97 | static_libs: [ |
| 98 | "libstorage", |
| 99 | "libarect", |
| 100 | ], |
| 101 | |
Colin Cross | b16eb69 | 2021-04-22 17:22:26 -0700 | [diff] [blame] | 102 | header_libs: [ |
| 103 | "libhwui_internal_headers", |
| 104 | "libandroid_headers_private", |
| 105 | ], |
Derek Sollenberger | ee538a3 | 2020-02-19 11:51:17 -0500 | [diff] [blame] | 106 | |
Alec Mouri | cf3ad87 | 2020-04-27 22:36:17 -0700 | [diff] [blame] | 107 | whole_static_libs: ["libnativewindow"], |
Colin Cross | 3f8fd40 | 2017-04-20 12:20:20 -0700 | [diff] [blame] | 108 | |
| 109 | export_static_lib_headers: ["libarect"], |
| 110 | |
| 111 | include_dirs: ["bionic/libc/dns/include"], |
dimitry | 499745f | 2018-11-08 15:07:32 +0100 | [diff] [blame] | 112 | |
Colin Cross | b16eb69 | 2021-04-22 17:22:26 -0700 | [diff] [blame] | 113 | local_include_dirs: ["include_platform"], |
Chong Zhang | 8af8792 | 2020-11-11 14:46:30 -0800 | [diff] [blame] | 114 | |
Colin Cross | b16eb69 | 2021-04-22 17:22:26 -0700 | [diff] [blame] | 115 | export_include_dirs: ["include_platform"], |
Chong Zhang | 8af8792 | 2020-11-11 14:46:30 -0800 | [diff] [blame] | 116 | |
dimitry | 499745f | 2018-11-08 15:07:32 +0100 | [diff] [blame] | 117 | version_script: "libandroid.map.txt", |
Dongwon Kang | b61819e | 2019-01-09 16:01:01 -0800 | [diff] [blame] | 118 | stubs: { |
| 119 | symbol_file: "libandroid.map.txt", |
Colin Cross | b16eb69 | 2021-04-22 17:22:26 -0700 | [diff] [blame] | 120 | versions: [ |
| 121 | "29", |
| 122 | "31", |
| 123 | ], |
Dongwon Kang | b61819e | 2019-01-09 16:01:01 -0800 | [diff] [blame] | 124 | }, |
Colin Cross | 3f8fd40 | 2017-04-20 12:20:20 -0700 | [diff] [blame] | 125 | } |
| 126 | |
| 127 | // Network library. |
| 128 | cc_library_shared { |
| 129 | name: "libandroid_net", |
| 130 | defaults: ["libandroid_defaults"], |
Colin Cross | 4ff7d4e | 2021-04-22 16:44:24 -0700 | [diff] [blame] | 131 | llndk: { |
| 132 | symbol_file: "libandroid_net.map.txt", |
| 133 | unversioned: true, |
| 134 | override_export_include_dirs: ["include"], |
| 135 | }, |
Colin Cross | 3f8fd40 | 2017-04-20 12:20:20 -0700 | [diff] [blame] | 136 | srcs: ["net.c"], |
| 137 | |
| 138 | shared_libs: ["libnetd_client"], |
| 139 | |
| 140 | include_dirs: ["bionic/libc/dns/include"], |
| 141 | } |
Lorenzo Colitti | d15f0af | 2017-05-17 16:50:17 +0900 | [diff] [blame] | 142 | |
atrost | 8748835 | 2019-10-10 19:27:31 +0100 | [diff] [blame] | 143 | // Aidl library for platform compat. |
| 144 | cc_library_shared { |
| 145 | name: "lib-platform-compat-native-api", |
| 146 | cflags: [ |
Colin Cross | b16eb69 | 2021-04-22 17:22:26 -0700 | [diff] [blame] | 147 | "-Wall", |
| 148 | "-Werror", |
| 149 | "-Wno-missing-field-initializers", |
| 150 | "-Wno-unused-variable", |
| 151 | "-Wunused-parameter", |
| 152 | ], |
atrost | 8748835 | 2019-10-10 19:27:31 +0100 | [diff] [blame] | 153 | shared_libs: [ |
| 154 | "libbinder", |
Colin Cross | b16eb69 | 2021-04-22 17:22:26 -0700 | [diff] [blame] | 155 | "libutils", |
atrost | 8748835 | 2019-10-10 19:27:31 +0100 | [diff] [blame] | 156 | ], |
| 157 | aidl: { |
| 158 | local_include_dirs: ["aidl"], |
| 159 | export_aidl_headers: true, |
| 160 | }, |
| 161 | srcs: [ |
Colin Cross | b16eb69 | 2021-04-22 17:22:26 -0700 | [diff] [blame] | 162 | ":platform-compat-native-aidl", |
atrost | 8748835 | 2019-10-10 19:27:31 +0100 | [diff] [blame] | 163 | ], |
| 164 | export_include_dirs: ["aidl"], |
| 165 | } |
| 166 | |
| 167 | filegroup { |
| 168 | name: "platform-compat-native-aidl", |
| 169 | srcs: [ |
| 170 | "aidl/com/android/internal/compat/IPlatformCompatNative.aidl", |
| 171 | ], |
| 172 | path: "aidl", |
Alec Mouri | 440c5ac | 2019-10-22 10:30:31 -0700 | [diff] [blame] | 173 | } |