blob: d1dddbd52265ea0b5760405623b1ed80206ddcd9 [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 Badour051ef782021-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: [
48 "asset_manager.cpp",
Alec Mouricf3ad872020-04-27 22:36:17 -070049 "choreographer.cpp",
Colin Cross3f8fd402017-04-20 12:20:20 -070050 "configuration.cpp",
51 "hardware_buffer_jni.cpp",
52 "input.cpp",
53 "looper.cpp",
54 "native_activity.cpp",
55 "native_window_jni.cpp",
56 "net.c",
57 "obb.cpp",
58 "sensor.cpp",
59 "sharedmem.cpp",
60 "storage_manager.cpp",
Marissa Wallf6a73fa2018-12-10 10:41:08 -080061 "surface_control.cpp",
Alec Mouricf3ad872020-04-27 22:36:17 -070062 "surface_texture.cpp",
Seigo Nonaka50692ca2018-08-31 12:27:15 -070063 "system_fonts.cpp",
Colin Cross3f8fd402017-04-20 12:20:20 -070064 "trace.cpp",
Chris Ye48dbcaa2020-02-10 13:29:01 -080065 "thermal.cpp"
Colin Cross3f8fd402017-04-20 12:20:20 -070066 ],
67
68 shared_libs: [
69 "liblog",
Marissa Wall1be5a102019-01-18 16:14:04 -080070 "libhidlbase",
Colin Cross3f8fd402017-04-20 12:20:20 -070071 "libcutils",
72 "libandroidfw",
73 "libinput",
74 "libutils",
75 "libbinder",
76 "libui",
77 "libgui",
Seigo Nonaka75b841b2018-10-30 11:39:49 -070078 "libharfbuzz_ng", // Only for including hb.h via minikin
Colin Cross3f8fd402017-04-20 12:20:20 -070079 "libsensor",
80 "libandroid_runtime",
Seigo Nonaka75b841b2018-10-30 11:39:49 -070081 "libminikin",
Colin Cross3f8fd402017-04-20 12:20:20 -070082 "libnetd_client",
Stan Iliev564ca3e2018-09-04 22:00:00 +000083 "libhwui",
Seigo Nonaka50692ca2018-08-31 12:27:15 -070084 "libxml2",
Stan Iliev5af5d302020-01-13 11:29:18 -050085 "libEGL",
86 "libGLESv2",
Chris Ye48dbcaa2020-02-10 13:29:01 -080087 "libpowermanager",
Marissa Wall1be5a102019-01-18 16:14:04 -080088 "android.hardware.configstore@1.0",
89 "android.hardware.configstore-utils",
Alec Mouricf3ad872020-04-27 22:36:17 -070090 "libnativedisplay",
Colin Cross3f8fd402017-04-20 12:20:20 -070091 ],
92
93 static_libs: [
94 "libstorage",
95 "libarect",
96 ],
97
Alec Mouricf3ad872020-04-27 22:36:17 -070098 header_libs: [ "libhwui_internal_headers",],
Derek Sollenbergeree538a32020-02-19 11:51:17 -050099
Alec Mouricf3ad872020-04-27 22:36:17 -0700100 whole_static_libs: ["libnativewindow"],
Colin Cross3f8fd402017-04-20 12:20:20 -0700101
102 export_static_lib_headers: ["libarect"],
103
104 include_dirs: ["bionic/libc/dns/include"],
dimitry499745f2018-11-08 15:07:32 +0100105
106 version_script: "libandroid.map.txt",
Dongwon Kangb61819e2019-01-09 16:01:01 -0800107 stubs: {
108 symbol_file: "libandroid.map.txt",
109 versions: ["29"],
110 },
Colin Cross3f8fd402017-04-20 12:20:20 -0700111}
112
113// Network library.
114cc_library_shared {
115 name: "libandroid_net",
116 defaults: ["libandroid_defaults"],
Colin Cross27f13782020-10-19 13:37:57 -0700117 llndk_stubs: "libandroid_net.llndk",
Colin Cross3f8fd402017-04-20 12:20:20 -0700118 srcs: ["net.c"],
119
120 shared_libs: ["libnetd_client"],
121
122 include_dirs: ["bionic/libc/dns/include"],
123}
Lorenzo Colittid15f0af2017-05-17 16:50:17 +0900124
125llndk_library {
Colin Cross27f13782020-10-19 13:37:57 -0700126 name: "libandroid_net.llndk",
Lorenzo Colittid15f0af2017-05-17 16:50:17 +0900127 export_include_dirs: ["include"],
128 symbol_file: "libandroid_net.map.txt",
129 unversioned: true,
130}
atrost87488352019-10-10 19:27:31 +0100131
132
133// Aidl library for platform compat.
134cc_library_shared {
135 name: "lib-platform-compat-native-api",
136 cflags: [
137 "-Wall",
138 "-Werror",
139 "-Wno-missing-field-initializers",
140 "-Wno-unused-variable",
141 "-Wunused-parameter",
142 ],
143 shared_libs: [
144 "libbinder",
145 "libutils",
146 ],
147 aidl: {
148 local_include_dirs: ["aidl"],
149 export_aidl_headers: true,
150 },
151 srcs: [
152 ":platform-compat-native-aidl",
153 ],
154 export_include_dirs: ["aidl"],
155}
156
157filegroup {
158 name: "platform-compat-native-aidl",
159 srcs: [
160 "aidl/com/android/internal/compat/IPlatformCompatNative.aidl",
161 ],
162 path: "aidl",
Alec Mouri440c5ac2019-10-22 10:30:31 -0700163}