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. |
| 16 | ndk_library { |
Dan Willemsen | 3dcf031 | 2017-04-07 15:48:45 -0700 | [diff] [blame] | 17 | name: "libandroid", |
Dan Albert | 2a8d9c2 | 2016-09-23 15:55:49 -0700 | [diff] [blame] | 18 | symbol_file: "libandroid.map.txt", |
| 19 | first_version: "9", |
Dan Albert | 98e462d | 2017-01-05 16:01:14 -0800 | [diff] [blame] | 20 | unversioned_until: "current", |
Dan Albert | 2a8d9c2 | 2016-09-23 15:55:49 -0700 | [diff] [blame] | 21 | } |
Colin Cross | 3f8fd40 | 2017-04-20 12:20:20 -0700 | [diff] [blame] | 22 | |
| 23 | cc_defaults { |
| 24 | name: "libandroid_defaults", |
| 25 | cflags: [ |
| 26 | "-Wall", |
| 27 | "-Werror", |
| 28 | "-Wunused", |
| 29 | "-Wunreachable-code", |
| 30 | ], |
| 31 | } |
| 32 | |
| 33 | cc_library_shared { |
| 34 | name: "libandroid", |
| 35 | defaults: ["libandroid_defaults"], |
| 36 | |
| 37 | srcs: [ |
| 38 | "asset_manager.cpp", |
Colin Cross | 3f8fd40 | 2017-04-20 12:20:20 -0700 | [diff] [blame] | 39 | "configuration.cpp", |
| 40 | "hardware_buffer_jni.cpp", |
| 41 | "input.cpp", |
| 42 | "looper.cpp", |
| 43 | "native_activity.cpp", |
| 44 | "native_window_jni.cpp", |
| 45 | "net.c", |
| 46 | "obb.cpp", |
| 47 | "sensor.cpp", |
| 48 | "sharedmem.cpp", |
| 49 | "storage_manager.cpp", |
Marissa Wall | f6a73fa | 2018-12-10 10:41:08 -0800 | [diff] [blame] | 50 | "surface_control.cpp", |
Seigo Nonaka | 50692ca | 2018-08-31 12:27:15 -0700 | [diff] [blame] | 51 | "system_fonts.cpp", |
Colin Cross | 3f8fd40 | 2017-04-20 12:20:20 -0700 | [diff] [blame] | 52 | "trace.cpp", |
| 53 | ], |
| 54 | |
| 55 | shared_libs: [ |
| 56 | "liblog", |
Marissa Wall | 1be5a10 | 2019-01-18 16:14:04 -0800 | [diff] [blame] | 57 | "libhidlbase", |
Colin Cross | 3f8fd40 | 2017-04-20 12:20:20 -0700 | [diff] [blame] | 58 | "libcutils", |
| 59 | "libandroidfw", |
| 60 | "libinput", |
| 61 | "libutils", |
| 62 | "libbinder", |
| 63 | "libui", |
| 64 | "libgui", |
Seigo Nonaka | 75b841b | 2018-10-30 11:39:49 -0700 | [diff] [blame] | 65 | "libharfbuzz_ng", // Only for including hb.h via minikin |
Colin Cross | 3f8fd40 | 2017-04-20 12:20:20 -0700 | [diff] [blame] | 66 | "libsensor", |
| 67 | "libandroid_runtime", |
Seigo Nonaka | 75b841b | 2018-10-30 11:39:49 -0700 | [diff] [blame] | 68 | "libminikin", |
Colin Cross | 3f8fd40 | 2017-04-20 12:20:20 -0700 | [diff] [blame] | 69 | "libnetd_client", |
Stan Iliev | 564ca3e | 2018-09-04 22:00:00 +0000 | [diff] [blame] | 70 | "libhwui", |
Seigo Nonaka | 50692ca | 2018-08-31 12:27:15 -0700 | [diff] [blame] | 71 | "libxml2", |
Stan Iliev | 5af5d30 | 2020-01-13 11:29:18 -0500 | [diff] [blame] | 72 | "libEGL", |
| 73 | "libGLESv2", |
Marissa Wall | 1be5a10 | 2019-01-18 16:14:04 -0800 | [diff] [blame] | 74 | "android.hardware.configstore@1.0", |
| 75 | "android.hardware.configstore-utils", |
Colin Cross | 3f8fd40 | 2017-04-20 12:20:20 -0700 | [diff] [blame] | 76 | ], |
| 77 | |
| 78 | static_libs: [ |
| 79 | "libstorage", |
| 80 | "libarect", |
| 81 | ], |
| 82 | |
Alec Mouri | 440c5ac | 2019-10-22 10:30:31 -0700 | [diff] [blame] | 83 | whole_static_libs: ["libnativedisplay", "libnativewindow"], |
Colin Cross | 3f8fd40 | 2017-04-20 12:20:20 -0700 | [diff] [blame] | 84 | |
| 85 | export_static_lib_headers: ["libarect"], |
| 86 | |
| 87 | include_dirs: ["bionic/libc/dns/include"], |
dimitry | 499745f | 2018-11-08 15:07:32 +0100 | [diff] [blame] | 88 | |
| 89 | version_script: "libandroid.map.txt", |
Dongwon Kang | b61819e | 2019-01-09 16:01:01 -0800 | [diff] [blame] | 90 | stubs: { |
| 91 | symbol_file: "libandroid.map.txt", |
| 92 | versions: ["29"], |
| 93 | }, |
Colin Cross | 3f8fd40 | 2017-04-20 12:20:20 -0700 | [diff] [blame] | 94 | } |
| 95 | |
| 96 | // Network library. |
| 97 | cc_library_shared { |
| 98 | name: "libandroid_net", |
| 99 | defaults: ["libandroid_defaults"], |
| 100 | srcs: ["net.c"], |
| 101 | |
| 102 | shared_libs: ["libnetd_client"], |
| 103 | |
| 104 | include_dirs: ["bionic/libc/dns/include"], |
| 105 | } |
Lorenzo Colitti | d15f0af | 2017-05-17 16:50:17 +0900 | [diff] [blame] | 106 | |
| 107 | llndk_library { |
| 108 | name: "libandroid_net", |
| 109 | export_include_dirs: ["include"], |
| 110 | symbol_file: "libandroid_net.map.txt", |
| 111 | unversioned: true, |
| 112 | } |
atrost | 8748835 | 2019-10-10 19:27:31 +0100 | [diff] [blame] | 113 | |
| 114 | |
| 115 | // Aidl library for platform compat. |
| 116 | cc_library_shared { |
| 117 | name: "lib-platform-compat-native-api", |
| 118 | cflags: [ |
| 119 | "-Wall", |
| 120 | "-Werror", |
| 121 | "-Wno-missing-field-initializers", |
| 122 | "-Wno-unused-variable", |
| 123 | "-Wunused-parameter", |
| 124 | ], |
| 125 | shared_libs: [ |
| 126 | "libbinder", |
| 127 | "libutils", |
| 128 | ], |
| 129 | aidl: { |
| 130 | local_include_dirs: ["aidl"], |
| 131 | export_aidl_headers: true, |
| 132 | }, |
| 133 | srcs: [ |
| 134 | ":platform-compat-native-aidl", |
| 135 | ], |
| 136 | export_include_dirs: ["aidl"], |
| 137 | } |
| 138 | |
| 139 | filegroup { |
| 140 | name: "platform-compat-native-aidl", |
| 141 | srcs: [ |
| 142 | "aidl/com/android/internal/compat/IPlatformCompatNative.aidl", |
| 143 | ], |
| 144 | path: "aidl", |
Alec Mouri | 440c5ac | 2019-10-22 10:30:31 -0700 | [diff] [blame] | 145 | } |