diff options
author | sgk@google.com <sgk@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-11-03 18:44:12 +0000 |
---|---|---|
committer | sgk@google.com <sgk@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-11-03 18:44:12 +0000 |
commit | 2b859529c112c8f5dd3a3a855c477521f957c8f5 (patch) | |
tree | 3a00dd65712bb48ae957a220cb9a9e373875cf88 /chrome/common/ipc_tests.scons | |
parent | 4d5d69164a86de9fd33c5795f35d0e2116eb2e0b (diff) | |
download | chromium_src-2b859529c112c8f5dd3a3a855c477521f957c8f5.zip chromium_src-2b859529c112c8f5dd3a3a855c477521f957c8f5.tar.gz chromium_src-2b859529c112c8f5dd3a3a855c477521f957c8f5.tar.bz2 |
Convert chrome/common to new SCons naming:
* Rename chrome/common/SConscript to chrome/common/common.scons.
* Use the new using_*.scons files for settings.
* Split build of ipc_tests.exe into chrome/common/ipc_tests.scons.
Review URL: http://codereview.chromium.org/9253
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@4466 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common/ipc_tests.scons')
-rw-r--r-- | chrome/common/ipc_tests.scons | 83 |
1 files changed, 83 insertions, 0 deletions
diff --git a/chrome/common/ipc_tests.scons b/chrome/common/ipc_tests.scons new file mode 100644 index 0000000..91c8363 --- /dev/null +++ b/chrome/common/ipc_tests.scons @@ -0,0 +1,83 @@ +# 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 = env.Clone() + +env.SConscript([ + '$BASE_DIR/using_base.scons', + '$BREAKPAD_DIR/using_breakpad.scons', + '$CHROME_DIR/third_party/wtl/using_wtl.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', + '$NPAPI_DIR/using_npapi.scons', + '$SKIA_DIR/using_skia.scons', + '$ZLIB_DIR/using_zlib.scons', +], {'env':env}) + +# TODO(sgk): convert into a using_*.scons pattern when we update WebKit. +env.Append( + CPPPATH = [ + '$WEBKIT_DIR/build/localized_strings', + ], +) + +env.Prepend( + CPPPATH = [ + '$CHROME_DIR/app/resources', + '$CHROME_DIR/app', + '$CHROME_SRC_DIR', + ], + LIBS = [ + 'common', + ] +) + +if env['PLATFORM'] == 'win32': + env.Prepend( + CPPPATH = [ + '$CHROME_DIR/tools/build/win', + ], + ) + +if env['PLATFORM'] == 'win32': + env.Append( + LINKFLAGS = [ + '/INCREMENTAL', + + '/safeseh', + '/dynamicbase', + '/ignore:4199', + '/nxcompat', + + '/DELAYLOAD:"dwmapi.dll"', + '/DELAYLOAD:"uxtheme.dll"', + + '/DEBUG', + '/MACHINE:X86', + '/FIXED:No', + ], + LIBS = [ + 'rpcrt4', + 'shlwapi', + 'winmm', + ], + ) + +if env['PLATFORM'] == 'win32': + # TODO(port): Port this. + input_files = [ + 'ipc_fuzzing_tests.cc', + 'ipc_tests.cc', + + '$BASE_DIR/perftimer$OBJSUFFIX', + ] + + ipc_tests = env.ChromeTestProgram('ipc_tests', input_files) + i = env.Install('$TARGET_ROOT', ipc_tests) + Alias('chrome', i) |