blob: 9d93c9b7b605e0b8364ceb528bf0e64d92b68aa8 [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",
28 "-Wunused",
29 "-Wunreachable-code",
30 ],
31}
32
33cc_library_shared {
34 name: "libandroid",
35 defaults: ["libandroid_defaults"],
36
37 srcs: [
38 "asset_manager.cpp",
Colin Cross3f8fd402017-04-20 12:20:20 -070039 "configuration.cpp",
40 "hardware_buffer_jni.cpp",
41 "input.cpp",
42 "looper.cpp",
43 "native_activity.cpp",
44 "native_window_jni.cpp",
45 "net.c",
46 "obb.cpp",
47 "sensor.cpp",
48 "sharedmem.cpp",
49 "storage_manager.cpp",
Mathias Agopianc3c8d422018-01-30 18:07:27 -080050 "surface_texture.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",
54 ],
55
56 shared_libs: [
57 "liblog",
Marissa Wall1be5a102019-01-18 16:14:04 -080058 "libhidlbase",
Colin Cross3f8fd402017-04-20 12:20:20 -070059 "libcutils",
60 "libandroidfw",
61 "libinput",
62 "libutils",
63 "libbinder",
64 "libui",
65 "libgui",
Seigo Nonaka75b841b2018-10-30 11:39:49 -070066 "libharfbuzz_ng", // Only for including hb.h via minikin
Colin Cross3f8fd402017-04-20 12:20:20 -070067 "libsensor",
68 "libandroid_runtime",
Seigo Nonaka75b841b2018-10-30 11:39:49 -070069 "libminikin",
Colin Cross3f8fd402017-04-20 12:20:20 -070070 "libnetd_client",
Stan Iliev564ca3e2018-09-04 22:00:00 +000071 "libhwui",
Seigo Nonaka50692ca2018-08-31 12:27:15 -070072 "libxml2",
Marissa Wall1be5a102019-01-18 16:14:04 -080073 "android.hardware.configstore@1.0",
74 "android.hardware.configstore-utils",
Colin Cross3f8fd402017-04-20 12:20:20 -070075 ],
76
77 static_libs: [
78 "libstorage",
79 "libarect",
80 ],
81
Alec Mouri440c5ac2019-10-22 10:30:31 -070082 whole_static_libs: ["libnativedisplay", "libnativewindow"],
Colin Cross3f8fd402017-04-20 12:20:20 -070083
84 export_static_lib_headers: ["libarect"],
85
86 include_dirs: ["bionic/libc/dns/include"],
dimitry499745f2018-11-08 15:07:32 +010087
88 version_script: "libandroid.map.txt",
Dongwon Kangb61819e2019-01-09 16:01:01 -080089 stubs: {
90 symbol_file: "libandroid.map.txt",
91 versions: ["29"],
92 },
Colin Cross3f8fd402017-04-20 12:20:20 -070093}
94
95// Network library.
96cc_library_shared {
97 name: "libandroid_net",
98 defaults: ["libandroid_defaults"],
99 srcs: ["net.c"],
100
101 shared_libs: ["libnetd_client"],
102
103 include_dirs: ["bionic/libc/dns/include"],
104}
Lorenzo Colittid15f0af2017-05-17 16:50:17 +0900105
106llndk_library {
107 name: "libandroid_net",
108 export_include_dirs: ["include"],
109 symbol_file: "libandroid_net.map.txt",
110 unversioned: true,
111}
atrost87488352019-10-10 19:27:31 +0100112
113
114// Aidl library for platform compat.
115cc_library_shared {
116 name: "lib-platform-compat-native-api",
117 cflags: [
118 "-Wall",
119 "-Werror",
120 "-Wno-missing-field-initializers",
121 "-Wno-unused-variable",
122 "-Wunused-parameter",
123 ],
124 shared_libs: [
125 "libbinder",
126 "libutils",
127 ],
128 aidl: {
129 local_include_dirs: ["aidl"],
130 export_aidl_headers: true,
131 },
132 srcs: [
133 ":platform-compat-native-aidl",
134 ],
135 export_include_dirs: ["aidl"],
136}
137
138filegroup {
139 name: "platform-compat-native-aidl",
140 srcs: [
141 "aidl/com/android/internal/compat/IPlatformCompatNative.aidl",
142 ],
143 path: "aidl",
Alec Mouri440c5ac2019-10-22 10:30:31 -0700144}