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

Side by Side Diff: webkit/build/JavaScriptCore/SConscript

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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « webkit/SConscript.port ('k') | webkit/build/V8Bindings/SConscript » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. 1 # Copyright (c) 2006-2008 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('env') 5 Import('env')
6 6
7 env = env.Clone() 7 env = env.Clone()
8 8
9 9
10 cygwin = env.Dir('$CHROME_SRC_DIR/third_party/cygwin/bin') 10 cygwin = env.Dir('$CHROME_SRC_DIR/third_party/cygwin/bin')
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
113 env.Append( 113 env.Append(
114 CPPDEFINES = [ 114 CPPDEFINES = [
115 '__STD_C', 115 '__STD_C',
116 'U_STATIC_IMPLEMENTATION', 116 'U_STATIC_IMPLEMENTATION',
117 ], 117 ],
118 CPPPATH = [ 118 CPPPATH = [
119 '$WTF_DIR/unicode', 119 '$WTF_DIR/unicode',
120 ], 120 ],
121 ) 121 )
122 122
123 if env['PLATFORM'] == 'win32': 123 if env.Bit('windows'):
124 env.Append( 124 env.Append(
125 CPPPATH = [ 125 CPPPATH = [
126 # Windows workarounds to not having pthread.h and sched.h 126 # Windows workarounds to not having pthread.h and sched.h
127 '$WEBKIT_DIR/build/JavaScriptCore', 127 '$WEBKIT_DIR/build/JavaScriptCore',
128 # Windows workarounds to not having stdint.h 128 # Windows workarounds to not having stdint.h
129 '$JAVASCRIPTCORE_DIR/os-win32', 129 '$JAVASCRIPTCORE_DIR/os-win32',
130 ], 130 ],
131 CPPDEFINES = [ 131 CPPDEFINES = [
132 'CRASH=__debugbreak', 132 'CRASH=__debugbreak',
133 ], 133 ],
(...skipping 16 matching lines...) Expand all
150 '$WTF_DIR/dtoa.cpp', 150 '$WTF_DIR/dtoa.cpp',
151 '$WTF_DIR/FastMalloc.cpp', 151 '$WTF_DIR/FastMalloc.cpp',
152 '$WTF_DIR/HashTable.cpp', 152 '$WTF_DIR/HashTable.cpp',
153 '$WTF_DIR/MainThread.cpp', 153 '$WTF_DIR/MainThread.cpp',
154 '$WTF_DIR/RefCountedLeakCounter.cpp', 154 '$WTF_DIR/RefCountedLeakCounter.cpp',
155 '$WTF_DIR/TCSystemAlloc.cpp', 155 '$WTF_DIR/TCSystemAlloc.cpp',
156 '$WTF_DIR/unicode/UTF8.cpp', 156 '$WTF_DIR/unicode/UTF8.cpp',
157 '$WTF_DIR/unicode/icu/CollatorICU.cpp', 157 '$WTF_DIR/unicode/icu/CollatorICU.cpp',
158 ] 158 ]
159 159
160 if env['PLATFORM'] == 'win32': 160 if env.Bit('windows'):
161 wtf_inputs.extend([ 161 wtf_inputs.extend([
162 '$WTF_DIR/ThreadingWin.cpp', 162 '$WTF_DIR/ThreadingWin.cpp',
163 ]) 163 ])
164 elif env['PLATFORM'] == 'posix': 164 elif env.Bit('linux'):
165 wtf_inputs.extend([ 165 wtf_inputs.extend([
166 '$WTF_DIR/gtk/MainThreadGtk.cpp', 166 '$WTF_DIR/gtk/MainThreadGtk.cpp',
167 '$WTF_DIR/ThreadingPthreads.cpp', 167 '$WTF_DIR/ThreadingPthreads.cpp',
168 ]) 168 ])
169 169
170 # Re-add the include path for glib.h because it got lost when cloning the 170 # Re-add the include path for glib.h because it got lost when cloning the
171 # environment. 171 # environment.
172 env.ParseConfig('pkg-config --cflags --libs glib-2.0') 172 env.ParseConfig('pkg-config --cflags --libs glib-2.0')
173 173
174 174
175 env.ChromeStaticLibrary('WTF', wtf_inputs) 175 env.ChromeStaticLibrary('WTF', wtf_inputs)
OLDNEW
« no previous file with comments | « webkit/SConscript.port ('k') | webkit/build/V8Bindings/SConscript » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698