From b7a34ef99e9cb6fc6f268b8bf210fe846a13542a Mon Sep 17 00:00:00 2001 From: "deanm@google.com" Date: Wed, 13 Aug 2008 11:24:35 +0000 Subject: Update base/SConscript to remove Windows only parts from the Linux build. git-svn-id: svn://svn.chromium.org/chrome/trunk/src@787 0039d316-1c4b-4281-b951-d872f2087c98 --- base/SConscript | 25 +++++++++++++++---------- 1 file changed, 15 insertions(+), 10 deletions(-) (limited to 'base/SConscript') diff --git a/base/SConscript b/base/SConscript index f645697..87966d1 100644 --- a/base/SConscript +++ b/base/SConscript @@ -236,10 +236,11 @@ if env['PLATFORM'] == 'posix': env_tests['LIBS'].remove('libpng') env_tests['LIBS'].remove('zlib') -env_tests.ChromeTestProgram(['debug_message.exe', - 'debug_message.ilk', - 'debug_message.pdb'], - ['debug_message.cc']) +if env['PLATFORM'] == 'win32': + env_tests.ChromeTestProgram(['debug_message.exe', + 'debug_message.ilk', + 'debug_message.pdb'], + ['debug_message.cc']) # These test files work on *all* platforms; tests that don't work # cross-platform live below. @@ -299,6 +300,8 @@ if env['PLATFORM'] == 'win32': 'word_iterator_unittest.cc', ]) +test_targets = [ 'base_unittests' ] + if env['PLATFORM'] == 'win32': # Windows-specific tests. test_files.extend([ @@ -307,14 +310,14 @@ if env['PLATFORM'] == 'win32': 'win_util_unittest.cc', 'wmi_util_unittest.cc', ]) - -base_unittests = env_tests.ChromeTestProgram([ - 'base_unittests', + test_targets.extend([ 'base_unittests.exp', 'base_unittests.ilk', 'base_unittests.lib', - 'base_unittests.pdb'], test_files) + 'base_unittests.pdb', + ]) +base_unittests = env_tests.ChromeTestProgram(test_targets, test_files) # Install up a level to allow unit test path assumptions to be valid. installed_base_unittests = env.Install('$TARGET_ROOT', base_unittests) @@ -331,5 +334,7 @@ SConscript(sconscript_dirs, exports=['env']) env.Alias('base', ['.', installed_base_unittests, '../icudt38.dll']) -env_tests.StaticObject('perftimer.cc') -env_tests.StaticObject('run_all_perftests.cc') +# These aren't ported to other platforms yet. +if env['PLATFORM'] == 'win32': + env_tests.StaticObject('perftimer.cc') + env_tests.StaticObject('run_all_perftests.cc') -- cgit v1.1