diff options
Diffstat (limited to 'chrome')
-rw-r--r-- | chrome/chrome.scons | 6 | ||||
-rw-r--r-- | chrome/test/perf/perftests.scons | 75 | ||||
-rw-r--r-- | chrome/tools/convert_dict/convert_dict.scons | 37 | ||||
-rw-r--r-- | chrome/tools/profiles/generate_profile.scons | 68 |
4 files changed, 186 insertions, 0 deletions
diff --git a/chrome/chrome.scons b/chrome/chrome.scons index 5a8b4ab..d990e37 100644 --- a/chrome/chrome.scons +++ b/chrome/chrome.scons @@ -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) diff --git a/chrome/test/perf/perftests.scons b/chrome/test/perf/perftests.scons new file mode 100644 index 0000000..2a75ef2 --- /dev/null +++ b/chrome/test/perf/perftests.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/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) diff --git a/chrome/tools/convert_dict/convert_dict.scons b/chrome/tools/convert_dict/convert_dict.scons new file mode 100644 index 0000000..b634294b --- /dev/null +++ b/chrome/tools/convert_dict/convert_dict.scons @@ -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) + diff --git a/chrome/tools/profiles/generate_profile.scons b/chrome/tools/profiles/generate_profile.scons new file mode 100644 index 0000000..9e601ea --- /dev/null +++ b/chrome/tools/profiles/generate_profile.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/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) |