blob: 3daaf05fa8d57788d3b741633852487f04cf0ae6 [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.
16ndk_library {
Dan Willemsen3dcf0312017-04-07 15:48:45 -070017 name: "libandroid",
Dan Albert2a8d9c22016-09-23 15:55:49 -070018 symbol_file: "libandroid.map.txt",
19 first_version: "9",
Dan Albert98e462d2017-01-05 16:01:14 -080020 unversioned_until: "current",
Dan Albert2a8d9c22016-09-23 15:55:49 -070021}
Colin Cross3f8fd402017-04-20 12:20:20 -070022
23cc_defaults {
24 name: "libandroid_defaults",
25 cflags: [
26 "-Wall",
27 "-Werror",
Siarhei Vishniakoucf075282020-01-15 17:35:58 -080028 "-Wextra",
Colin Cross3f8fd402017-04-20 12:20:20 -070029 "-Wunused",
30 "-Wunreachable-code",
31 ],
32}
33
34cc_library_shared {
35 name: "libandroid",
36 defaults: ["libandroid_defaults"],
37
38 srcs: [
Chong Zhang8af87922020-11-11 14:46:30 -080039 "activity_manager.cpp",
Colin Cross3f8fd402017-04-20 12:20:20 -070040 "asset_manager.cpp",
Alec Mouricf3ad872020-04-27 22:36:17 -070041 "choreographer.cpp",
Colin Cross3f8fd402017-04-20 12:20:20 -070042 "configuration.cpp",
43 "hardware_buffer_jni.cpp",
44 "input.cpp",
45 "looper.cpp",
46 "native_activity.cpp",
47 "native_window_jni.cpp",
48 "net.c",
49 "obb.cpp",
Chong Zhang06dbe5b2020-11-02 16:02:07 -080050 "permission_manager.cpp",
Colin Cross3f8fd402017-04-20 12:20:20 -070051 "sensor.cpp",
52 "sharedmem.cpp",
53 "storage_manager.cpp",
Marissa Wallf6a73fa2018-12-10 10:41:08 -080054 "surface_control.cpp",
Alec Mouricf3ad872020-04-27 22:36:17 -070055 "surface_texture.cpp",
Seigo Nonaka50692ca2018-08-31 12:27:15 -070056 "system_fonts.cpp",
Colin Cross3f8fd402017-04-20 12:20:20 -070057 "trace.cpp",
Chris Ye48dbcaa2020-02-10 13:29:01 -080058 "thermal.cpp"
Colin Cross3f8fd402017-04-20 12:20:20 -070059 ],
60
61 shared_libs: [
62 "liblog",
Marissa Wall1be5a102019-01-18 16:14:04 -080063 "libhidlbase",
Colin Cross3f8fd402017-04-20 12:20:20 -070064 "libcutils",
65 "libandroidfw",
66 "libinput",
67 "libutils",
68 "libbinder",
69 "libui",
70 "libgui",
Seigo Nonaka75b841b2018-10-30 11:39:49 -070071 "libharfbuzz_ng", // Only for including hb.h via minikin
Colin Cross3f8fd402017-04-20 12:20:20 -070072 "libsensor",
73 "libandroid_runtime",
Seigo Nonaka75b841b2018-10-30 11:39:49 -070074 "libminikin",
Colin Cross3f8fd402017-04-20 12:20:20 -070075 "libnetd_client",
Stan Iliev564ca3e2018-09-04 22:00:00 +000076 "libhwui",
Seigo Nonaka50692ca2018-08-31 12:27:15 -070077 "libxml2",
Stan Iliev5af5d302020-01-13 11:29:18 -050078 "libEGL",
79 "libGLESv2",
Chris Ye48dbcaa2020-02-10 13:29:01 -080080 "libpowermanager",
Marissa Wall1be5a102019-01-18 16:14:04 -080081 "android.hardware.configstore@1.0",
82 "android.hardware.configstore-utils",
Alec Mouricf3ad872020-04-27 22:36:17 -070083 "libnativedisplay",
Colin Cross3f8fd402017-04-20 12:20:20 -070084 ],
85
86 static_libs: [
87 "libstorage",
88 "libarect",
89 ],
90
Alec Mouricf3ad872020-04-27 22:36:17 -070091 header_libs: [ "libhwui_internal_headers",],
Derek Sollenbergeree538a32020-02-19 11:51:17 -050092
Alec Mouricf3ad872020-04-27 22:36:17 -070093 whole_static_libs: ["libnativewindow"],
Colin Cross3f8fd402017-04-20 12:20:20 -070094
95 export_static_lib_headers: ["libarect"],
96
97 include_dirs: ["bionic/libc/dns/include"],
dimitry499745f2018-11-08 15:07:32 +010098
Chong Zhang8af87922020-11-11 14:46:30 -080099 local_include_dirs: [ "include_platform", ],
100
101 export_include_dirs: [ "include_platform", ],
102
dimitry499745f2018-11-08 15:07:32 +0100103 version_script: "libandroid.map.txt",
Dongwon Kangb61819e2019-01-09 16:01:01 -0800104 stubs: {
105 symbol_file: "libandroid.map.txt",
Chong Zhang864d0b72020-12-04 11:34:19 -0800106 versions: ["29", "31"],
Dongwon Kangb61819e2019-01-09 16:01:01 -0800107 },
Colin Cross3f8fd402017-04-20 12:20:20 -0700108}
109
110// Network library.
111cc_library_shared {
112 name: "libandroid_net",
113 defaults: ["libandroid_defaults"],
Colin Cross27f13782020-10-19 13:37:57 -0700114 llndk_stubs: "libandroid_net.llndk",
Colin Cross3f8fd402017-04-20 12:20:20 -0700115 srcs: ["net.c"],
116
117 shared_libs: ["libnetd_client"],
118
119 include_dirs: ["bionic/libc/dns/include"],
120}
Lorenzo Colittid15f0af2017-05-17 16:50:17 +0900121
122llndk_library {
Colin Cross27f13782020-10-19 13:37:57 -0700123 name: "libandroid_net.llndk",
Lorenzo Colittid15f0af2017-05-17 16:50:17 +0900124 export_include_dirs: ["include"],
125 symbol_file: "libandroid_net.map.txt",
126 unversioned: true,
127}
atrost87488352019-10-10 19:27:31 +0100128
129
130// Aidl library for platform compat.
131cc_library_shared {
132 name: "lib-platform-compat-native-api",
133 cflags: [
134 "-Wall",
135 "-Werror",
136 "-Wno-missing-field-initializers",
137 "-Wno-unused-variable",
138 "-Wunused-parameter",
139 ],
140 shared_libs: [
141 "libbinder",
142 "libutils",
143 ],
144 aidl: {
145 local_include_dirs: ["aidl"],
146 export_aidl_headers: true,
147 },
148 srcs: [
149 ":platform-compat-native-aidl",
150 ],
151 export_include_dirs: ["aidl"],
152}
153
154filegroup {
155 name: "platform-compat-native-aidl",
156 srcs: [
157 "aidl/com/android/internal/compat/IPlatformCompatNative.aidl",
158 ],
159 path: "aidl",
Alec Mouri440c5ac2019-10-22 10:30:31 -0700160}