summaryrefslogtreecommitdiffstats
path: root/webkit/tools/test_shell/SConscript
diff options
context:
space:
mode:
Diffstat (limited to 'webkit/tools/test_shell/SConscript')
-rw-r--r--webkit/tools/test_shell/SConscript31
1 files changed, 20 insertions, 11 deletions
diff --git a/webkit/tools/test_shell/SConscript b/webkit/tools/test_shell/SConscript
index 7491670..86a5e07 100644
--- a/webkit/tools/test_shell/SConscript
+++ b/webkit/tools/test_shell/SConscript
@@ -92,31 +92,37 @@ elif env['PLATFORM'] in ('posix', 'darwin'):
]
)
-input_files = []
-
+input_files = [
+ 'test_navigation_controller.cc',
+ 'test_shell_switches.cc',
+]
if env['PLATFORM'] == 'win32':
# TODO(port): put portable files in above test_files declaration.
- input_files = [
+ input_files.extend([
'drag_delegate.cc',
'drop_delegate.cc',
'event_sending_controller.cc',
'layout_test_controller.cc',
'simple_resource_loader_bridge.cc',
- 'test_navigation_controller.cc',
'test_shell.cc',
- 'test_shell_switches.cc',
'test_shell_request_context.cc',
'test_webview_delegate.cc',
'text_input_controller.cc',
'webview_host.cc',
'webwidget_host.cc',
- ]
+ ])
+elif env['PLATFORM'] == 'posix':
+ input_files.extend([
+ 'test_shell_gtk.cc',
+ 'webwidget_host_gtk.cc',
+ ])
lib = env.ChromeStaticLibrary('test_shell', input_files)
resources = []
+exe_input_files = []
if env['PLATFORM'] == 'win32':
# TODO(port): figure out what to do with resources.
resources = [
@@ -125,18 +131,21 @@ if env['PLATFORM'] == 'win32':
'$WEBKIT_DIR/build/localized_strings/webkit_strings_en-US.res',
]
-
-if env['PLATFORM'] == 'win32':
exe_input_files = [
'test_shell_main.cc',
'$V8_DIR/snapshot-empty$OBJSUFFIX'
]
+elif env['PLATFORM'] == 'posix':
+ exe_input_files = [
+ 'test_shell_main_gtk.cc',
+ ]
- test_shell = env.ChromeProgram('test_shell', resources + exe_input_files)
+test_shell = env.ChromeProgram('test_shell', resources + exe_input_files)
- i = env.Install('$TARGET_ROOT', test_shell)
- env.Alias('webkit', i)
+i = env.Install('$TARGET_ROOT', test_shell)
+env.Alias('webkit', i)
+if env['PLATFORM'] == 'win32':
env.Depends(test_shell, '$V8_DIR/vc80.pdb')
test_files = [