Home | History | Annotate | Download | only in libevent
      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 
     15 cc_library {
     16     name: "libevent",
     17     host_supported: true,
     18     vendor_available: true,
     19     vndk: {
     20         enabled: true,
     21     },
     22     unique_host_soname: true,
     23 
     24     arch: {
     25         arm: {
     26             instruction_set: "arm",
     27         },
     28     },
     29     cflags: [
     30         "-D_BSD_SOURCE",
     31         "-O3",
     32         "-Wno-implicit-function-declaration",
     33         "-Wno-strict-aliasing",
     34         "-Wno-unused-parameter",
     35         "-Werror",
     36     ],
     37     export_include_dirs: ["include"],
     38 
     39     local_include_dirs: ["compat"],
     40 
     41     srcs: [
     42         // core
     43         "buffer.c",
     44         "bufferevent.c",
     45         "bufferevent_filter.c",
     46         "bufferevent_pair.c",
     47         "bufferevent_ratelim.c",
     48         "bufferevent_sock.c",
     49         "event.c",
     50         "evmap.c",
     51         "evthread.c",
     52         "evutil.c",
     53         "evutil_rand.c",
     54         "evutil_time.c",
     55         "listener.c",
     56         "log.c",
     57         "signal.c",
     58         "strlcpy.c",
     59 
     60         // extra
     61         "evdns.c",
     62         "event_tagging.c",
     63         "evrpc.c",
     64         "http.c",
     65 
     66         "poll.c",
     67         "select.c",
     68     ],
     69 
     70     target: {
     71         linux: {
     72             srcs: ["epoll.c"],
     73         },
     74         linux_bionic: {
     75             enabled: true,
     76         },
     77         darwin: {
     78             srcs: ["kqueue.c"],
     79         },
     80     },
     81 }
     82