0

Add builds of miscellaneous .exes:

base\debug_message.exe
  chrome\test\perf\perf_tests.exe
  chrome\tools\convert_dict\convert_dict.exe
  chrome\tools\profiles\generate_profile.exe
Review URL: http://codereview.chromium.org/11541

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@5812 0039d316-1c4b-4281-b951-d872f2087c98
This commit is contained in:
sgk@google.com
2008-11-21 01:32:55 +00:00
parent fa9b8274ca
commit 36b7dcaa8f
7 changed files with 214 additions and 2 deletions

@ -20,4 +20,11 @@ sconscript_files = [
'gfx/base_gfx.scons',
]
if env.Bit('windows'):
# TODO(port): port this if it's needed on non-Windows systems,
# or remove this comment if it's really Windows-specific.
sconscript_files.extend([
'debug_message.scons',
])
SConscript(sconscript_files, exports=['env'])

@ -107,8 +107,6 @@ input_files = [
]
if env['PLATFORM'] in ('posix', 'darwin'):
#env.ChromeTestProgram('debug_message', ['debug_message.cc'])
# Remove files that still need to be ported from the input_files list.
# TODO(port): delete files from this list as they get ported.
to_be_ported_files = [

21
base/debug_message.scons Normal file

@ -0,0 +1,21 @@
# 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.
__doc__ = """
Configuration for building base_unittests{,.exe}.
"""
Import('env')
env = env.Clone()
if env.Bit('windows'):
env.Append(
LINKFLAGS = [
'/SUBSYSTEM:WINDOWS',
],
)
env.ChromeProgram('debug_message', ['debug_message.cc'])

@ -59,6 +59,7 @@ sconscript_files = [
'test/memory_test/memory_test.scons',
'test/mini_installer_test/mini_installer_test.scons',
'test/page_cycler/page_cycler_tests.scons',
'test/perf/perftests.scons',
'test/plugin/plugin_tests.scons',
'test/reliability/reliability_tests.scons',
'test/security_tests/security_tests.scons',
@ -67,8 +68,10 @@ sconscript_files = [
'test/tab_switching/tab_switching_test.scons',
'test/ui/ui_tests.scons',
'test/unit/unit_tests.scons',
'tools/convert_dict/convert_dict.scons',
'tools/crash_service/crash_service.scons',
'tools/perf/flush_cache/flush_cache.scons',
'tools/profiles/generate_profile.scons',
'tools/test/image_diff/image_diff.scons',
]
@ -87,6 +90,7 @@ if env['PLATFORM'] != 'win32':
'test/memory_test/memory_test.scons',
'test/mini_installer_test/mini_installer_test.scons',
'test/page_cycler/page_cycler_tests.scons',
'test/perf/perftests.scons',
'test/plugin/plugin_tests.scons',
'test/reliability/reliability_tests.scons',
'test/security_tests/security_tests.scons',
@ -94,8 +98,10 @@ if env['PLATFORM'] != 'win32':
'test/startup/startup_tests.scons',
'test/tab_switching/tab_switching_test.scons',
'test/ui/ui_tests.scons',
'tools/convert_dict/convert_dict.scons',
'tools/crash_service/crash_service.scons',
'tools/perf/flush_cache/flush_cache.scons',
'tools/profiles/generate_profile.scons',
]
for remove in remove_files:
sconscript_files.remove(remove)

@ -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/gfx/using_base_gfx.scons',
'$BASE_DIR/using_base.scons',
'$BZIP2_DIR/using_bzip2.scons',
'$CHROME_DIR/third_party/hunspell/using_hunspell.scons',
'$CHROME_SRC_DIR/build/using_googleurl.scons',
'$CHROME_SRC_DIR/build/using_v8.scons',
'$GTEST_DIR/../using_gtest.scons',
'$ICU38_DIR/using_icu38.scons',
'$LIBJPEG_DIR/using_libjpeg.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',
'$SDCH_DIR/using_sdch.scons',
'$SKIA_DIR/using_skia.scons',
'$ZLIB_DIR/using_zlib.scons',
])
env.Prepend(
CPPDEFINES = [
'PERF_TEST',
],
LIBS = [
'activex_shim',
'browser',
'browser_views',
'common',
'debugger',
'default_plugin',
'glue',
'JavaScriptCore_pcre',
'plugin',
'port',
'renderer',
'sqlite',
'util',
'v8_snapshot',
'V8Bindings',
'views',
'WebCore',
'WTF',
],
)
if env['PLATFORM'] == 'win32':
env.Prepend(
LIBS = [
'rpcrt4',
'shlwapi',
'winmm',
],
)
input_files = [
'perftests.cc',
'url_parse_perftest.cc',
'$BASE_DIR/perftimer$OBJSUFFIX',
'$CHROME_DIR/browser/safe_browsing/database_perftest.cc',
'$CHROME_DIR/browser/visitedlink_master$OBJSUFFIX',
'$CHROME_DIR/browser/visitedlink_perftest.cc',
'$CHROME_DIR/common/json_value_serializer_perftest.cc',
'$CHROME_DIR/test/test_file_util$OBJSUFFIX',
]
env.ChromeTestProgram('perf_tests', input_files)

@ -0,0 +1,37 @@
# 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(
LIBS = [
#'breakpad_handler',
#'breakpad_sender',
#'common',
],
)
input_files = [
'aff_reader.cc',
'convert_dict.cc',
'dic_reader.cc',
'hunspell_reader.cc',
'$CHROME_DIR/third_party/hunspell/google/bdict_reader$OBJSUFFIX',
'$CHROME_DIR/third_party/hunspell/google/bdict_writer.cc',
]
env.ChromeProgram('convert_dict', input_files)

@ -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/gfx/using_base_gfx.scons',
'$BASE_DIR/using_base.scons',
'$BZIP2_DIR/using_bzip2.scons',
'$CHROME_SRC_DIR/build/using_googleurl.scons',
'$CHROME_SRC_DIR/build/using_v8.scons',
'$GTEST_DIR/../using_gtest.scons',
'$ICU38_DIR/using_icu38.scons',
'$LIBJPEG_DIR/using_libjpeg.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',
'$SDCH_DIR/using_sdch.scons',
'$SKIA_DIR/using_skia.scons',
'$ZLIB_DIR/using_zlib.scons',
])
env.Prepend(
CPPDEFINES = [
'PERF_TEST',
],
LIBS = [
'activex_shim',
'browser',
'browser_views',
'common',
'debugger',
'default_plugin',
'glue',
'hunspell',
'JavaScriptCore_pcre',
'plugin',
'port',
'renderer',
'sqlite',
'util',
'v8_snapshot',
'V8Bindings',
'views',
'WebCore',
'WTF',
],
)
if env['PLATFORM'] == 'win32':
env.Prepend(
LIBS = [
'rpcrt4',
'shlwapi',
'winmm',
],
)
input_files = [
'generate_profile.cc',
]
env.ChromeTestProgram('generate_profile', input_files)