blob: 5cfb09b9a68ced0a572bf21a6fb19fc027463d48 [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",
39 "choreographer.cpp",
40 "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",
Mathias Agopianc3c8d422018-01-30 18:07:27 -080051 "surface_texture.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",
58 "libcutils",
59 "libandroidfw",
60 "libinput",
61 "libutils",
62 "libbinder",
63 "libui",
64 "libgui",
Seigo Nonaka75b841b2018-10-30 11:39:49 -070065 "libharfbuzz_ng", // Only for including hb.h via minikin
Colin Cross3f8fd402017-04-20 12:20:20 -070066 "libsensor",
67 "libandroid_runtime",
Seigo Nonaka75b841b2018-10-30 11:39:49 -070068 "libminikin",
Colin Cross3f8fd402017-04-20 12:20:20 -070069 "libnetd_client",
Stan Iliev564ca3e2018-09-04 22:00:00 +000070 "libhwui",
Seigo Nonaka50692ca2018-08-31 12:27:15 -070071 "libxml2",
Colin Cross3f8fd402017-04-20 12:20:20 -070072 ],
73
74 static_libs: [
75 "libstorage",
76 "libarect",
77 ],
78
79 whole_static_libs: ["libnativewindow"],
80
81 export_static_lib_headers: ["libarect"],
82
83 include_dirs: ["bionic/libc/dns/include"],
dimitry499745f2018-11-08 15:07:32 +010084
85 version_script: "libandroid.map.txt",
Colin Cross3f8fd402017-04-20 12:20:20 -070086}
87
88// Network library.
89cc_library_shared {
90 name: "libandroid_net",
91 defaults: ["libandroid_defaults"],
92 srcs: ["net.c"],
93
94 shared_libs: ["libnetd_client"],
95
96 include_dirs: ["bionic/libc/dns/include"],
97}
Lorenzo Colittid15f0af2017-05-17 16:50:17 +090098
99llndk_library {
100 name: "libandroid_net",
101 export_include_dirs: ["include"],
102 symbol_file: "libandroid_net.map.txt",
103 unversioned: true,
104}