| OLD | NEW |
| (Empty) |
| 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 | |
| 5 import("//build/config/nacl/config.gni") | |
| 6 | |
| 7 source_set("libevent") { | |
| 8 sources = [ | |
| 9 "buffer.c", | |
| 10 "evbuffer.c", | |
| 11 "evdns.c", | |
| 12 "event.c", | |
| 13 "event_tagging.c", | |
| 14 "evrpc.c", | |
| 15 "evutil.c", | |
| 16 "http.c", | |
| 17 "log.c", | |
| 18 "poll.c", | |
| 19 "select.c", | |
| 20 "signal.c", | |
| 21 "strlcpy.c", | |
| 22 ] | |
| 23 | |
| 24 defines = [ "HAVE_CONFIG_H" ] | |
| 25 | |
| 26 if (is_mac || is_ios) { | |
| 27 sources += [ "kqueue.c" ] | |
| 28 include_dirs = [ "mac" ] | |
| 29 } else if (is_linux) { | |
| 30 sources += [ "epoll.c" ] | |
| 31 include_dirs = [ "linux" ] | |
| 32 libs = [ "rt" ] | |
| 33 } else if (is_android) { | |
| 34 sources += [ "epoll.c" ] | |
| 35 include_dirs = [ "android" ] | |
| 36 } else if (is_nacl_nonsfi) { | |
| 37 sources -= [ | |
| 38 "evdns.c", | |
| 39 "event_tagging.c", | |
| 40 "evrpc.c", | |
| 41 "http.c", | |
| 42 "select.c", | |
| 43 "signal.c", | |
| 44 ] | |
| 45 sources += [ | |
| 46 "nacl_nonsfi/config.h", | |
| 47 "nacl_nonsfi/event-config.h", | |
| 48 "nacl_nonsfi/random.c", | |
| 49 "nacl_nonsfi/signal_stub.c", | |
| 50 ] | |
| 51 include_dirs = [ "nacl_nonsfi" ] | |
| 52 } | |
| 53 | |
| 54 configs -= [ "//build/config/compiler:chromium_code" ] | |
| 55 configs += [ "//build/config/compiler:no_chromium_code" ] | |
| 56 } | |
| OLD | NEW |