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

Side by Side Diff: webkit/tools/test_shell/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/tools/npapi_layout_test_plugin/SConscript ('k') | no next file » | 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', 'env_res') 5 Import('env', 'env_res')
6 6
7 env = env.Clone() 7 env = env.Clone()
8 env_res = env_res.Clone() 8 env_res = env_res.Clone()
9 9
10 env.SConscript([ 10 env.SConscript([
11 '$BZIP2_DIR/using_bzip2.scons', 11 '$BZIP2_DIR/using_bzip2.scons',
12 '$LIBXML_DIR/using_libxml.scons', 12 '$LIBXML_DIR/using_libxml.scons',
13 '$CHROME_SRC_DIR/build/using_v8.scons', 13 '$CHROME_SRC_DIR/build/using_v8.scons',
14 ], {'env':env}) 14 ], {'env':env})
15 15
16 if env['PLATFORM'] == 'win32': 16 if env.Bit('windows'):
17 env_res.Append( 17 env_res.Append(
18 CPPPATH = [ 18 CPPPATH = [
19 '.', 19 '.',
20 '$CHROME_SRC_DIR', 20 '$CHROME_SRC_DIR',
21 '$NET_DIR', 21 '$NET_DIR',
22 ], 22 ],
23 RCFLAGS = [ 23 RCFLAGS = [
24 ['/l', '0x409'], 24 ['/l', '0x409'],
25 ], 25 ],
26 ) 26 )
(...skipping 24 matching lines...) Expand all
51 'libpng', 51 'libpng',
52 'libxslt', 52 'libxslt',
53 'modp_b64', 53 'modp_b64',
54 'zlib', 54 'zlib',
55 'sqlite', 55 'sqlite',
56 'JavaScriptCore_pcre', 56 'JavaScriptCore_pcre',
57 'default_plugin', 57 'default_plugin',
58 ], 58 ],
59 ) 59 )
60 60
61 if env['PLATFORM'] == 'win32': 61 if env.Bit('windows'):
62 # TODO(port): put portable libs in above declaration. 62 # TODO(port): put portable libs in above declaration.
63 env.Append( 63 env.Append(
64 LIBS = [ 64 LIBS = [
65 'activex_shim', 65 'activex_shim',
66 'breakpad_sender', 66 'breakpad_sender',
67 ] 67 ]
68 ) 68 )
69 69
70 if env['PLATFORM'] == 'win32': 70 if env.Bit('windows'):
71 env.Append( 71 env.Append(
72 LIBS = [ 72 LIBS = [
73 'comctl32.lib', 73 'comctl32.lib',
74 'rpcrt4.lib', 74 'rpcrt4.lib',
75 'shlwapi.lib', 75 'shlwapi.lib',
76 'winmm.lib', 76 'winmm.lib',
77 'Urlmon', 77 'Urlmon',
78 ], 78 ],
79 79
80 LINKFLAGS = [ 80 LINKFLAGS = [
81 '/DELAYLOAD:"ws2_32.dll"', 81 '/DELAYLOAD:"ws2_32.dll"',
82 '/DELAYLOAD:"dwmapi.dll"', 82 '/DELAYLOAD:"dwmapi.dll"',
83 '/DELAYLOAD:"uxtheme.dll"', 83 '/DELAYLOAD:"uxtheme.dll"',
84 '/FIXED:No', 84 '/FIXED:No',
85 '/SUBSYSTEM:CONSOLE', 85 '/SUBSYSTEM:CONSOLE',
86 '/MACHINE:X86', 86 '/MACHINE:X86',
87 '/safeseh', 87 '/safeseh',
88 '/dynamicbase', 88 '/dynamicbase',
89 '/ignore:4199', 89 '/ignore:4199',
90 '/nxcompat', 90 '/nxcompat',
91 ], 91 ],
92 ) 92 )
93 elif env['PLATFORM'] in ('posix', 'darwin'): 93 elif env.Bit('posix'):
94 env.Append( 94 env.Append(
95 LIBS = [ 95 LIBS = [
96 'event', 96 'event',
97 ] 97 ]
98 ) 98 )
99 99
100 if env['PLATFORM'] == 'darwin': 100 if env.Bit('mac'):
101 env.Append( 101 env.Append(
102 CPPPATH = [ 102 CPPPATH = [
103 '$THIRD_PARTY_DIR/WebKit/WebKit/mac/WebCoreSupport', 103 '$THIRD_PARTY_DIR/WebKit/WebKit/mac/WebCoreSupport',
104 ], 104 ],
105 ) 105 )
106 106
107 input_files = [ 107 input_files = [
108 'event_sending_controller.cc', 108 'event_sending_controller.cc',
109 'layout_test_controller.cc', 109 'layout_test_controller.cc',
110 'simple_resource_loader_bridge.cc', 110 'simple_resource_loader_bridge.cc',
111 'test_navigation_controller.cc', 111 'test_navigation_controller.cc',
112 'test_shell_request_context.cc', 112 'test_shell_request_context.cc',
113 'test_shell_switches.cc', 113 'test_shell_switches.cc',
114 'test_shell.cc', 114 'test_shell.cc',
115 'test_webview_delegate.cc', 115 'test_webview_delegate.cc',
116 'text_input_controller.cc', 116 'text_input_controller.cc',
117 ] 117 ]
118 if env['PLATFORM'] == 'win32': 118 if env.Bit('windows'):
119 # TODO(port): Consider porting drag_delegate.cc and drop_delecate.cc. 119 # TODO(port): Consider porting drag_delegate.cc and drop_delecate.cc.
120 input_files.extend([ 120 input_files.extend([
121 'drag_delegate.cc', 121 'drag_delegate.cc',
122 'drop_delegate.cc', 122 'drop_delegate.cc',
123 'test_shell_win.cc', 123 'test_shell_win.cc',
124 'test_webview_delegate_win.cc', 124 'test_webview_delegate_win.cc',
125 'webview_host_win.cc', 125 'webview_host_win.cc',
126 'webwidget_host_win.cc', 126 'webwidget_host_win.cc',
127 ]) 127 ])
128 elif env['PLATFORM'] == 'posix': 128 elif env.Bit('linux'):
129 input_files.extend([ 129 input_files.extend([
130 'webview_host_gtk.cc', 130 'webview_host_gtk.cc',
131 'webwidget_host_gtk.cc', 131 'webwidget_host_gtk.cc',
132 'test_shell_gtk.cc', 132 'test_shell_gtk.cc',
133 'test_webview_delegate_gtk.cc', 133 'test_webview_delegate_gtk.cc',
134 ]) 134 ])
135 135
136 lib = env.ChromeStaticLibrary('test_shell', input_files) 136 lib = env.ChromeStaticLibrary('test_shell', input_files)
137 137
138 resources = [] 138 resources = []
139 exe_input_files = [ 139 exe_input_files = [
140 'test_shell_main.cc', 140 'test_shell_main.cc',
141 ] 141 ]
142 142
143 if env['PLATFORM'] == 'win32': 143 if env.Bit('windows'):
144 # TODO(port): figure out what to do with resources. 144 # TODO(port): figure out what to do with resources.
145 resources = [ 145 resources = [
146 env_res.RES('resources/test_shell.rc'), 146 env_res.RES('resources/test_shell.rc'),
147 '$NET_DIR/net_resources.res', 147 '$NET_DIR/net_resources.res',
148 '$TARGET_ROOT/grit_derived_sources/webkit_strings_en-US.res', 148 '$TARGET_ROOT/grit_derived_sources/webkit_strings_en-US.res',
149 ] 149 ]
150 150
151 exe_input_files += [ 151 exe_input_files += [
152 '$V8_DIR/snapshot-empty$OBJSUFFIX' 152 '$V8_DIR/snapshot-empty$OBJSUFFIX'
153 ] 153 ]
154 154
155 test_shell = env.ChromeProgram('test_shell', resources + exe_input_files) 155 test_shell = env.ChromeProgram('test_shell', resources + exe_input_files)
156 156
157 i = env.Install('$TARGET_ROOT', test_shell) 157 i = env.Install('$TARGET_ROOT', test_shell)
158 env.Alias('webkit', i) 158 env.Alias('webkit', i)
159 159
160 if env['PLATFORM'] == 'win32': 160 if env.Bit('windows'):
161 env.Depends(test_shell, '$V8_DIR/vc80.pdb') 161 env.Depends(test_shell, '$V8_DIR/vc80.pdb')
162 162
163 test_files = [ 163 test_files = [
164 'image_decoder_unittest.cc', 164 'image_decoder_unittest.cc',
165 'keyboard_unittest.cc', 165 'keyboard_unittest.cc',
166 'layout_test_controller_unittest.cc', 166 'layout_test_controller_unittest.cc',
167 'node_leak_test.cc', 167 'node_leak_test.cc',
168 'run_all_tests.cc', 168 'run_all_tests.cc',
169 'test_shell_test.cc', 169 'test_shell_test.cc',
170 'text_input_controller_unittest.cc', 170 'text_input_controller_unittest.cc',
(...skipping 11 matching lines...) Expand all
182 '$WEBKIT_DIR/glue/regular_expression_unittest.cc', 182 '$WEBKIT_DIR/glue/regular_expression_unittest.cc',
183 '$WEBKIT_DIR/glue/resource_fetcher_unittest.cc', 183 '$WEBKIT_DIR/glue/resource_fetcher_unittest.cc',
184 '$WEBKIT_DIR/glue/webframe_unittest.cc', 184 '$WEBKIT_DIR/glue/webframe_unittest.cc',
185 '$WEBKIT_DIR/port/platform/GKURL_unittest.cpp', 185 '$WEBKIT_DIR/port/platform/GKURL_unittest.cpp',
186 '$WEBKIT_DIR/port/platform/image-decoders/bmp/BMPImageDecoder_unittest.cpp', 186 '$WEBKIT_DIR/port/platform/image-decoders/bmp/BMPImageDecoder_unittest.cpp',
187 '$WEBKIT_DIR/port/platform/image-decoders/ico/ICOImageDecoder_unittest.cpp', 187 '$WEBKIT_DIR/port/platform/image-decoders/ico/ICOImageDecoder_unittest.cpp',
188 '$WEBKIT_DIR/port/platform/image-decoders/xbm/XBMImageDecoder_unittest.cpp', 188 '$WEBKIT_DIR/port/platform/image-decoders/xbm/XBMImageDecoder_unittest.cpp',
189 '$V8_DIR/snapshot-empty$OBJSUFFIX', 189 '$V8_DIR/snapshot-empty$OBJSUFFIX',
190 ] 190 ]
191 191
192 if env['PLATFORM'] == 'win32': 192 if env.Bit('windows'):
193 # TODO(port): put portable files in above test_files declaration. 193 # TODO(port): put portable files in above test_files declaration.
194 test_files.extend([ 194 test_files.extend([
195 'plugin_tests.cc', 195 'plugin_tests.cc',
196 # Commented out until a regression is fixed and this file is restored. 196 # Commented out until a regression is fixed and this file is restored.
197 #'$WEBKIT_DIR/glue/stringimpl_unittest.cc', 197 #'$WEBKIT_DIR/glue/stringimpl_unittest.cc',
198 '$WEBKIT_DIR/glue/webplugin_impl_unittest.cc', 198 '$WEBKIT_DIR/glue/webplugin_impl_unittest.cc',
199 '$WEBKIT_DIR/port/platform/graphics/chromium/UniscribeHelper_unittest.cpp' , 199 '$WEBKIT_DIR/port/platform/graphics/chromium/UniscribeHelper_unittest.cpp' ,
200 ]) 200 ])
201 201
202 test_shell_tests = env.ChromeTestProgram('test_shell_tests', 202 test_shell_tests = env.ChromeTestProgram('test_shell_tests',
203 resources + test_files) 203 resources + test_files)
204 i = env.Install('$TARGET_ROOT', test_shell_tests) 204 i = env.Install('$TARGET_ROOT', test_shell_tests)
205 env.Alias('webkit', i) 205 env.Alias('webkit', i)
OLDNEW
« no previous file with comments | « webkit/tools/npapi_layout_test_plugin/SConscript ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698