Dan Willemsen | 710b722 | 2016-07-13 23:33:44 -0700 | [diff] [blame] | 1 | // Copyright (C) 2015 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 | |
Yabin Cui | 848a1b6 | 2016-07-26 15:01:09 -0700 | [diff] [blame] | 15 | cc_library { |
Dan Willemsen | 710b722 | 2016-07-13 23:33:44 -0700 | [diff] [blame] | 16 | name: "libevent", |
| 17 | host_supported: true, |
Dan Willemsen | 509ebc1 | 2018-10-23 13:46:34 -0700 | [diff] [blame] | 18 | recovery_available: true, |
Dan Willemsen | 596447c | 2017-04-07 14:12:51 -0700 | [diff] [blame] | 19 | vendor_available: true, |
Justin Yun | f109eb4 | 2017-07-24 15:19:44 +0900 | [diff] [blame] | 20 | vndk: { |
| 21 | enabled: true, |
| 22 | }, |
Dan Willemsen | 0a4fdc9 | 2016-07-22 13:43:21 -0700 | [diff] [blame] | 23 | unique_host_soname: true, |
Dan Willemsen | 710b722 | 2016-07-13 23:33:44 -0700 | [diff] [blame] | 24 | |
| 25 | arch: { |
| 26 | arm: { |
| 27 | instruction_set: "arm", |
| 28 | }, |
| 29 | }, |
| 30 | cflags: [ |
| 31 | "-D_BSD_SOURCE", |
| 32 | "-O3", |
| 33 | "-Wno-implicit-function-declaration", |
| 34 | "-Wno-strict-aliasing", |
| 35 | "-Wno-unused-parameter", |
| 36 | "-Werror", |
| 37 | ], |
Dan Willemsen | 710b722 | 2016-07-13 23:33:44 -0700 | [diff] [blame] | 38 | export_include_dirs: ["include"], |
| 39 | |
Narayan Kamath | fc74cb4 | 2017-09-13 12:53:52 +0100 | [diff] [blame] | 40 | local_include_dirs: ["compat"], |
| 41 | |
Dan Willemsen | 710b722 | 2016-07-13 23:33:44 -0700 | [diff] [blame] | 42 | srcs: [ |
| 43 | // core |
| 44 | "buffer.c", |
| 45 | "bufferevent.c", |
| 46 | "bufferevent_filter.c", |
| 47 | "bufferevent_pair.c", |
| 48 | "bufferevent_ratelim.c", |
| 49 | "bufferevent_sock.c", |
| 50 | "event.c", |
| 51 | "evmap.c", |
| 52 | "evthread.c", |
| 53 | "evutil.c", |
| 54 | "evutil_rand.c", |
Narayan Kamath | fc74cb4 | 2017-09-13 12:53:52 +0100 | [diff] [blame] | 55 | "evutil_time.c", |
Dan Willemsen | 710b722 | 2016-07-13 23:33:44 -0700 | [diff] [blame] | 56 | "listener.c", |
| 57 | "log.c", |
| 58 | "signal.c", |
| 59 | "strlcpy.c", |
| 60 | |
| 61 | // extra |
| 62 | "evdns.c", |
| 63 | "event_tagging.c", |
| 64 | "evrpc.c", |
| 65 | "http.c", |
| 66 | |
| 67 | "poll.c", |
| 68 | "select.c", |
| 69 | ], |
| 70 | |
| 71 | target: { |
Dan Willemsen | 98a4ebe | 2017-10-03 14:16:05 -0700 | [diff] [blame] | 72 | linux: { |
Dan Willemsen | 710b722 | 2016-07-13 23:33:44 -0700 | [diff] [blame] | 73 | srcs: ["epoll.c"], |
Dan Willemsen | 710b722 | 2016-07-13 23:33:44 -0700 | [diff] [blame] | 74 | }, |
Dan Willemsen | 520e022 | 2017-03-15 14:37:17 -0700 | [diff] [blame] | 75 | linux_bionic: { |
| 76 | enabled: true, |
Dan Willemsen | 520e022 | 2017-03-15 14:37:17 -0700 | [diff] [blame] | 77 | }, |
Dan Willemsen | 710b722 | 2016-07-13 23:33:44 -0700 | [diff] [blame] | 78 | darwin: { |
| 79 | srcs: ["kqueue.c"], |
| 80 | }, |
| 81 | }, |
| 82 | } |