summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsgk@google.com <sgk@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-11-14 17:16:46 +0000
committersgk@google.com <sgk@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-11-14 17:16:46 +0000
commitda6654b0465478b0549e593c1efb45bd44756965 (patch)
tree487788278214089228f23098346c1d02b5acfec4
parent1fbb43878f7f68c1770a12847ecd46c0f1413b3e (diff)
downloadchromium_src-da6654b0465478b0549e593c1efb45bd44756965.zip
chromium_src-da6654b0465478b0549e593c1efb45bd44756965.tar.gz
chromium_src-da6654b0465478b0549e593c1efb45bd44756965.tar.bz2
Next round of SCons changes:
* Add 'gdm_fp' to the $LIBS setting in base\using_base.scons (to be removed when that library moves into base\third_party). * Have the grit Scanner search the Repository() copy of the source file (necessary now that $TARGET_ROOT has changed). * Change all the SConscript files underneath chrome\test and chrome\tools to *.scons files, including updating their contents with the current patterns. * Add dependencies of the local_settings_*.res files on the corresponding google_chrome_string_*.rc files, so they get generated properly. * Add generation of the chrome_exe.res resource file. * Comment out some unnecessary .lib settings in the base construction environment. Review URL: http://codereview.chromium.org/10745 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@5480 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r--base/using_base.scons2
-rw-r--r--chrome/SConscript57
-rw-r--r--chrome/app/resources/SConscript5
-rw-r--r--chrome/test/activex_test_control/SConscript48
-rw-r--r--chrome/test/activex_test_control/activex_test_control.scons47
-rw-r--r--chrome/test/automation/automation.scons (renamed from chrome/test/automation/SConscript)9
-rw-r--r--chrome/test/chrome_plugin/test_chrome_plugin.scons (renamed from chrome/test/chrome_plugin/SConscript)26
-rw-r--r--chrome/test/memory_test/memory_test.scons66
-rw-r--r--chrome/test/mini_installer_test/SConscript64
-rw-r--r--chrome/test/mini_installer_test/mini_installer_test.scons68
-rw-r--r--chrome/test/page_cycler/SConscript80
-rw-r--r--chrome/test/page_cycler/page_cycler_tests.scons72
-rw-r--r--chrome/test/plugin/SConscript84
-rw-r--r--chrome/test/plugin/plugin_tests.scons75
-rw-r--r--chrome/test/reliability/SConscript76
-rw-r--r--chrome/test/reliability/reliability_tests.scons74
-rw-r--r--chrome/test/security_tests/SConscript46
-rw-r--r--chrome/test/security_tests/security_tests.scons44
-rw-r--r--chrome/test/selenium/SConscript76
-rw-r--r--chrome/test/selenium/selenium_tests.scons (renamed from chrome/test/memory_test/SConscript)47
-rw-r--r--chrome/test/startup/SConscript77
-rw-r--r--chrome/test/startup/startup_tests.scons71
-rw-r--r--chrome/test/tab_switching/SConscript79
-rw-r--r--chrome/test/tab_switching/tab_switching_test.scons74
-rw-r--r--chrome/tools/crash_service/SConscript54
-rw-r--r--chrome/tools/crash_service/crash_service.scons51
-rw-r--r--chrome/tools/perf/flush_cache/SConscript46
-rw-r--r--chrome/tools/perf/flush_cache/flush_cache.scons44
-rw-r--r--chrome/tools/test/image_diff/image_diff.scons (renamed from chrome/tools/test/image_diff/SConscript)38
-rw-r--r--tools/grit/grit/scons.py6
30 files changed, 784 insertions, 822 deletions
diff --git a/base/using_base.scons b/base/using_base.scons
index f3d58b4..08ab6c1 100644
--- a/base/using_base.scons
+++ b/base/using_base.scons
@@ -11,5 +11,7 @@ Import("env")
env.Append(
LIBS = [
'base',
+ # TODO(tc): remove when dmg_fp gets moved to base/third_party
+ 'dmg_fp',
],
)
diff --git a/chrome/SConscript b/chrome/SConscript
index e87e38d..8e1e19d 100644
--- a/chrome/SConscript
+++ b/chrome/SConscript
@@ -40,6 +40,7 @@ if env_res['PLATFORM'] == 'win32':
)
browser_res = env_res.RES('browser/browser_resources.rc')
+ chrome_exe_res = env_res.RES('app/chrome_exe.rc'),
chrome_dll_res = env_res.RES('app/chrome_dll.rc')
env_res.Depends(chrome_dll_res, 'installer/util/installer_util_strings.rc')
common_res = env_res.RES('common/common_resources.rc')
@@ -99,7 +100,8 @@ env_dll.Append(
LIBS = [
'base',
'base_gfx',
- 'breakpad_handler',
+ #'breakpad_handler',
+ 'dmg_fp',
'googleurl',
'net',
'skia',
@@ -126,7 +128,7 @@ env_dll.Append(
'debugger',
'common',
'util',
- 'jscre',
+ #'jscre',
'plugin',
'renderer',
'hunspell',
@@ -134,7 +136,9 @@ env_dll.Append(
#'libevent',
'sqlite',
'views',
- 'v8',
+ #'v8',
+ 'v8_g',
+ 'v8_snapshot',
],
)
@@ -144,12 +148,12 @@ if env_dll['PLATFORM'] == 'win32':
# TODO(sgk): to be ported to Mac and Linux
'sdch',
- 'comctl32.lib',
- 'dwmapi.lib',
- 'rpcrt4.lib',
- 'shlwapi.lib',
- 'winmm.lib',
- 'wsock32.lib',
+ #'comctl32.lib',
+ #'dwmapi.lib',
+ #'rpcrt4.lib',
+ #'shlwapi.lib',
+ #'winmm.lib',
+ #'wsock32.lib',
],
LINKFLAGS = [
'/INCREMENTAL',
@@ -180,6 +184,7 @@ if env_dll['PLATFORM'] == 'win32':
'/safeseh',
'/dynamicbase',
'/ignore:4199',
+ '/ignore:4221',
'/nxcompat',
'/PDB:${TARGETS[1]}',
@@ -261,6 +266,8 @@ if env_dll['PLATFORM'] == 'win32':
'app/chrome_dll_version.rc.version',
)
+ # TODO(sgk): explicit dependencies => scanned implicit dependencies
+ Depends(chrome_exe_res, chrome_exe_version_rc)
Depends(chrome_dll_res, chrome_dll_version_rc)
chrome_exe_version_res = env_res.RES(chrome_exe_version_rc)
@@ -316,7 +323,7 @@ if env['PLATFORM'] == 'win32':
chrome_exe = env_exe.ChromeProgram(
'chrome',
[
- env_res.RES('app/chrome_exe.rc'),
+ chrome_exe_res,
'app/breakpad.cc',
'app/chrome_exe_main.cc',
'app/client_util.cc',
@@ -390,8 +397,8 @@ if env_flat['PLATFORM'] == 'win32':
CPPPATH=['..'] + env['CPPPATH'])
sconscript_files = [
- 'test/chrome_plugin/SConscript',
- 'tools/test/image_diff/SConscript',
+ 'test/chrome_plugin/test_chrome_plugin.scons',
+ 'tools/test/image_diff/image_diff.scons',
]
if not env.WantSystemLib('hunspell'):
@@ -408,19 +415,19 @@ if env['PLATFORM'] == 'win32':
'installer/mini_installer/SConscript',
'installer/setup/SConscript',
'installer/util/SConscript',
- 'test/activex_test_control/SConscript',
- 'test/automation/SConscript',
- 'test/memory_test/SConscript',
- 'test/mini_installer_test/SConscript',
- 'test/page_cycler/SConscript',
- 'test/plugin/SConscript',
- 'test/reliability/SConscript',
- 'test/security_tests/SConscript',
- 'test/selenium/SConscript',
- 'test/startup/SConscript',
- 'test/tab_switching/SConscript',
- 'tools/crash_service/SConscript',
- 'tools/perf/flush_cache/SConscript',
+ 'test/activex_test_control/activex_test_control.scons',
+ 'test/automation/automation.scons',
+ 'test/memory_test/memory_test.scons',
+ 'test/mini_installer_test/mini_installer_test.scons',
+ 'test/page_cycler/page_cycler_tests.scons',
+ 'test/plugin/plugin_tests.scons',
+ 'test/reliability/reliability_tests.scons',
+ 'test/security_tests/security_tests.scons',
+ 'test/selenium/selenium_tests.scons',
+ 'test/startup/startup_tests.scons',
+ 'test/tab_switching/tab_switching_test.scons',
+ 'tools/crash_service/crash_service.scons',
+ 'tools/perf/flush_cache/flush_cache.scons',
'views/SConscript',
])
diff --git a/chrome/app/resources/SConscript b/chrome/app/resources/SConscript
index cfbf1a0..b9ed420 100644
--- a/chrome/app/resources/SConscript
+++ b/chrome/app/resources/SConscript
@@ -66,7 +66,10 @@ rc_files = [
resources = []
for rc in rc_files:
- resources.extend(env_res.RES(rc))
+ res = env_res.RES(rc)
+ resources.extend(res)
+ # TODO(sgk): find out why this implicit dependency isn't discovered
+ env.Depends(res, rc.replace('locale_settings', 'google_chrome_strings'))
env.Append(
diff --git a/chrome/test/activex_test_control/SConscript b/chrome/test/activex_test_control/SConscript
deleted file mode 100644
index a5426f5..0000000
--- a/chrome/test/activex_test_control/SConscript
+++ /dev/null
@@ -1,48 +0,0 @@
-# Copyright (c) 2006-2008 The Chromium Authors. All rights reserved.
-# Use of this source code is governed by a BSD-style license that can be
-# found in the LICENSE file.
-
-Import('env')
-
-env = env.Clone()
-
-
-env.Prepend(
- CPPPATH = [
- '.',
- '$CHROME_SRC_DIR',
- ],
- LINKFLAGS = [
- '/INCREMENTAL',
-
- '/MANIFEST',
- '/DELAYLOAD:"dwmapi.dll"',
- '/DELAYLOAD:"uxtheme.dll"',
- '/MACHINE:X86',
- '/FIXED:No',
-
- '/safeseh',
- '/dynamicbase',
- '/ignore:4199',
- '/nxcompat',
-
- '/DEBUG',
- ],
- LIBS = [
- 'comsuppw.lib',
- ],
-)
-
-env.TypeLibrary('activex_test_control.idl')
-
-input_files = [
- 'activex_test_control.cc',
- 'activex_test_control.def',
- 'chrome_test_control.cc',
-]
-
-dll = env.ChromeSharedLibrary('activex_test_control', input_files)
-
-i = env.Install('$TARGET_ROOT', dll)
-env.Alias('chrome', i)
-
diff --git a/chrome/test/activex_test_control/activex_test_control.scons b/chrome/test/activex_test_control/activex_test_control.scons
new file mode 100644
index 0000000..39beb08
--- /dev/null
+++ b/chrome/test/activex_test_control/activex_test_control.scons
@@ -0,0 +1,47 @@
+# Copyright (c) 2006-2008 The Chromium Authors. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+Import('env')
+
+env = env.Clone()
+
+env.Prepend(
+ CPPPATH = [
+ '.',
+ '$CHROME_SRC_DIR',
+ ],
+)
+
+if env['PLATFORM'] == 'win32':
+ env.Prepend(
+ LINKFLAGS = [
+ '/INCREMENTAL',
+
+ '/MANIFEST',
+ '/DELAYLOAD:"dwmapi.dll"',
+ '/DELAYLOAD:"uxtheme.dll"',
+ '/MACHINE:X86',
+ '/FIXED:No',
+
+ '/safeseh',
+ '/dynamicbase',
+ '/ignore:4199',
+ '/nxcompat',
+
+ '/DEBUG',
+ ],
+ LIBS = [
+ 'comsuppw.lib',
+ ],
+ )
+
+env.TypeLibrary('activex_test_control.idl')
+
+input_files = [
+ 'activex_test_control.cc',
+ 'activex_test_control.def',
+ 'chrome_test_control.cc',
+]
+
+env.ChromeSharedLibrary('activex_test_control', input_files)
diff --git a/chrome/test/automation/SConscript b/chrome/test/automation/automation.scons
index 11cead9..198f8d0 100644
--- a/chrome/test/automation/SConscript
+++ b/chrome/test/automation/automation.scons
@@ -6,13 +6,12 @@ Import('env')
env = env.Clone()
+env.ApplySConscript([
+ '$SKIA_DIR/using_skia.scons',
+])
+
env.Prepend(
CPPPATH = [
- #'../../..',
- #'$GTEST_DIR/include',
- '$SKIA_DIR/include',
- '$SKIA_DIR/include/corecg',
- '$SKIA_DIR/platform',
'$CHROME_SRC_DIR',
],
)
diff --git a/chrome/test/chrome_plugin/SConscript b/chrome/test/chrome_plugin/test_chrome_plugin.scons
index 8e6ed50..e2934cd 100644
--- a/chrome/test/chrome_plugin/SConscript
+++ b/chrome/test/chrome_plugin/test_chrome_plugin.scons
@@ -6,23 +6,18 @@ Import('env')
env = env.Clone()
+env.ApplySConscript([
+ '$BASE_DIR/using_base.scons',
+ '$CHROME_SRC_DIR/build/using_googleurl.scons',
+ '$ICU38_DIR/using_icu38.scons',
+])
env.Prepend(
CPPPATH = [
'$CHROME_SRC_DIR',
],
- LIBS = [
- 'googleurl',
- env['ICU_LIBS'], # TODO(sgk): '$ICU_LIBS' when scons is fixed
- 'base',
- ],
)
-input_files = [
- 'test_chrome_plugin.cc',
-]
-
-
if env['PLATFORM'] == 'win32':
env.Prepend(
LINKFLAGS = [
@@ -46,12 +41,13 @@ if env['PLATFORM'] == 'win32':
],
)
+input_files = [
+ 'test_chrome_plugin.cc',
+]
+
+if env['PLATFORM'] == 'win32':
input_files.extend([
'test_chrome_plugin.def',
])
-dll = env.ChromeSharedLibrary('test_chrome_plugin', input_files)
-
-i = env.Install('$TARGET_ROOT', dll)
-env.Alias('chrome', i)
-
+env.ChromeSharedLibrary('test_chrome_plugin', input_files)
diff --git a/chrome/test/memory_test/memory_test.scons b/chrome/test/memory_test/memory_test.scons
new file mode 100644
index 0000000..f3b350d
--- /dev/null
+++ b/chrome/test/memory_test/memory_test.scons
@@ -0,0 +1,66 @@
+# Copyright (c) 2006-2008 The Chromium Authors. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+Import('env')
+
+env = env.Clone()
+
+env.ApplySConscript([
+ '$BASE_DIR/using_base.scons',
+ '$BASE_DIR/gfx/using_base_gfx.scons',
+ '$CHROME_SRC_DIR/build/using_googleurl.scons',
+ '$GTEST_DIR/../using_gtest.scons',
+ '$ICU38_DIR/using_icu38.scons',
+ '$LIBPNG_DIR/using_libpng.scons',
+ '$MODP_B64_DIR/using_modp_b64.scons',
+ '$NET_DIR/using_net.scons',
+ '$SKIA_DIR/using_skia.scons',
+ '$ZLIB_DIR/using_zlib.scons',
+])
+
+env.Prepend(
+ CPPDEFINES = [
+ 'UI_TEST',
+ 'UNIT_TEST',
+ ],
+ CPPPATH = [
+ '$CHROME_SRC_DIR',
+ ],
+ LIBS = [
+ 'automation',
+ 'browser',
+ 'browser_views',
+ 'common',
+ ],
+)
+
+if env['PLATFORM'] == 'win32':
+ env.Prepend(
+ LINKFLAGS = [
+ '/INCREMENTAL',
+ '/DEBUG',
+
+ '/DELAYLOAD:"dwmapi.dll"',
+ '/DELAYLOAD:"uxtheme.dll"',
+
+ '/MACHINE:X86',
+ '/FIXED:No',
+
+ '/safeseh',
+ '/dynamicbase',
+ '/ignore:4199',
+ '/nxcompat',
+ ],
+ )
+
+input_files = [
+ '$CHROME_DIR/test/perf/mem_usage$OBJSUFFIX',
+ '$CHROME_DIR/test/ui/run_all_unittests$OBJSUFFIX',
+ '$CHROME_DIR/test/ui/ui_test$OBJSUFFIX',
+ '$CHROME_DIR/test/ui/ui_test_suite$OBJSUFFIX',
+ '$CHROME_DIR/test/test_file_util$OBJSUFFIX',
+ 'memory_test.cc',
+]
+
+env.ChromeTestProgram('memory_test', input_files)
diff --git a/chrome/test/mini_installer_test/SConscript b/chrome/test/mini_installer_test/SConscript
deleted file mode 100644
index 8664b97..0000000
--- a/chrome/test/mini_installer_test/SConscript
+++ /dev/null
@@ -1,64 +0,0 @@
-# Copyright (c) 2006-2008 The Chromium Authors. All rights reserved.
-# Use of this source code is governed by a BSD-style license that can be
-# found in the LICENSE file.
-
-Import('env_test')
-
-
-env_test = env_test.Clone()
-
-
-env_test.Prepend(
- CPPDEFINES = [
- 'UNIT_TEST',
- ],
- CPPPATH = [
- '$GTEST_DIR/include',
- '$GTEST_DIR',
- '$CHROME_SRC_DIR',
- ],
- LIBS = [
- 'util',
- 'gtest',
- env_test['ICU_LIBS'], # TODO(sgk): '$ICU_LIBS' when scons is fixed
- 'base',
- ],
-)
-
-env_test.Prepend(
- LINKFLAGS = [
- '/INCREMENTAL',
- '/DEBUG',
-
- '/DELAYLOAD:"dwmapi.dll"',
- '/DELAYLOAD:"uxtheme.dll"',
-
- '/MACHINE:X86',
- '/FIXED:No',
-
- '/safeseh',
- '/dynamicbase',
- '/ignore:4199',
- '/nxcompat',
- ],
- LIBS = [
- 'comsupp.lib',
- 'oleacc.lib',
- 'rpcrt4.lib',
- 'shlwapi.lib',
- ],
-)
-
-input_files = [
- '$CHROME_DIR/installer/setup/setup_constants$OBJSUFFIX',
- '$CHROME_DIR/installer/util/run_all_unittests$OBJSUFFIX',
- 'chrome_mini_installer.cc',
- 'mini_installer_test_constants.cc',
- 'test.cc',
-]
-
-exe = env_test.ChromeTestProgram('mini_installer_test', input_files)
-i = env_test.Install('$TARGET_ROOT', exe)
-
-env_test.Alias('chrome', i)
-
diff --git a/chrome/test/mini_installer_test/mini_installer_test.scons b/chrome/test/mini_installer_test/mini_installer_test.scons
new file mode 100644
index 0000000..32da07b
--- /dev/null
+++ b/chrome/test/mini_installer_test/mini_installer_test.scons
@@ -0,0 +1,68 @@
+# Copyright (c) 2006-2008 The Chromium Authors. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+Import('env')
+
+
+env = env.Clone()
+
+env.ApplySConscript([
+ '$BASE_DIR/using_base.scons',
+ '$GTEST_DIR/../using_gtest.scons',
+ '$ICU38_DIR/using_icu38.scons',
+
+ '$BASE_DIR/gfx/using_base_gfx.scons',
+ '$CHROME_DIR/third_party/wtl/using_wtl.scons',
+ '$CHROME_SRC_DIR/build/using_googleurl.scons',
+ '$LIBPNG_DIR/using_libpng.scons',
+ '$LIBXML_DIR/using_libxml.scons',
+ '$MODP_B64_DIR/using_modp_b64.scons',
+ '$NET_DIR/using_net.scons',
+ '$SKIA_DIR/using_skia.scons',
+ '$ZLIB_DIR/using_zlib.scons',
+])
+
+env.Prepend(
+ CPPPATH = [
+ '$CHROME_SRC_DIR',
+ ],
+ LIBS = [
+ 'util',
+ ],
+)
+
+if env['PLATFORM'] == 'win32':
+ env.Prepend(
+ LINKFLAGS = [
+ '/INCREMENTAL',
+ '/DEBUG',
+
+ '/DELAYLOAD:"dwmapi.dll"',
+ '/DELAYLOAD:"uxtheme.dll"',
+
+ '/MACHINE:X86',
+ '/FIXED:No',
+
+ '/safeseh',
+ '/dynamicbase',
+ '/ignore:4199',
+ '/nxcompat',
+ ],
+ LIBS = [
+ 'comsupp',
+ 'oleacc',
+ 'rpcrt4',
+ 'shlwapi',
+ ],
+ )
+
+input_files = [
+ '$CHROME_DIR/installer/setup/setup_constants$OBJSUFFIX',
+ '$CHROME_DIR/installer/util/run_all_unittests$OBJSUFFIX',
+ 'chrome_mini_installer.cc',
+ 'mini_installer_test_constants.cc',
+ 'test.cc',
+]
+
+env.ChromeTestProgram('mini_installer_test', input_files)
diff --git a/chrome/test/page_cycler/SConscript b/chrome/test/page_cycler/SConscript
deleted file mode 100644
index 82530dc..0000000
--- a/chrome/test/page_cycler/SConscript
+++ /dev/null
@@ -1,80 +0,0 @@
-# Copyright (c) 2006-2008 The Chromium Authors. All rights reserved.
-# Use of this source code is governed by a BSD-style license that can be
-# found in the LICENSE file.
-
-Import('env_test')
-
-env_test = env_test.Clone()
-
-
-env_test.Prepend(
- CPPDEFINES = [
- 'UI_TEST',
- 'UNIT_TEST',
- ],
- CPPPATH = [
- '$GTEST_DIR/include',
- '$GTEST_DIR',
- '$SKIA_DIR/include',
- '$SKIA_DIR/include/corecg',
- '$SKIA_DIR/platform',
- '$CHROME_SRC_DIR',
- ],
- LIBS = [
- 'googleurl',
- 'skia',
- 'libpng',
- 'gtest',
- 'base_gfx',
- env_test['ICU_LIBS'], # TODO(sgk): '$ICU_LIBS' when scons is fixed
- 'common',
- 'zlib',
- 'modp_b64',
- 'browser',
- 'browser_views',
- 'net',
- 'base',
- 'automation',
- ],
-)
-
-env_test.Prepend(
- LINKFLAGS = [
- '/INCREMENTAL',
- '/DEBUG',
-
- '/DELAYLOAD:"dwmapi.dll"',
- '/DELAYLOAD:"uxtheme.dll"',
-
- '/MACHINE:X86',
- '/FIXED:No',
-
- '/safeseh',
- '/dynamicbase',
- '/ignore:4199',
- '/nxcompat',
- ],
- LIBS = [
- 'comsupp.lib',
- 'oleacc.lib',
- 'psapi.lib',
- 'rpcrt4.lib',
- 'winmm.lib',
- ],
-)
-
-
-input_files = [
- '$CHROME_DIR/test/perf/mem_usage$OBJSUFFIX',
- '$CHROME_DIR/test/ui/run_all_unittests$OBJSUFFIX',
- '$CHROME_DIR/test/ui/ui_test$OBJSUFFIX',
- '$CHROME_DIR/test/ui/ui_test_suite$OBJSUFFIX',
- '$CHROME_DIR/test/test_file_util$OBJSUFFIX',
- 'page_cycler_test.cc',
-]
-
-exe = env_test.ChromeTestProgram('page_cycler_tests', input_files)
-i = env_test.Install('$TARGET_ROOT', exe)
-
-env_test.Alias('chrome', i)
-
diff --git a/chrome/test/page_cycler/page_cycler_tests.scons b/chrome/test/page_cycler/page_cycler_tests.scons
new file mode 100644
index 0000000..78f26ae
--- /dev/null
+++ b/chrome/test/page_cycler/page_cycler_tests.scons
@@ -0,0 +1,72 @@
+# Copyright (c) 2006-2008 The Chromium Authors. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+Import('env')
+
+env = env.Clone()
+
+env.ApplySConscript([
+ '$BASE_DIR/using_base.scons',
+ '$BASE_DIR/gfx/using_base_gfx.scons',
+ '$CHROME_SRC_DIR/build/using_googleurl.scons',
+ '$GTEST_DIR/../using_gtest.scons',
+ '$ICU38_DIR/using_icu38.scons',
+ '$LIBPNG_DIR/using_libpng.scons',
+ '$MODP_B64_DIR/using_modp_b64.scons',
+ '$NET_DIR/using_net.scons',
+ '$SKIA_DIR/using_skia.scons',
+ '$ZLIB_DIR/using_zlib.scons',
+])
+
+env.Prepend(
+ CPPDEFINES = [
+ 'UI_TEST',
+ ],
+ CPPPATH = [
+ '$CHROME_SRC_DIR',
+ ],
+ LIBS = [
+ 'automation',
+ 'browser',
+ 'browser_views',
+ 'common',
+ ],
+)
+
+if env['PLATFORM'] == 'win32':
+ env.Prepend(
+ LINKFLAGS = [
+ '/INCREMENTAL',
+ '/DEBUG',
+
+ '/DELAYLOAD:"dwmapi.dll"',
+ '/DELAYLOAD:"uxtheme.dll"',
+
+ '/MACHINE:X86',
+ '/FIXED:No',
+
+ '/safeseh',
+ '/dynamicbase',
+ '/ignore:4199',
+ '/nxcompat',
+ ],
+ LIBS = [
+ 'comsupp',
+ 'oleacc',
+ 'psapi',
+ 'rpcrt4',
+ 'winmm',
+ ],
+ )
+
+input_files = [
+ '$CHROME_DIR/test/perf/mem_usage$OBJSUFFIX',
+ '$CHROME_DIR/test/ui/run_all_unittests$OBJSUFFIX',
+ '$CHROME_DIR/test/ui/ui_test$OBJSUFFIX',
+ '$CHROME_DIR/test/ui/ui_test_suite$OBJSUFFIX',
+ '$CHROME_DIR/test/test_file_util$OBJSUFFIX',
+ 'page_cycler_test.cc',
+]
+
+env.ChromeTestProgram('page_cycler_tests', input_files)
diff --git a/chrome/test/plugin/SConscript b/chrome/test/plugin/SConscript
deleted file mode 100644
index 1fdc1d3..0000000
--- a/chrome/test/plugin/SConscript
+++ /dev/null
@@ -1,84 +0,0 @@
-# Copyright (c) 2006-2008 The Chromium Authors. All rights reserved.
-# Use of this source code is governed by a BSD-style license that can be
-# found in the LICENSE file.
-
-Import('env_test')
-
-env_test = env_test.Clone()
-
-
-env_test.Prepend(
- CPPDEFINES = [
- 'UI_TEST',
- 'UNIT_TEST',
- 'LIBXSLT_STATIC',
- 'LIBXML_STATIC',
- ],
- CPPPATH = [
- '$GTEST_DIR/include',
- '$GTEST_DIR',
- '$SKIA_DIR/include',
- '$SKIA_DIR/include/corecg',
- '$SKIA_DIR/platform',
- '$CHROME_SRC_DIR',
- '$LIBXSLT_DIR',
- '$LIBXML_DIR/includ',
- ],
- LIBS = [
- 'googleurl',
- 'security_tests',
- 'skia',
- 'libpng',
- 'gtest',
- 'base_gfx',
- env_test['ICU_LIBS'], # TODO(sgk): '$ICU_LIBS' when scons is fixed
- 'common',
- 'zlib',
- 'modp_b64',
- 'browser',
- 'browser_views',
- 'net',
- 'base',
- 'automation',
- ],
-)
-
-env_test.Prepend(
- LINKFLAGS = [
- '/INCREMENTAL',
- '/DEBUG',
-
- '/DELAYLOAD:"ws2_32.dll"',
- '/DELAYLOAD:"dwmapi.dll"',
- '/DELAYLOAD:"uxtheme.dll"',
-
- '/MACHINE:X86',
- '/FIXED:No',
-
- '/safeseh',
- '/dynamicbase',
- '/ignore:4199',
- '/nxcompat',
- ],
- LIBS = [
- 'comsupp.lib',
- 'oleacc.lib',
- 'rpcrt4.lib',
- 'winmm.lib',
- ],
-)
-
-input_files = [
- '$CHROME_DIR/test/ui/run_all_unittests$OBJSUFFIX',
- '$CHROME_DIR/test/ui/ui_test$OBJSUFFIX',
- '$CHROME_DIR/test/ui/ui_test_suite$OBJSUFFIX',
- '$CHROME_DIR/test/test_file_util$OBJSUFFIX',
- 'plugin_test.cpp',
-]
-
-
-exe = env_test.ChromeTestProgram('plugin_tests', input_files)
-i = env_test.Install('$TARGET_ROOT', exe)
-
-env_test.Alias('chrome', i)
-
diff --git a/chrome/test/plugin/plugin_tests.scons b/chrome/test/plugin/plugin_tests.scons
new file mode 100644
index 0000000..677f72d
--- /dev/null
+++ b/chrome/test/plugin/plugin_tests.scons
@@ -0,0 +1,75 @@
+# Copyright (c) 2006-2008 The Chromium Authors. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+Import('env')
+
+env = env.Clone()
+
+env.ApplySConscript([
+ '$BASE_DIR/using_base.scons',
+ '$BASE_DIR/gfx/using_base_gfx.scons',
+ '$CHROME_SRC_DIR/build/using_googleurl.scons',
+ '$GTEST_DIR/../using_gtest.scons',
+ '$ICU38_DIR/using_icu38.scons',
+ '$LIBPNG_DIR/using_libpng.scons',
+ '$LIBXML_DIR/using_libxml.scons',
+ '$LIBXSLT_DIR/using_libxslt.scons',
+ '$MODP_B64_DIR/using_modp_b64.scons',
+ '$NET_DIR/using_net.scons',
+ '$SKIA_DIR/using_skia.scons',
+ '$ZLIB_DIR/using_zlib.scons',
+])
+
+env.Prepend(
+ CPPDEFINES = [
+ 'UI_TEST',
+ ],
+ CPPPATH = [
+ '$CHROME_SRC_DIR',
+ ],
+ LIBS = [
+ 'automation',
+ 'browser',
+ 'browser_views',
+ 'common',
+ 'security_tests',
+ ],
+)
+
+if env['PLATFORM'] == 'win32':
+ env.Prepend(
+ LINKFLAGS = [
+ '/INCREMENTAL',
+ '/DEBUG',
+
+ '/DELAYLOAD:"ws2_32.dll"',
+ '/DELAYLOAD:"dwmapi.dll"',
+ '/DELAYLOAD:"uxtheme.dll"',
+
+ '/MACHINE:X86',
+ '/FIXED:No',
+
+ '/safeseh',
+ '/dynamicbase',
+ '/ignore:4199',
+ '/nxcompat',
+ ],
+ LIBS = [
+ 'comsupp',
+ 'oleacc',
+ 'rpcrt4',
+ 'winmm',
+ ],
+ )
+
+input_files = [
+ '$CHROME_DIR/test/ui/run_all_unittests$OBJSUFFIX',
+ '$CHROME_DIR/test/ui/ui_test$OBJSUFFIX',
+ '$CHROME_DIR/test/ui/ui_test_suite$OBJSUFFIX',
+ '$CHROME_DIR/test/test_file_util$OBJSUFFIX',
+ 'plugin_test.cpp',
+]
+
+
+env.ChromeTestProgram('plugin_tests', input_files)
diff --git a/chrome/test/reliability/SConscript b/chrome/test/reliability/SConscript
deleted file mode 100644
index 3504e61..0000000
--- a/chrome/test/reliability/SConscript
+++ /dev/null
@@ -1,76 +0,0 @@
-# Copyright (c) 2006-2008 The Chromium Authors. All rights reserved.
-# Use of this source code is governed by a BSD-style license that can be
-# found in the LICENSE file.
-
-Import('env_test')
-
-env_test = env_test.Clone()
-
-
-env_test.Prepend(
- CPPDEFINES = [
- 'RELIABILITY_TEST', # seems to be unused
- 'UI_TEST',
- 'UNIT_TEST',
- ],
- CPPPATH = [
- '$GTEST_DIR/include',
- '$GTEST_DIR',
- '$SKIA_DIR/include',
- '$SKIA_DIR/include/corecg',
- '$SKIA_DIR/platform',
- '$CHROME_SRC_DIR',
- ],
- LIBS = [
- 'automation',
- 'base',
- 'base_gfx',
- 'browser',
- 'browser_views',
- 'common',
- 'googleurl',
- 'gtest',
- env_test['ICU_LIBS'], # TODO(sgk): '$ICU_LIBS' when scons is fixed
- 'libpng',
- 'modp_b64',
- 'net',
- 'skia',
- 'zlib',
-
- 'comsupp',
- 'oleacc',
- 'psapi',
- 'rpcrt4',
- 'winmm',
- ],
- LINKFLAGS = [
- '/INCREMENTAL',
- '/DEBUG',
-
- '/DELAYLOAD:"dwmapi.dll"',
- '/DELAYLOAD:"uxtheme.dll"',
-
- '/MACHINE:X86',
- '/FIXED:No',
-
- '/safeseh',
- '/dynamicbase',
- '/ignore:4199',
- '/nxcompat',
- ],
-)
-
-input_files = [
- '$CHROME_DIR/test/perf/mem_usage$OBJSUFFIX',
- '$CHROME_DIR/test/ui/ui_test$OBJSUFFIX',
- '$CHROME_DIR/test/ui/ui_test_suite$OBJSUFFIX',
- '$CHROME_DIR/test/test_file_util$OBJSUFFIX',
- 'page_load_test.cc',
- 'run_all_unittests.cc',
-]
-
-exe = env_test.ChromeTestProgram('reliability_tests', input_files)
-i = env_test.Install('$TARGET_ROOT', exe)
-
-env_test.Alias('chrome', i)
-
diff --git a/chrome/test/reliability/reliability_tests.scons b/chrome/test/reliability/reliability_tests.scons
new file mode 100644
index 0000000..27ff310
--- /dev/null
+++ b/chrome/test/reliability/reliability_tests.scons
@@ -0,0 +1,74 @@
+# Copyright (c) 2006-2008 The Chromium Authors. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+Import('env')
+
+env = env.Clone()
+
+env.ApplySConscript([
+ '$BASE_DIR/using_base.scons',
+ '$BASE_DIR/gfx/using_base_gfx.scons',
+ '$CHROME_SRC_DIR/build/using_googleurl.scons',
+ '$GTEST_DIR/../using_gtest.scons',
+ '$ICU38_DIR/using_icu38.scons',
+ '$LIBPNG_DIR/using_libpng.scons',
+ '$LIBXML_DIR/using_libxml.scons',
+ '$MODP_B64_DIR/using_modp_b64.scons',
+ '$NET_DIR/using_net.scons',
+ '$SKIA_DIR/using_skia.scons',
+ '$ZLIB_DIR/using_zlib.scons',
+])
+
+env.Prepend(
+ CPPDEFINES = [
+ 'RELIABILITY_TEST', # seems to be unused
+ 'UI_TEST',
+ ],
+ CPPPATH = [
+ '$CHROME_SRC_DIR',
+ ],
+ LIBS = [
+ 'automation',
+ 'browser',
+ 'browser_views',
+ 'common',
+ ],
+)
+
+if env['PLATFORM'] == 'win32':
+ env.Prepend(
+ LINKFLAGS = [
+ '/INCREMENTAL',
+ '/DEBUG',
+
+ '/DELAYLOAD:"dwmapi.dll"',
+ '/DELAYLOAD:"uxtheme.dll"',
+
+ '/MACHINE:X86',
+ '/FIXED:No',
+
+ '/safeseh',
+ '/dynamicbase',
+ '/ignore:4199',
+ '/nxcompat',
+ ],
+ LIBS = [
+ 'comsupp',
+ 'oleacc',
+ 'psapi',
+ 'rpcrt4',
+ 'winmm',
+ ],
+ )
+
+input_files = [
+ '$CHROME_DIR/test/perf/mem_usage$OBJSUFFIX',
+ '$CHROME_DIR/test/ui/ui_test$OBJSUFFIX',
+ '$CHROME_DIR/test/ui/ui_test_suite$OBJSUFFIX',
+ '$CHROME_DIR/test/test_file_util$OBJSUFFIX',
+ 'page_load_test.cc',
+ 'run_all_unittests.cc',
+]
+
+env.ChromeTestProgram('reliability_tests', input_files)
diff --git a/chrome/test/security_tests/SConscript b/chrome/test/security_tests/SConscript
deleted file mode 100644
index 7e6ef65..0000000
--- a/chrome/test/security_tests/SConscript
+++ /dev/null
@@ -1,46 +0,0 @@
-# Copyright (c) 2006-2008 The Chromium Authors. All rights reserved.
-# Use of this source code is governed by a BSD-style license that can be
-# found in the LICENSE file.
-
-Import('env')
-
-env = env.Clone()
-
-
-env.Prepend(
- CPPPATH = [
- '$CHROME_SRC_DIR',
- ],
-)
-
-env.Prepend(
- LINKFLAGS = [
- '/INCREMENTAL',
-
- '/MANIFEST',
- '/DELAYLOAD:"dwmapi.dll"',
- '/DELAYLOAD:"uxtheme.dll"',
- '/MACHINE:X86',
- '/FIXED:No',
-
- '/safeseh',
- '/dynamicbase',
- '/ignore:4199',
- '/nxcompat',
-
- '/DEBUG',
- ],
- LIBS = [
- 'DelayImp.lib',
- ],
-)
-
-input_files = [
- 'ipc_security_tests.cc',
- 'security_tests.cc',
- '$SANDBOX_DIR/tests/validation_tests/commands${OBJSUFFIX}',
-]
-
-dll = env.ChromeSharedLibrary('security_tests', input_files)
-i = env.Install('$TARGET_ROOT', dll)
-env.Alias('chrome', i)
diff --git a/chrome/test/security_tests/security_tests.scons b/chrome/test/security_tests/security_tests.scons
new file mode 100644
index 0000000..a3a9c3a
--- /dev/null
+++ b/chrome/test/security_tests/security_tests.scons
@@ -0,0 +1,44 @@
+# Copyright (c) 2006-2008 The Chromium Authors. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+Import('env')
+
+env = env.Clone()
+
+env.Prepend(
+ CPPPATH = [
+ '$CHROME_SRC_DIR',
+ ],
+)
+
+if env['PLATFORM'] == 'win32':
+ env.Prepend(
+ LINKFLAGS = [
+ '/INCREMENTAL',
+
+ '/MANIFEST',
+ '/DELAYLOAD:"dwmapi.dll"',
+ '/DELAYLOAD:"uxtheme.dll"',
+ '/MACHINE:X86',
+ '/FIXED:No',
+
+ '/safeseh',
+ '/dynamicbase',
+ '/ignore:4199',
+ '/nxcompat',
+
+ '/DEBUG',
+ ],
+ LIBS = [
+ 'DelayImp.lib',
+ ],
+ )
+
+input_files = [
+ 'ipc_security_tests.cc',
+ 'security_tests.cc',
+ '$SANDBOX_DIR/tests/validation_tests/commands${OBJSUFFIX}',
+]
+
+env.ChromeSharedLibrary('security_tests', input_files)
diff --git a/chrome/test/selenium/SConscript b/chrome/test/selenium/SConscript
deleted file mode 100644
index 6153dc8..0000000
--- a/chrome/test/selenium/SConscript
+++ /dev/null
@@ -1,76 +0,0 @@
-# Copyright (c) 2006-2008 The Chromium Authors. All rights reserved.
-# Use of this source code is governed by a BSD-style license that can be
-# found in the LICENSE file.
-
-Import('env_test')
-
-env_test = env_test.Clone()
-
-env_test.Prepend(
- CPPDEFINES = [
- 'UI_TEST',
- 'UNIT_TEST',
- ],
- CPPPATH = [
- '$GTEST_DIR/include',
- '$GTEST_DIR',
- '$SKIA_DIR/include',
- '$SKIA_DIR/include/corecg',
- '$SKIA_DIR/platform',
- '$CHROME_SRC_DIR',
- ],
- LIBS = [
- 'googleurl',
- 'skia',
- 'libpng',
- 'gtest',
- 'base_gfx',
- env_test['ICU_LIBS'], # TODO(sgk): '$ICU_LIBS' when scons is fixed
- 'common',
- 'zlib',
- 'modp_b64',
- 'browser',
- 'browser_views',
- 'net',
- 'base',
- 'automation',
- ],
-)
-
-env_test.Prepend(
- LINKFLAGS = [
- '/INCREMENTAL',
- '/DEBUG',
-
- '/DELAYLOAD:"dwmapi.dll"',
- '/DELAYLOAD:"uxtheme.dll"',
-
- '/MACHINE:X86',
- '/FIXED:No',
-
- '/safeseh',
- '/dynamicbase',
- '/ignore:4199',
- '/nxcompat',
- ],
- LIBS = [
- 'winmm.lib',
- 'rpcrt4.lib',
- 'oleacc.lib',
- 'comsupp.lib',
- ],
-)
-
-input_files = [
- '$CHROME_DIR/test/ui/run_all_unittests$OBJSUFFIX',
- '$CHROME_DIR/test/ui/ui_test$OBJSUFFIX',
- '$CHROME_DIR/test/ui/ui_test_suite$OBJSUFFIX',
- '$CHROME_DIR/test/test_file_util$OBJSUFFIX',
- 'selenium_test.cc',
-]
-
-exe = env_test.ChromeTestProgram('selenium_tests', input_files)
-i = env_test.Install('$TARGET_ROOT', exe)
-
-env_test.Alias('chrome', i)
-
diff --git a/chrome/test/memory_test/SConscript b/chrome/test/selenium/selenium_tests.scons
index 454a1b3..23259ee 100644
--- a/chrome/test/memory_test/SConscript
+++ b/chrome/test/selenium/selenium_tests.scons
@@ -2,12 +2,24 @@
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
-Import('env_test')
+Import('env')
-env_test = env_test.Clone()
+env = env.Clone()
+env.ApplySConscript([
+ '$BASE_DIR/using_base.scons',
+ '$BASE_DIR/gfx/using_base_gfx.scons',
+ '$CHROME_SRC_DIR/build/using_googleurl.scons',
+ '$GTEST_DIR/../using_gtest.scons',
+ '$ICU38_DIR/using_icu38.scons',
+ '$LIBPNG_DIR/using_libpng.scons',
+ '$MODP_B64_DIR/using_modp_b64.scons',
+ '$NET_DIR/using_net.scons',
+ '$SKIA_DIR/using_skia.scons',
+ '$ZLIB_DIR/using_zlib.scons',
+])
-env_test.Prepend(
+env.Prepend(
CPPDEFINES = [
'UI_TEST',
'UNIT_TEST',
@@ -22,24 +34,14 @@ env_test.Prepend(
],
LIBS = [
'automation',
- 'base',
- 'base_gfx',
'browser',
'browser_views',
'common',
- 'googleurl',
- 'gtest',
- env_test['ICU_LIBS'], # TODO(sgk): '$ICU_LIBS' when scons is fixed
- 'libpng',
- 'modp_b64',
- 'net',
- 'skia',
- 'zlib',
],
)
-if env_test['PLATFORM'] == 'win32':
- env_test.Prepend(
+if env['PLATFORM'] == 'win32':
+ env.Prepend(
LINKFLAGS = [
'/INCREMENTAL',
'/DEBUG',
@@ -55,19 +57,20 @@ if env_test['PLATFORM'] == 'win32':
'/ignore:4199',
'/nxcompat',
],
+ LIBS = [
+ 'winmm',
+ 'rpcrt4',
+ 'oleacc',
+ 'comsupp',
+ ],
)
input_files = [
- '$CHROME_DIR/test/perf/mem_usage$OBJSUFFIX',
'$CHROME_DIR/test/ui/run_all_unittests$OBJSUFFIX',
'$CHROME_DIR/test/ui/ui_test$OBJSUFFIX',
'$CHROME_DIR/test/ui/ui_test_suite$OBJSUFFIX',
'$CHROME_DIR/test/test_file_util$OBJSUFFIX',
- 'memory_test.cc',
+ 'selenium_test.cc',
]
-exe = env_test.ChromeTestProgram('memory_test', input_files)
-i = env_test.Install('$TARGET_ROOT', exe)
-
-env_test.Alias('chrome', i)
-
+env.ChromeTestProgram('selenium_tests', input_files)
diff --git a/chrome/test/startup/SConscript b/chrome/test/startup/SConscript
deleted file mode 100644
index ab57d9c..0000000
--- a/chrome/test/startup/SConscript
+++ /dev/null
@@ -1,77 +0,0 @@
-# Copyright (c) 2006-2008 The Chromium Authors. All rights reserved.
-# Use of this source code is governed by a BSD-style license that can be
-# found in the LICENSE file.
-
-Import('env_test')
-
-env_test = env_test.Clone()
-
-env_test.Prepend(
- CPPDEFINES = [
- 'UI_TEST',
- 'UNIT_TEST',
- ],
- CPPPATH = [
- '$GTEST_DIR/include',
- '$GTEST_DIR',
- '$SKIA_DIR/include',
- '$SKIA_DIR/include/corecg',
- '$SKIA_DIR/platform',
- '$CHROME_SRC_DIR',
- ],
- LIBS = [
- 'googleurl',
- 'skia',
- 'libpng',
- 'gtest',
- 'base_gfx',
- env_test['ICU_LIBS'], # TODO(sgk): '$ICU_LIBS' when scons is fixed
- 'common',
- 'zlib',
- 'browser',
- 'browser_views',
- 'base',
- 'automation',
- 'modp_b64',
- 'net',
- ],
-)
-
-env_test.Prepend(
- LINKFLAGS = [
- '/INCREMENTAL',
- '/DEBUG',
-
- '/DELAYLOAD:"dwmapi.dll"',
- '/DELAYLOAD:"uxtheme.dll"',
-
- '/MACHINE:X86',
- '/FIXED:No',
-
- '/safeseh',
- '/dynamicbase',
- '/ignore:4199',
- '/nxcompat',
- ],
- LIBS = [
- 'winmm.lib',
- 'rpcrt4.lib',
- 'oleacc.lib',
- 'comsupp.lib',
- ],
-)
-
-input_files = [
- '$CHROME_DIR/test/ui/run_all_unittests$OBJSUFFIX',
- '$CHROME_DIR/test/ui/ui_test$OBJSUFFIX',
- '$CHROME_DIR/test/ui/ui_test_suite$OBJSUFFIX',
- '$CHROME_DIR/test/test_file_util$OBJSUFFIX',
- 'feature_startup_test.cc',
- 'startup_test.cc',
-]
-
-exe = env_test.ChromeTestProgram('startup_tests', input_files)
-i = env_test.Install('$TARGET_ROOT', exe)
-
-env_test.Alias('chrome', i)
-
diff --git a/chrome/test/startup/startup_tests.scons b/chrome/test/startup/startup_tests.scons
new file mode 100644
index 0000000..88be476
--- /dev/null
+++ b/chrome/test/startup/startup_tests.scons
@@ -0,0 +1,71 @@
+# Copyright (c) 2006-2008 The Chromium Authors. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+Import('env')
+
+env = env.Clone()
+
+env.ApplySConscript([
+ '$BASE_DIR/using_base.scons',
+ '$BASE_DIR/gfx/using_base_gfx.scons',
+ '$CHROME_SRC_DIR/build/using_googleurl.scons',
+ '$GTEST_DIR/../using_gtest.scons',
+ '$ICU38_DIR/using_icu38.scons',
+ '$LIBPNG_DIR/using_libpng.scons',
+ '$MODP_B64_DIR/using_modp_b64.scons',
+ '$NET_DIR/using_net.scons',
+ '$SKIA_DIR/using_skia.scons',
+ '$ZLIB_DIR/using_zlib.scons',
+])
+
+env.Prepend(
+ CPPDEFINES = [
+ 'UI_TEST',
+ ],
+ CPPPATH = [
+ '$CHROME_SRC_DIR',
+ ],
+ LIBS = [
+ 'automation',
+ 'browser',
+ 'browser_views',
+ 'common',
+ ],
+)
+
+if env['PLATFORM'] == 'win32':
+ env.Prepend(
+ LINKFLAGS = [
+ '/INCREMENTAL',
+ '/DEBUG',
+
+ '/DELAYLOAD:"dwmapi.dll"',
+ '/DELAYLOAD:"uxtheme.dll"',
+
+ '/MACHINE:X86',
+ '/FIXED:No',
+
+ '/safeseh',
+ '/dynamicbase',
+ '/ignore:4199',
+ '/nxcompat',
+ ],
+ LIBS = [
+ 'comsupp',
+ 'oleacc',
+ 'rpcrt4',
+ 'winmm',
+ ],
+ )
+
+input_files = [
+ '$CHROME_DIR/test/ui/run_all_unittests$OBJSUFFIX',
+ '$CHROME_DIR/test/ui/ui_test$OBJSUFFIX',
+ '$CHROME_DIR/test/ui/ui_test_suite$OBJSUFFIX',
+ '$CHROME_DIR/test/test_file_util$OBJSUFFIX',
+ 'feature_startup_test.cc',
+ 'startup_test.cc',
+]
+
+env.ChromeTestProgram('startup_tests', input_files)
diff --git a/chrome/test/tab_switching/SConscript b/chrome/test/tab_switching/SConscript
deleted file mode 100644
index 7fd9974d..0000000
--- a/chrome/test/tab_switching/SConscript
+++ /dev/null
@@ -1,79 +0,0 @@
-# Copyright (c) 2006-2008 The Chromium Authors. All rights reserved.
-# Use of this source code is governed by a BSD-style license that can be
-# found in the LICENSE file.
-
-Import('env_test')
-
-env_test = env_test.Clone()
-
-env_test.Prepend(
- CPPDEFINES = [
- 'UI_TEST',
- 'UNIT_TEST',
- ],
- CPPPATH = [
- '$GTEST_DIR/include',
- '$GTEST_DIR',
- '$SKIA_DIR/include',
- '$SKIA_DIR/include/corecg',
- '$SKIA_DIR/platform',
- '$CHROME_SRC_DIR',
- ],
- LIBS = [
- 'googleurl',
- 'skia',
- 'libpng',
- 'gtest',
- 'base_gfx',
- env_test['ICU_LIBS'], # TODO(sgk): '$ICU_LIBS' when scons is fixed
- 'common',
- 'zlib',
- 'modp_b64',
- 'browser',
- 'browser_views',
- 'net',
- 'base',
- 'automation',
- ],
-)
-
-env_test.Prepend(
- LINKFLAGS = [
- '/INCREMENTAL',
- '/DEBUG',
-
- '/DELAYLOAD:"dwmapi.dll"',
- '/DELAYLOAD:"uxtheme.dll"',
-
- '/MACHINE:X86',
- '/FIXED:No',
-
- '/safeseh',
- '/dynamicbase',
- '/ignore:4199',
- '/nxcompat',
- ],
- LIBS = [
- 'winmm.lib',
- 'psapi.lib',
- 'rpcrt4.lib',
- 'oleacc.lib',
- 'comsupp.lib',
- ],
-)
-
-input_files = [
- '$CHROME_DIR/test/ui/run_all_unittests$OBJSUFFIX',
- '$CHROME_DIR/test/ui/ui_test$OBJSUFFIX',
- '$CHROME_DIR/test/ui/ui_test_suite$OBJSUFFIX',
- '$CHROME_DIR/test/test_file_util$OBJSUFFIX',
- 'tab_switching_test.cc',
-]
-
-#"..\..\Debug\obj\tab_switching_test\precompiled_wtl.obj"
-
-exe = env_test.ChromeTestProgram('tab_switching_test', input_files)
-i = env_test.Install('$TARGET_ROOT', exe)
-
-env_test.Alias('chrome', i)
-
diff --git a/chrome/test/tab_switching/tab_switching_test.scons b/chrome/test/tab_switching/tab_switching_test.scons
new file mode 100644
index 0000000..0856f50
--- /dev/null
+++ b/chrome/test/tab_switching/tab_switching_test.scons
@@ -0,0 +1,74 @@
+# Copyright (c) 2006-2008 The Chromium Authors. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+Import('env')
+
+env = env.Clone()
+
+env.ApplySConscript([
+ '$BASE_DIR/using_base.scons',
+ '$BASE_DIR/gfx/using_base_gfx.scons',
+ '$CHROME_SRC_DIR/build/using_googleurl.scons',
+ '$GTEST_DIR/../using_gtest.scons',
+ '$ICU38_DIR/using_icu38.scons',
+ '$LIBPNG_DIR/using_libpng.scons',
+ '$MODP_B64_DIR/using_modp_b64.scons',
+ '$NET_DIR/using_net.scons',
+ '$SKIA_DIR/using_skia.scons',
+ '$ZLIB_DIR/using_zlib.scons',
+])
+
+env.Prepend(
+ CPPDEFINES = [
+ 'UI_TEST',
+ ],
+ CPPPATH = [
+ '$CHROME_SRC_DIR',
+ ],
+ LIBS = [
+ 'automation',
+ 'browser',
+ 'browser_views',
+ 'common',
+ ],
+)
+
+if env['PLATFORM'] == 'win32':
+ env.Prepend(
+ LINKFLAGS = [
+ '/INCREMENTAL',
+ '/DEBUG',
+
+ '/DELAYLOAD:"dwmapi.dll"',
+ '/DELAYLOAD:"uxtheme.dll"',
+
+ '/MACHINE:X86',
+ '/FIXED:No',
+
+ '/safeseh',
+ '/dynamicbase',
+ '/ignore:4199',
+ '/nxcompat',
+ ],
+ LIBS = [
+ 'comsupp',
+ 'oleacc',
+ 'psapi',
+ 'rpcrt4',
+ 'winmm',
+ ],
+ )
+
+input_files = [
+ '$CHROME_DIR/test/ui/run_all_unittests$OBJSUFFIX',
+ '$CHROME_DIR/test/ui/ui_test$OBJSUFFIX',
+ '$CHROME_DIR/test/ui/ui_test_suite$OBJSUFFIX',
+ '$CHROME_DIR/test/test_file_util$OBJSUFFIX',
+ 'tab_switching_test.cc',
+]
+
+#"..\..\Debug\obj\tab_switching_test\precompiled_wtl.obj"
+
+env.ChromeTestProgram('tab_switching_test', input_files)
+
diff --git a/chrome/tools/crash_service/SConscript b/chrome/tools/crash_service/SConscript
deleted file mode 100644
index fc4cc4e..0000000
--- a/chrome/tools/crash_service/SConscript
+++ /dev/null
@@ -1,54 +0,0 @@
-# Copyright (c) 2006-2008 The Chromium Authors. All rights reserved.
-# Use of this source code is governed by a BSD-style license that can be
-# found in the LICENSE file.
-
-Import('env')
-
-env = env.Clone()
-
-env.Prepend(
- CPPPATH = [
- '$BREAKPAD_DIR/src',
- '$CHROME_SRC_DIR',
- ],
- LIBS = [
- 'base',
- 'base_gfx',
- 'breakpad_handler',
- 'breakpad_sender',
- 'common',
- env['ICU_LIBS'], # TODO(sgk): '$ICU_LIBS' when scons is fixed
- 'skia',
- 'zlib',
- ],
-)
-
-env.Prepend(
- LINKFLAGS = [
- '/INCREMENTAL',
-
- '/DELAYLOAD:"dwmapi.dll"',
- '/DELAYLOAD:"uxtheme.dll"',
-
- '/DEBUG',
- '/MACHINE:X86',
- '/FIXED:No',
-
- '/safeseh',
- '/dynamicbase',
- '/ignore:4199',
- '/nxcompat',
-
- ],
-)
-
-input_files = [
- 'main.cc',
- 'crash_service.cc',
-]
-
-exe = env.ChromeProgram('crash_service', input_files)
-
-i = env.Install('$TARGET_ROOT', exe)
-Alias('chrome', i)
-
diff --git a/chrome/tools/crash_service/crash_service.scons b/chrome/tools/crash_service/crash_service.scons
new file mode 100644
index 0000000..db59307
--- /dev/null
+++ b/chrome/tools/crash_service/crash_service.scons
@@ -0,0 +1,51 @@
+# Copyright (c) 2006-2008 The Chromium Authors. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+Import('env')
+
+env = env.Clone()
+
+env.ApplySConscript([
+ '$BASE_DIR/using_base.scons',
+ '$BASE_DIR/gfx/using_base_gfx.scons',
+ '$BREAKPAD_DIR/using_breakpad.scons',
+ '$ICU38_DIR/using_icu38.scons',
+ '$SKIA_DIR/using_skia.scons',
+ '$ZLIB_DIR/using_zlib.scons',
+])
+
+if env['PLATFORM'] == 'win32':
+ env.Prepend(
+ CPPPATH = [
+ '$CHROME_SRC_DIR',
+ ],
+ LIBS = [
+ 'breakpad_handler',
+ 'breakpad_sender',
+ 'common',
+ ],
+ LINKFLAGS = [
+ '/INCREMENTAL',
+
+ '/DELAYLOAD:"dwmapi.dll"',
+ '/DELAYLOAD:"uxtheme.dll"',
+
+ '/DEBUG',
+ '/MACHINE:X86',
+ '/FIXED:No',
+
+ '/safeseh',
+ '/dynamicbase',
+ '/ignore:4199',
+ '/nxcompat',
+ ],
+ )
+
+input_files = [
+ 'main.cc',
+ 'crash_service.cc',
+]
+
+env.ChromeProgram('crash_service', input_files)
+
diff --git a/chrome/tools/perf/flush_cache/SConscript b/chrome/tools/perf/flush_cache/SConscript
deleted file mode 100644
index a33cb3c..0000000
--- a/chrome/tools/perf/flush_cache/SConscript
+++ /dev/null
@@ -1,46 +0,0 @@
-# Copyright (c) 2006-2008 The Chromium Authors. All rights reserved.
-# Use of this source code is governed by a BSD-style license that can be
-# found in the LICENSE file.
-
-Import('env_test')
-
-env_test = env_test.Clone()
-
-env_test.Prepend(
- CPPPATH = [
- '$CHROME_SRC_DIR',
- ],
- LIBS = [
- env_test['ICU_LIBS'], # TODO(sgk): '$ICU_LIBS' when scons is fixed
- 'base',
- ],
-)
-
-env_test.Prepend(
- LINKFLAGS = [
- '/INCREMENTAL',
- '/DEBUG',
-
- '/DELAYLOAD:"dwmapi.dll"',
- '/DELAYLOAD:"uxtheme.dll"',
-
- '/MACHINE:X86',
- '/FIXED:No',
-
- '/safeseh',
- '/dynamicbase',
- '/ignore:4199',
- '/nxcompat',
- ],
-)
-
-input_files = [
- '$CHROME_DIR/test/test_file_util$OBJSUFFIX',
- 'flush_cache.cc',
-]
-
-exe = env_test.ChromeTestProgram('flush_cache', input_files)
-i = env_test.Install('$TARGET_ROOT', exe)
-
-env_test.Alias('chrome', i)
-
diff --git a/chrome/tools/perf/flush_cache/flush_cache.scons b/chrome/tools/perf/flush_cache/flush_cache.scons
new file mode 100644
index 0000000..5e3786d
--- /dev/null
+++ b/chrome/tools/perf/flush_cache/flush_cache.scons
@@ -0,0 +1,44 @@
+# Copyright (c) 2006-2008 The Chromium Authors. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+Import('env')
+
+env = env.Clone()
+
+env.ApplySConscript([
+ '$BASE_DIR/using_base.scons',
+ '$ICU38_DIR/using_icu38.scons',
+])
+
+env.Prepend(
+ CPPPATH = [
+ '$CHROME_SRC_DIR',
+ ],
+)
+
+if env['PLATFORM'] == 'win32':
+ env.Prepend(
+ LINKFLAGS = [
+ '/INCREMENTAL',
+ '/DEBUG',
+
+ '/DELAYLOAD:"dwmapi.dll"',
+ '/DELAYLOAD:"uxtheme.dll"',
+
+ '/MACHINE:X86',
+ '/FIXED:No',
+
+ '/safeseh',
+ '/dynamicbase',
+ '/ignore:4199',
+ '/nxcompat',
+ ],
+ )
+
+input_files = [
+ '$CHROME_DIR/test/test_file_util$OBJSUFFIX',
+ 'flush_cache.cc',
+]
+
+env.ChromeTestProgram('flush_cache', input_files)
diff --git a/chrome/tools/test/image_diff/SConscript b/chrome/tools/test/image_diff/image_diff.scons
index b1cccf5..b4d4a9e 100644
--- a/chrome/tools/test/image_diff/SConscript
+++ b/chrome/tools/test/image_diff/image_diff.scons
@@ -2,34 +2,30 @@
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
-Import('env_test')
+Import('env')
-env_test = env_test.Clone()
+env = env.Clone()
-env_test.Prepend(
+env.ApplySConscript([
+ '$BASE_DIR/using_base.scons',
+ '$BASE_DIR/gfx/using_base_gfx.scons',
+ '$ICU38_DIR/using_icu38.scons',
+ '$LIBPNG_DIR/using_libpng.scons',
+ '$SKIA_DIR/using_skia.scons',
+ '$ZLIB_DIR/using_zlib.scons',
+])
+
+env.Prepend(
CPPDEFINES = [
- 'PNG_USER_CONFIG',
- 'CHROME_PNG_WRITE_SUPPORT',
'_DEBUG',
],
CPPPATH = [
- '$ZLIB_DIR',
- '$LIBPNG_DIR',
'$CHROME_SRC_DIR',
],
- LIBS = [
- 'dmg_fp',
- 'skia',
- 'libpng',
- 'base_gfx',
- env_test['ICU_LIBS'], # TODO(sgk): '$ICU_LIBS' when scons is fixed
- env_test['ZLIB_LIB'],
- 'base',
- ],
)
-if env_test['PLATFORM'] == 'win32':
- env_test.Prepend(
+if env['PLATFORM'] == 'win32':
+ env.Prepend(
LINKFLAGS = [
'/INCREMENTAL',
'/DEBUG',
@@ -53,8 +49,4 @@ input_files = [
'image_diff.cc',
]
-exe = env_test.ChromeTestProgram('image_diff', input_files)
-i = env_test.Install('$TARGET_ROOT', exe)
-
-env_test.Alias('chrome', i)
-
+env.ChromeTestProgram('image_diff', input_files)
diff --git a/tools/grit/grit/scons.py b/tools/grit/grit/scons.py
index 0bc759a..d0ac231 100644
--- a/tools/grit/grit/scons.py
+++ b/tools/grit/grit/scons.py
@@ -117,7 +117,11 @@ def _Scanner(file_node, env, path):
'''
from grit import grd_reader
- grd = grd_reader.Parse(str(file_node), debug=_IsDebugEnabled())
+ # TODO(gspencer): Had to add the .rfile() method to the following
+ # line to get this to work with Repository() directories.
+ # Get this functionality folded back into the upstream grit tool.
+ #grd = grd_reader.Parse(str(file_node)), debug=_IsDebugEnabled())
+ grd = grd_reader.Parse(str(file_node.rfile()), debug=_IsDebugEnabled())
files = []
for node in grd:
if (node.name == 'structure' or node.name == 'skeleton' or