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

Unified Diff: third_party/libevent/BUILD.gn

Issue 275703003: Make GN Android build link executables (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 7 months 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 side-by-side diff with in-line comments
Download patch
Index: third_party/libevent/BUILD.gn
diff --git a/third_party/libevent/BUILD.gn b/third_party/libevent/BUILD.gn
index 0e3064a9b84484b7848ee9d8af6c7ed3c9140965..648dae31ff6f6a774305eb2cc3396fdca886ab3e 100644
--- a/third_party/libevent/BUILD.gn
+++ b/third_party/libevent/BUILD.gn
@@ -5,8 +5,6 @@
static_library("libevent") {
sources = [
"buffer.c",
- "epoll.c",
- "epoll_sub.c",
"evbuffer.c",
"evdns.c",
"event.c",
@@ -14,7 +12,6 @@ static_library("libevent") {
"evrpc.c",
"evutil.c",
"http.c",
- "kqueue.c",
"log.c",
"poll.c",
"select.c",
@@ -24,20 +21,16 @@ static_library("libevent") {
defines = [ "HAVE_CONFIG_H" ]
- if (is_linux) {
- libs = [ "rt" ]
- } else {
- sources -= [ "epoll.c", "epoll_sub.c" ]
- }
-
- if (is_mac) {
+ if (is_mac || is_ios) {
+ sources += [ "kqueue.c" ]
include_dirs = [ "mac" ]
} else if (is_linux) {
+ sources += [ "epoll.c" ]
include_dirs = [ "linux" ]
- sources -= [ "kqueue.c" ]
+ libs = [ "rt" ]
} else if (is_android) {
+ sources += [ "epoll.c" ]
include_dirs = [ "android" ]
- sources -= [ "kqueue.c" ]
}
configs -= [ "//build/config/compiler:chromium_code" ]

Powered by Google App Engine
This is Rietveld 408576698