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. 16package { 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 25ndk_library { 26 name: "libandroid", 27 symbol_file: "libandroid.map.txt", 28 first_version: "9", 29 unversioned_until: "current", 30} 31 32cc_defaults { 33 name: "libandroid_defaults", 34 cflags: [ 35 "-Wall", 36 "-Werror", 37 "-Wextra", 38 "-Wunused", 39 "-Wunreachable-code", 40 ], 41} 42 43cc_library_shared { 44 name: "libandroid", 45 defaults: ["libandroid_defaults"], 46 47 srcs: [ 48 "activity_manager.cpp", 49 "asset_manager.cpp", 50 "choreographer.cpp", 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", 59 "permission_manager.cpp", 60 "performance_hint.cpp", 61 "sensor.cpp", 62 "sharedmem.cpp", 63 "storage_manager.cpp", 64 "surface_control.cpp", 65 "surface_texture.cpp", 66 "system_fonts.cpp", 67 "trace.cpp", 68 "thermal.cpp", 69 ], 70 71 shared_libs: [ 72 "liblog", 73 "libhidlbase", 74 "libcutils", 75 "libandroidfw", 76 "libinput", 77 "libutils", 78 "libbinder", 79 "libui", 80 "libgui", 81 "libharfbuzz_ng", // Only for including hb.h via minikin 82 "libsensor", 83 "libactivitymanager_aidl", 84 "libandroid_runtime", 85 "libminikin", 86 "libnetd_client", 87 "libhwui", 88 "libxml2", 89 "libEGL", 90 "libGLESv2", 91 "libpowermanager", 92 "android.hardware.configstore@1.0", 93 "android.hardware.configstore-utils", 94 "libnativedisplay", 95 ], 96 97 static_libs: [ 98 "libstorage", 99 "libarect", 100 ], 101 102 header_libs: [ 103 "libhwui_internal_headers", 104 "libandroid_headers_private", 105 ], 106 107 whole_static_libs: ["libnativewindow"], 108 109 export_static_lib_headers: ["libarect"], 110 111 include_dirs: ["bionic/libc/dns/include"], 112 113 local_include_dirs: ["include_platform"], 114 115 export_include_dirs: ["include_platform"], 116 117 version_script: "libandroid.map.txt", 118 stubs: { 119 symbol_file: "libandroid.map.txt", 120 versions: [ 121 "29", 122 "31", 123 ], 124 }, 125} 126 127// Network library. 128cc_library_shared { 129 name: "libandroid_net", 130 defaults: ["libandroid_defaults"], 131 llndk: { 132 symbol_file: "libandroid_net.map.txt", 133 unversioned: true, 134 override_export_include_dirs: ["include"], 135 }, 136 srcs: ["net.c"], 137 138 shared_libs: ["libnetd_client"], 139 140 include_dirs: ["bionic/libc/dns/include"], 141} 142 143// Aidl library for platform compat. 144cc_library_shared { 145 name: "lib-platform-compat-native-api", 146 cflags: [ 147 "-Wall", 148 "-Werror", 149 "-Wno-missing-field-initializers", 150 "-Wno-unused-variable", 151 "-Wunused-parameter", 152 ], 153 shared_libs: [ 154 "libbinder", 155 "libutils", 156 ], 157 aidl: { 158 local_include_dirs: ["aidl"], 159 export_aidl_headers: true, 160 }, 161 srcs: [ 162 ":platform-compat-native-aidl", 163 ], 164 export_include_dirs: ["aidl"], 165} 166 167filegroup { 168 name: "platform-compat-native-aidl", 169 srcs: [ 170 "aidl/com/android/internal/compat/IPlatformCompatNative.aidl", 171 ], 172 path: "aidl", 173} 174