blob: 24c93ce63b1e66fdac4629affba9463ec6c1ae78 [file] [log] [blame]
Dan Albert2a8d9c22016-09-23 15:55:49 -07001// 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 Badour8a6a2bc2021-02-12 17:07:05 -080016package {
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 Albert2a8d9c22016-09-23 15:55:49 -070025ndk_library {
Dan Willemsen3dcf0312017-04-07 15:48:45 -070026 name: "libandroid",
Dan Albert2a8d9c22016-09-23 15:55:49 -070027 symbol_file: "libandroid.map.txt",
28 first_version: "9",
Dan Albert98e462d2017-01-05 16:01:14 -080029 unversioned_until: "current",
Dan Albert2a8d9c22016-09-23 15:55:49 -070030}
Colin Cross3f8fd402017-04-20 12:20:20 -070031
32cc_defaults {
33 name: "libandroid_defaults",
34 cflags: [
35 "-Wall",
36 "-Werror",
Siarhei Vishniakoucf075282020-01-15 17:35:58 -080037 "-Wextra",
Colin Cross3f8fd402017-04-20 12:20:20 -070038 "-Wunused",
39 "-Wunreachable-code",
40 ],
41}
42
43cc_library_shared {
44 name: "libandroid",
45 defaults: ["libandroid_defaults"],
46
47 srcs: [
Chong Zhang8af87922020-11-11 14:46:30 -080048 "activity_manager.cpp",
Colin Cross3f8fd402017-04-20 12:20:20 -070049 "asset_manager.cpp",
Alec Mouricf3ad872020-04-27 22:36:17 -070050 "choreographer.cpp",
Colin Cross3f8fd402017-04-20 12:20:20 -070051 "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 Zhang06dbe5b2020-11-02 16:02:07 -080059 "permission_manager.cpp",
Colin Cross3f8fd402017-04-20 12:20:20 -070060 "sensor.cpp",
61 "sharedmem.cpp",
62 "storage_manager.cpp",
Marissa Wallf6a73fa2018-12-10 10:41:08 -080063 "surface_control.cpp",
Alec Mouricf3ad872020-04-27 22:36:17 -070064 "surface_texture.cpp",
Seigo Nonaka50692ca2018-08-31 12:27:15 -070065 "system_fonts.cpp",
Colin Cross3f8fd402017-04-20 12:20:20 -070066 "trace.cpp",
Colin Crossb16eb692021-04-22 17:22:26 -070067 "thermal.cpp",
Colin Cross3f8fd402017-04-20 12:20:20 -070068 ],
69
70 shared_libs: [
71 "liblog",
Marissa Wall1be5a102019-01-18 16:14:04 -080072 "libhidlbase",
Colin Cross3f8fd402017-04-20 12:20:20 -070073 "libcutils",
74 "libandroidfw",
75 "libinput",
76 "libutils",
77 "libbinder",
78 "libui",
79 "libgui",
Colin Crossb16eb692021-04-22 17:22:26 -070080 "libharfbuzz_ng", // Only for including hb.h via minikin
Colin Cross3f8fd402017-04-20 12:20:20 -070081 "libsensor",
Steven Moreland8e6aa662021-04-05 23:19:26 +000082 "libactivitymanager_aidl",
Colin Cross3f8fd402017-04-20 12:20:20 -070083 "libandroid_runtime",
Seigo Nonaka75b841b2018-10-30 11:39:49 -070084 "libminikin",
Colin Cross3f8fd402017-04-20 12:20:20 -070085 "libnetd_client",
Stan Iliev564ca3e2018-09-04 22:00:00 +000086 "libhwui",
Seigo Nonaka50692ca2018-08-31 12:27:15 -070087 "libxml2",
Stan Iliev5af5d302020-01-13 11:29:18 -050088 "libEGL",
89 "libGLESv2",
Chris Ye48dbcaa2020-02-10 13:29:01 -080090 "libpowermanager",
Marissa Wall1be5a102019-01-18 16:14:04 -080091 "android.hardware.configstore@1.0",
92 "android.hardware.configstore-utils",
Alec Mouricf3ad872020-04-27 22:36:17 -070093 "libnativedisplay",
Colin Cross3f8fd402017-04-20 12:20:20 -070094 ],
95
96 static_libs: [
97 "libstorage",
98 "libarect",
99 ],
100
Colin Crossb16eb692021-04-22 17:22:26 -0700101 header_libs: [
102 "libhwui_internal_headers",
103 "libandroid_headers_private",
104 ],
Derek Sollenbergeree538a32020-02-19 11:51:17 -0500105
Alec Mouricf3ad872020-04-27 22:36:17 -0700106 whole_static_libs: ["libnativewindow"],
Colin Cross3f8fd402017-04-20 12:20:20 -0700107
108 export_static_lib_headers: ["libarect"],
109
110 include_dirs: ["bionic/libc/dns/include"],
dimitry499745f2018-11-08 15:07:32 +0100111
Colin Crossb16eb692021-04-22 17:22:26 -0700112 local_include_dirs: ["include_platform"],
Chong Zhang8af87922020-11-11 14:46:30 -0800113
Colin Crossb16eb692021-04-22 17:22:26 -0700114 export_include_dirs: ["include_platform"],
Chong Zhang8af87922020-11-11 14:46:30 -0800115
dimitry499745f2018-11-08 15:07:32 +0100116 version_script: "libandroid.map.txt",
Dongwon Kangb61819e2019-01-09 16:01:01 -0800117 stubs: {
118 symbol_file: "libandroid.map.txt",
Colin Crossb16eb692021-04-22 17:22:26 -0700119 versions: [
120 "29",
121 "31",
122 ],
Dongwon Kangb61819e2019-01-09 16:01:01 -0800123 },
Colin Cross3f8fd402017-04-20 12:20:20 -0700124}
125
126// Network library.
127cc_library_shared {
128 name: "libandroid_net",
129 defaults: ["libandroid_defaults"],
Colin Cross27f13782020-10-19 13:37:57 -0700130 llndk_stubs: "libandroid_net.llndk",
Colin Cross3f8fd402017-04-20 12:20:20 -0700131 srcs: ["net.c"],
132
133 shared_libs: ["libnetd_client"],
134
135 include_dirs: ["bionic/libc/dns/include"],
136}
Lorenzo Colittid15f0af2017-05-17 16:50:17 +0900137
138llndk_library {
Colin Cross27f13782020-10-19 13:37:57 -0700139 name: "libandroid_net.llndk",
Lorenzo Colittid15f0af2017-05-17 16:50:17 +0900140 export_include_dirs: ["include"],
141 symbol_file: "libandroid_net.map.txt",
142 unversioned: true,
143}
atrost87488352019-10-10 19:27:31 +0100144
atrost87488352019-10-10 19:27:31 +0100145// Aidl library for platform compat.
146cc_library_shared {
147 name: "lib-platform-compat-native-api",
148 cflags: [
Colin Crossb16eb692021-04-22 17:22:26 -0700149 "-Wall",
150 "-Werror",
151 "-Wno-missing-field-initializers",
152 "-Wno-unused-variable",
153 "-Wunused-parameter",
154 ],
atrost87488352019-10-10 19:27:31 +0100155 shared_libs: [
156 "libbinder",
Colin Crossb16eb692021-04-22 17:22:26 -0700157 "libutils",
atrost87488352019-10-10 19:27:31 +0100158 ],
159 aidl: {
160 local_include_dirs: ["aidl"],
161 export_aidl_headers: true,
162 },
163 srcs: [
Colin Crossb16eb692021-04-22 17:22:26 -0700164 ":platform-compat-native-aidl",
atrost87488352019-10-10 19:27:31 +0100165 ],
166 export_include_dirs: ["aidl"],
167}
168
169filegroup {
170 name: "platform-compat-native-aidl",
171 srcs: [
172 "aidl/com/android/internal/compat/IPlatformCompatNative.aidl",
173 ],
174 path: "aidl",
Alec Mouri440c5ac2019-10-22 10:30:31 -0700175}