blob: 797d3fd8c2ff788e3fbd76677c3e3389cf660378 [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: [
39 "asset_manager.cpp",
Alec Mouricf3ad872020-04-27 22:36:17 -070040 "choreographer.cpp",
Colin Cross3f8fd402017-04-20 12:20:20 -070041 "configuration.cpp",
42 "hardware_buffer_jni.cpp",
43 "input.cpp",
44 "looper.cpp",
45 "native_activity.cpp",
46 "native_window_jni.cpp",
47 "net.c",
48 "obb.cpp",
49 "sensor.cpp",
50 "sharedmem.cpp",
51 "storage_manager.cpp",
Marissa Wallf6a73fa2018-12-10 10:41:08 -080052 "surface_control.cpp",
Alec Mouricf3ad872020-04-27 22:36:17 -070053 "surface_texture.cpp",
Seigo Nonaka50692ca2018-08-31 12:27:15 -070054 "system_fonts.cpp",
Colin Cross3f8fd402017-04-20 12:20:20 -070055 "trace.cpp",
Chris Ye48dbcaa2020-02-10 13:29:01 -080056 "thermal.cpp"
Colin Cross3f8fd402017-04-20 12:20:20 -070057 ],
58
59 shared_libs: [
60 "liblog",
Marissa Wall1be5a102019-01-18 16:14:04 -080061 "libhidlbase",
Colin Cross3f8fd402017-04-20 12:20:20 -070062 "libcutils",
63 "libandroidfw",
64 "libinput",
65 "libutils",
66 "libbinder",
67 "libui",
68 "libgui",
Seigo Nonaka75b841b2018-10-30 11:39:49 -070069 "libharfbuzz_ng", // Only for including hb.h via minikin
Colin Cross3f8fd402017-04-20 12:20:20 -070070 "libsensor",
71 "libandroid_runtime",
Seigo Nonaka75b841b2018-10-30 11:39:49 -070072 "libminikin",
Colin Cross3f8fd402017-04-20 12:20:20 -070073 "libnetd_client",
Stan Iliev564ca3e2018-09-04 22:00:00 +000074 "libhwui",
Seigo Nonaka50692ca2018-08-31 12:27:15 -070075 "libxml2",
Stan Iliev5af5d302020-01-13 11:29:18 -050076 "libEGL",
77 "libGLESv2",
Chris Ye48dbcaa2020-02-10 13:29:01 -080078 "libpowermanager",
Marissa Wall1be5a102019-01-18 16:14:04 -080079 "android.hardware.configstore@1.0",
80 "android.hardware.configstore-utils",
Alec Mouricf3ad872020-04-27 22:36:17 -070081 "libnativedisplay",
Colin Cross3f8fd402017-04-20 12:20:20 -070082 ],
83
84 static_libs: [
85 "libstorage",
86 "libarect",
87 ],
88
Alec Mouricf3ad872020-04-27 22:36:17 -070089 header_libs: [ "libhwui_internal_headers",],
Derek Sollenbergeree538a32020-02-19 11:51:17 -050090
Alec Mouricf3ad872020-04-27 22:36:17 -070091 whole_static_libs: ["libnativewindow"],
Colin Cross3f8fd402017-04-20 12:20:20 -070092
93 export_static_lib_headers: ["libarect"],
94
95 include_dirs: ["bionic/libc/dns/include"],
dimitry499745f2018-11-08 15:07:32 +010096
97 version_script: "libandroid.map.txt",
Dongwon Kangb61819e2019-01-09 16:01:01 -080098 stubs: {
99 symbol_file: "libandroid.map.txt",
100 versions: ["29"],
101 },
Colin Cross3f8fd402017-04-20 12:20:20 -0700102}
103
104// Network library.
105cc_library_shared {
106 name: "libandroid_net",
107 defaults: ["libandroid_defaults"],
108 srcs: ["net.c"],
109
110 shared_libs: ["libnetd_client"],
111
112 include_dirs: ["bionic/libc/dns/include"],
113}
Lorenzo Colittid15f0af2017-05-17 16:50:17 +0900114
115llndk_library {
116 name: "libandroid_net",
117 export_include_dirs: ["include"],
118 symbol_file: "libandroid_net.map.txt",
119 unversioned: true,
120}
atrost87488352019-10-10 19:27:31 +0100121
122
123// Aidl library for platform compat.
124cc_library_shared {
125 name: "lib-platform-compat-native-api",
126 cflags: [
127 "-Wall",
128 "-Werror",
129 "-Wno-missing-field-initializers",
130 "-Wno-unused-variable",
131 "-Wunused-parameter",
132 ],
133 shared_libs: [
134 "libbinder",
135 "libutils",
136 ],
137 aidl: {
138 local_include_dirs: ["aidl"],
139 export_aidl_headers: true,
140 },
141 srcs: [
142 ":platform-compat-native-aidl",
143 ],
144 export_include_dirs: ["aidl"],
145}
146
147filegroup {
148 name: "platform-compat-native-aidl",
149 srcs: [
150 "aidl/com/android/internal/compat/IPlatformCompatNative.aidl",
151 ],
152 path: "aidl",
Alec Mouri440c5ac2019-10-22 10:30:31 -0700153}