| 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 | } |
| Lorenzo Colitti | addb296 | 2017-05-17 16:46:02 +0900 | [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 | // Network library. |
| 34 | cc_library_shared { |
| 35 | name: "libandroid_net", |
| 36 | defaults: ["libandroid_defaults"], |
| 37 | srcs: ["net.c"], |
| 38 | |
| 39 | shared_libs: ["libnetd_client"], |
| 40 | |
| 41 | include_dirs: ["bionic/libc/dns/include"], |
| 42 | } |
| Lorenzo Colitti | ec37d5f | 2017-05-17 16:50:17 +0900 | [diff] [blame] | 43 | |
| 44 | llndk_library { |
| 45 | name: "libandroid_net", |
| 46 | export_include_dirs: ["include"], |
| 47 | symbol_file: "libandroid_net.map.txt", |
| 48 | unversioned: true, |
| 49 | } |