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

Unified Diff: third_party/libevent/libevent.scons

Issue 15051: Convert from using env['PLATFORM'] directly to using the more flexible... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 12 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/bzip2/bzip2.scons ('k') | third_party/libjpeg/libjpeg.scons » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/libevent/libevent.scons
===================================================================
--- third_party/libevent/libevent.scons (revision 7247)
+++ third_party/libevent/libevent.scons (working copy)
@@ -19,7 +19,7 @@
],
)
-if env['PLATFORM'] == 'darwin':
+if env.Bit('mac'):
env.Prepend(
CPPPATH = [
'$LIBEVENT_DIR/generated/',
@@ -31,7 +31,7 @@
'sh ${SOURCES[0]} ${SOURCES[1]}')
-if env['PLATFORM'] == 'posix':
+if env.Bit('linux'):
env.Prepend(
CPPPATH = [
'$LIBEVENT_DIR/linux/',
@@ -61,13 +61,13 @@
'strlcpy.c',
]
-if env['PLATFORM'] == 'posix':
+if env.Bit('linux'):
input_files.extend([
'epoll.c',
'epoll_sub.c',
])
-if env['PLATFORM'] == 'darwin':
+if env.Bit('mac'):
input_files.extend([
'kqueue.c',
])
« no previous file with comments | « third_party/bzip2/bzip2.scons ('k') | third_party/libjpeg/libjpeg.scons » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698