blob: ed73f39e57f8f742fff22f18f1a237cd99c76413 [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",
Colin Cross3f8fd402017-04-20 12:20:20 -070040 "configuration.cpp",
41 "hardware_buffer_jni.cpp",
42 "input.cpp",
43 "looper.cpp",
44 "native_activity.cpp",
45 "native_window_jni.cpp",
46 "net.c",
47 "obb.cpp",
48 "sensor.cpp",
49 "sharedmem.cpp",
50 "storage_manager.cpp",
Marissa Wallf6a73fa2018-12-10 10:41:08 -080051 "surface_control.cpp",
Seigo Nonaka50692ca2018-08-31 12:27:15 -070052 "system_fonts.cpp",
Colin Cross3f8fd402017-04-20 12:20:20 -070053 "trace.cpp",
Chris Ye48dbcaa2020-02-10 13:29:01 -080054 "thermal.cpp"
Colin Cross3f8fd402017-04-20 12:20:20 -070055 ],
56
57 shared_libs: [
58 "liblog",
Marissa Wall1be5a102019-01-18 16:14:04 -080059 "libhidlbase",
Colin Cross3f8fd402017-04-20 12:20:20 -070060 "libcutils",
61 "libandroidfw",
62 "libinput",
63 "libutils",
64 "libbinder",
65 "libui",
66 "libgui",
Seigo Nonaka75b841b2018-10-30 11:39:49 -070067 "libharfbuzz_ng", // Only for including hb.h via minikin
Colin Cross3f8fd402017-04-20 12:20:20 -070068 "libsensor",
69 "libandroid_runtime",
Seigo Nonaka75b841b2018-10-30 11:39:49 -070070 "libminikin",
Colin Cross3f8fd402017-04-20 12:20:20 -070071 "libnetd_client",
Stan Iliev564ca3e2018-09-04 22:00:00 +000072 "libhwui",
Seigo Nonaka50692ca2018-08-31 12:27:15 -070073 "libxml2",
Stan Iliev5af5d302020-01-13 11:29:18 -050074 "libEGL",
75 "libGLESv2",
Chris Ye48dbcaa2020-02-10 13:29:01 -080076 "libpowermanager",
Marissa Wall1be5a102019-01-18 16:14:04 -080077 "android.hardware.configstore@1.0",
78 "android.hardware.configstore-utils",
Colin Cross3f8fd402017-04-20 12:20:20 -070079 ],
80
81 static_libs: [
82 "libstorage",
83 "libarect",
84 ],
85
Derek Sollenbergeree538a32020-02-19 11:51:17 -050086 header_libs: [ "libhwui_internal_headers" ],
87
Alec Mouri440c5ac2019-10-22 10:30:31 -070088 whole_static_libs: ["libnativedisplay", "libnativewindow"],
Colin Cross3f8fd402017-04-20 12:20:20 -070089
90 export_static_lib_headers: ["libarect"],
91
92 include_dirs: ["bionic/libc/dns/include"],
dimitry499745f2018-11-08 15:07:32 +010093
94 version_script: "libandroid.map.txt",
Dongwon Kangb61819e2019-01-09 16:01:01 -080095 stubs: {
96 symbol_file: "libandroid.map.txt",
97 versions: ["29"],
98 },
Colin Cross3f8fd402017-04-20 12:20:20 -070099}
100
101// Network library.
102cc_library_shared {
103 name: "libandroid_net",
104 defaults: ["libandroid_defaults"],
105 srcs: ["net.c"],
106
107 shared_libs: ["libnetd_client"],
108
109 include_dirs: ["bionic/libc/dns/include"],
110}
Lorenzo Colittid15f0af2017-05-17 16:50:17 +0900111
112llndk_library {
113 name: "libandroid_net",
114 export_include_dirs: ["include"],
115 symbol_file: "libandroid_net.map.txt",
116 unversioned: true,
117}
atrost87488352019-10-10 19:27:31 +0100118
119
120// Aidl library for platform compat.
121cc_library_shared {
122 name: "lib-platform-compat-native-api",
123 cflags: [
124 "-Wall",
125 "-Werror",
126 "-Wno-missing-field-initializers",
127 "-Wno-unused-variable",
128 "-Wunused-parameter",
129 ],
130 shared_libs: [
131 "libbinder",
132 "libutils",
133 ],
134 aidl: {
135 local_include_dirs: ["aidl"],
136 export_aidl_headers: true,
137 },
138 srcs: [
139 ":platform-compat-native-aidl",
140 ],
141 export_include_dirs: ["aidl"],
142}
143
144filegroup {
145 name: "platform-compat-native-aidl",
146 srcs: [
147 "aidl/com/android/internal/compat/IPlatformCompatNative.aidl",
148 ],
149 path: "aidl",
Alec Mouri440c5ac2019-10-22 10:30:31 -0700150}