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