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 { 17 name: "libandroid", 18 symbol_file: "libandroid.map.txt", 19 first_version: "9", 20 unversioned_until: "current", 21 } 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", 51 "surface_texture.cpp", 52 "surface_control.cpp", 53 "system_fonts.cpp", 54 "trace.cpp", 55 ], 56 57 shared_libs: [ 58 "liblog", 59 "libhidlbase", 60 "libcutils", 61 "libandroidfw", 62 "libinput", 63 "libutils", 64 "libbinder", 65 "libui", 66 "libgui", 67 "libharfbuzz_ng", // Only for including hb.h via minikin 68 "libsensor", 69 "libandroid_runtime", 70 "libminikin", 71 "libnetd_client", 72 "libhwui", 73 "libxml2", 74 "android.hardware.configstore (a] 1.0", 75 "android.hardware.configstore-utils", 76 ], 77 78 static_libs: [ 79 "libstorage", 80 "libarect", 81 ], 82 83 whole_static_libs: ["libnativewindow"], 84 85 export_static_lib_headers: ["libarect"], 86 87 include_dirs: ["bionic/libc/dns/include"], 88 89 version_script: "libandroid.map.txt", 90 stubs: { 91 symbol_file: "libandroid.map.txt", 92 versions: ["29"], 93 }, 94 } 95 96 // Network library. 97 cc_library_shared { 98 name: "libandroid_net", 99 defaults: ["libandroid_defaults"], 100 srcs: ["net.c"], 101 102 shared_libs: ["libnetd_client"], 103 104 include_dirs: ["bionic/libc/dns/include"], 105 } 106 107 llndk_library { 108 name: "libandroid_net", 109 export_include_dirs: ["include"], 110 symbol_file: "libandroid_net.map.txt", 111 unversioned: true, 112 } 113