diff options
author | sgk@google.com <sgk@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-08-04 18:11:39 +0000 |
---|---|---|
committer | sgk@google.com <sgk@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-08-04 18:11:39 +0000 |
commit | 372d63e5389ff61ac6043302a14711497be2999f (patch) | |
tree | 98f5eacc467f410fbc36f3e795326a8507df9765 /chrome/tools/crash_service | |
parent | eb0c1e406f837d590055021a753015feb67b6fc9 (diff) | |
download | chromium_src-372d63e5389ff61ac6043302a14711497be2999f.zip chromium_src-372d63e5389ff61ac6043302a14711497be2999f.tar.gz chromium_src-372d63e5389ff61ac6043302a14711497be2999f.tar.bz2 |
Cross-platform: Let SCons abstract library names by getting rid of .lib suffixes when linking with the libraries we build, replacing the lists of explicitly-suffixed "source files" with library base names in the environment LIBS variables. This requires having ChromeStaticLibrary() install .lib files in a $BUILD_TYPE/Libs directory, and adding that directory to $LIBPATH.
R=evanm,bradnelson
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@326 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/tools/crash_service')
-rw-r--r-- | chrome/tools/crash_service/SConscript | 27 |
1 files changed, 14 insertions, 13 deletions
diff --git a/chrome/tools/crash_service/SConscript b/chrome/tools/crash_service/SConscript index 1227b11..260f7bf 100644 --- a/chrome/tools/crash_service/SConscript +++ b/chrome/tools/crash_service/SConscript @@ -36,6 +36,19 @@ env.Prepend( '$BREAKPAD_DIR/src',
'#/..',
],
+ LIBS = [
+ 'base',
+ 'base_gfx',
+ 'breakpad_handler',
+ 'breakpad_sender',
+ 'common',
+ 'icuuc',
+ 'skia',
+ 'zlib',
+ ],
+)
+
+env.Prepend(
LINKFLAGS = [
'/INCREMENTAL',
@@ -54,24 +67,12 @@ env.Prepend( ],
)
-libs = [
- '$BASE_DIR/base.lib',
- '$BASE_DIR/gfx/base_gfx.lib',
- '$BREAKPAD_DIR/breakpad_handler.lib',
- '$BREAKPAD_DIR/breakpad_sender.lib',
- '$CHROME_DIR/common/common.lib',
- '$ICU38_DIR/icuuc.lib',
- '$SKIA_DIR/skia.lib',
- '$ZLIB_DIR/zlib.lib',
-]
-
-
input_files = [
'main.cc',
'crash_service.cc',
]
-exe = env.ChromeProgram('crash_service.exe', input_files + libs)
+exe = env.ChromeProgram('crash_service.exe', input_files)
i = env.Install('$TARGET_ROOT', exe)
Alias('chrome', i)
|