• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (c) 2013 The Chromium Authors. All rights reserved.
2# Use of this source code is governed by a BSD-style license that can be
3# found in the LICENSE file.
4
5static_library("libevent") {
6  external = true
7  sources = [
8    "buffer.c",
9    "epoll.c",
10    "epoll_sub.c",
11    "evbuffer.c",
12    "evdns.c",
13    "event.c",
14    "event_tagging.c",
15    "evrpc.c",
16    "evutil.c",
17    "http.c",
18    "kqueue.c",
19    "log.c",
20    "poll.c",
21    "select.c",
22    "signal.c",
23    "strlcpy.c",
24  ]
25
26  defines = [ "HAVE_CONFIG_H" ]
27
28  if (is_linux) {
29    libs = [ "rt" ]
30  } else {
31    sources -= [ "epoll.c", "epoll_sub.c" ]
32  }
33
34  if (is_mac) {
35    include_dirs = [ "mac" ]
36  } else if (is_linux) {
37    include_dirs = [ "linux" ]
38    sources -= [ "kqueue.c" ]
39  }
40
41  configs -= "//build/config/compiler:chromium_code"
42  configs += "//build/config/compiler:no_chromium_code"
43}
44