blob: 452adc0c8da843cd499bcbcfc8a7a47d6fdc1237 [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",
51 "trace.cpp",
52 ],
53
54 shared_libs: [
55 "liblog",
56 "libcutils",
57 "libandroidfw",
58 "libinput",
59 "libutils",
60 "libbinder",
61 "libui",
62 "libgui",
63 "libsensor",
64 "libandroid_runtime",
65 "libnetd_client",
66 ],
67
68 static_libs: [
69 "libstorage",
70 "libarect",
71 ],
72
73 whole_static_libs: ["libnativewindow"],
74
75 export_static_lib_headers: ["libarect"],
76
77 include_dirs: ["bionic/libc/dns/include"],
78}
79
80// Network library.
81cc_library_shared {
82 name: "libandroid_net",
83 defaults: ["libandroid_defaults"],
84 srcs: ["net.c"],
85
86 shared_libs: ["libnetd_client"],
87
88 include_dirs: ["bionic/libc/dns/include"],
89}