Dan Albert | 2a8d9c2 | 2016-09-23 15:55:49 -0700 | [diff] [blame] | 1 | // 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. |
| 16 | ndk_library { |
Dan Willemsen | 3dcf031 | 2017-04-07 15:48:45 -0700 | [diff] [blame] | 17 | name: "libandroid", |
Dan Albert | 2a8d9c2 | 2016-09-23 15:55:49 -0700 | [diff] [blame] | 18 | symbol_file: "libandroid.map.txt", |
| 19 | first_version: "9", |
Dan Albert | 98e462d | 2017-01-05 16:01:14 -0800 | [diff] [blame] | 20 | unversioned_until: "current", |
Dan Albert | 2a8d9c2 | 2016-09-23 15:55:49 -0700 | [diff] [blame] | 21 | } |
Colin Cross | 3f8fd40 | 2017-04-20 12:20:20 -0700 | [diff] [blame] | 22 | |
| 23 | cc_defaults { |
| 24 | name: "libandroid_defaults", |
| 25 | cflags: [ |
| 26 | "-Wall", |
| 27 | "-Werror", |
| 28 | "-Wunused", |
| 29 | "-Wunreachable-code", |
| 30 | ], |
| 31 | } |
| 32 | |
| 33 | cc_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 Agopian | c3c8d42 | 2018-01-30 18:07:27 -0800 | [diff] [blame] | 51 | "surface_texture.cpp", |
Marissa Wall | f6a73fa | 2018-12-10 10:41:08 -0800 | [diff] [blame^] | 52 | "surface_control.cpp", |
Seigo Nonaka | 50692ca | 2018-08-31 12:27:15 -0700 | [diff] [blame] | 53 | "system_fonts.cpp", |
Colin Cross | 3f8fd40 | 2017-04-20 12:20:20 -0700 | [diff] [blame] | 54 | "trace.cpp", |
| 55 | ], |
| 56 | |
| 57 | shared_libs: [ |
| 58 | "liblog", |
| 59 | "libcutils", |
| 60 | "libandroidfw", |
| 61 | "libinput", |
| 62 | "libutils", |
| 63 | "libbinder", |
| 64 | "libui", |
| 65 | "libgui", |
Seigo Nonaka | 75b841b | 2018-10-30 11:39:49 -0700 | [diff] [blame] | 66 | "libharfbuzz_ng", // Only for including hb.h via minikin |
Colin Cross | 3f8fd40 | 2017-04-20 12:20:20 -0700 | [diff] [blame] | 67 | "libsensor", |
| 68 | "libandroid_runtime", |
Seigo Nonaka | 75b841b | 2018-10-30 11:39:49 -0700 | [diff] [blame] | 69 | "libminikin", |
Colin Cross | 3f8fd40 | 2017-04-20 12:20:20 -0700 | [diff] [blame] | 70 | "libnetd_client", |
Stan Iliev | 564ca3e | 2018-09-04 22:00:00 +0000 | [diff] [blame] | 71 | "libhwui", |
Seigo Nonaka | 50692ca | 2018-08-31 12:27:15 -0700 | [diff] [blame] | 72 | "libxml2", |
Colin Cross | 3f8fd40 | 2017-04-20 12:20:20 -0700 | [diff] [blame] | 73 | ], |
| 74 | |
| 75 | static_libs: [ |
| 76 | "libstorage", |
| 77 | "libarect", |
| 78 | ], |
| 79 | |
| 80 | whole_static_libs: ["libnativewindow"], |
| 81 | |
| 82 | export_static_lib_headers: ["libarect"], |
| 83 | |
| 84 | include_dirs: ["bionic/libc/dns/include"], |
dimitry | 499745f | 2018-11-08 15:07:32 +0100 | [diff] [blame] | 85 | |
| 86 | version_script: "libandroid.map.txt", |
Colin Cross | 3f8fd40 | 2017-04-20 12:20:20 -0700 | [diff] [blame] | 87 | } |
| 88 | |
| 89 | // Network library. |
| 90 | cc_library_shared { |
| 91 | name: "libandroid_net", |
| 92 | defaults: ["libandroid_defaults"], |
| 93 | srcs: ["net.c"], |
| 94 | |
| 95 | shared_libs: ["libnetd_client"], |
| 96 | |
| 97 | include_dirs: ["bionic/libc/dns/include"], |
| 98 | } |
Lorenzo Colitti | d15f0af | 2017-05-17 16:50:17 +0900 | [diff] [blame] | 99 | |
| 100 | llndk_library { |
| 101 | name: "libandroid_net", |
| 102 | export_include_dirs: ["include"], |
| 103 | symbol_file: "libandroid_net.map.txt", |
| 104 | unversioned: true, |
| 105 | } |