OLD | NEW |
1 # Copyright (c) 2013 The Chromium Authors. All rights reserved. | 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 | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 | 4 |
5 import("//build/config/nacl/config.gni") | 5 import("//build/config/nacl/config.gni") |
6 | 6 |
7 source_set("libevent") { | 7 source_set("libevent") { |
8 sources = [ | 8 sources = [ |
9 "buffer.c", | 9 "buffer.c", |
10 "evbuffer.c", | 10 "evbuffer.c", |
(...skipping 11 matching lines...) Expand all Loading... |
22 ] | 22 ] |
23 | 23 |
24 defines = [ "HAVE_CONFIG_H" ] | 24 defines = [ "HAVE_CONFIG_H" ] |
25 | 25 |
26 if (is_mac || is_ios) { | 26 if (is_mac || is_ios) { |
27 sources += [ "kqueue.c" ] | 27 sources += [ "kqueue.c" ] |
28 include_dirs = [ "mac" ] | 28 include_dirs = [ "mac" ] |
29 } else if (is_linux) { | 29 } else if (is_linux) { |
30 sources += [ "epoll.c" ] | 30 sources += [ "epoll.c" ] |
31 include_dirs = [ "linux" ] | 31 include_dirs = [ "linux" ] |
32 libs = [ "rt" ] | |
33 } else if (is_android) { | 32 } else if (is_android) { |
34 sources += [ "epoll.c" ] | 33 sources += [ "epoll.c" ] |
35 include_dirs = [ "android" ] | 34 include_dirs = [ "android" ] |
36 } else if (is_nacl_nonsfi) { | 35 } else if (is_nacl_nonsfi) { |
37 sources -= [ | 36 sources -= [ |
38 "evdns.c", | 37 "evdns.c", |
39 "event_tagging.c", | 38 "event_tagging.c", |
40 "evrpc.c", | 39 "evrpc.c", |
41 "http.c", | 40 "http.c", |
42 "select.c", | 41 "select.c", |
43 "signal.c", | 42 "signal.c", |
44 ] | 43 ] |
45 sources += [ | 44 sources += [ |
46 "nacl_nonsfi/config.h", | 45 "nacl_nonsfi/config.h", |
47 "nacl_nonsfi/event-config.h", | 46 "nacl_nonsfi/event-config.h", |
48 "nacl_nonsfi/random.c", | 47 "nacl_nonsfi/random.c", |
49 "nacl_nonsfi/signal_stub.c", | 48 "nacl_nonsfi/signal_stub.c", |
50 ] | 49 ] |
51 include_dirs = [ "nacl_nonsfi" ] | 50 include_dirs = [ "nacl_nonsfi" ] |
52 } | 51 } |
53 | 52 |
54 configs -= [ "//build/config/compiler:chromium_code" ] | 53 configs -= [ "//build/config/compiler:chromium_code" ] |
55 configs += [ "//build/config/compiler:no_chromium_code" ] | 54 configs += [ "//build/config/compiler:no_chromium_code" ] |
56 } | 55 } |
OLD | NEW |