Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(234)

Side by Side Diff: third_party/libevent/BUILD.gn

Issue 1531573008: move libevent into base (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix shim path Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « build/linux/unbundle/replace_gyp_files.py ('k') | third_party/libevent/ChangeLog » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(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 }
OLDNEW
« no previous file with comments | « build/linux/unbundle/replace_gyp_files.py ('k') | third_party/libevent/ChangeLog » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698