diff options
author | tc@google.com <tc@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-08-12 22:40:40 +0000 |
---|---|---|
committer | tc@google.com <tc@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-08-12 22:40:40 +0000 |
commit | c67035202c92cb15b7db5dbba3e7326d653e7d45 (patch) | |
tree | 61e9a2d1d1f44652bd56a2c8c372f6a172d004f2 /base/gfx | |
parent | 60e47874d1b6fa95360a8976e93f11d7868b50ee (diff) | |
download | chromium_src-c67035202c92cb15b7db5dbba3e7326d653e7d45.zip chromium_src-c67035202c92cb15b7db5dbba3e7326d653e7d45.tar.gz chromium_src-c67035202c92cb15b7db5dbba3e7326d653e7d45.tar.bz2 |
Update base/gfx/SConscript to build cleanly on linux.
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@755 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/gfx')
-rw-r--r-- | base/gfx/SConscript | 33 |
1 files changed, 24 insertions, 9 deletions
diff --git a/base/gfx/SConscript b/base/gfx/SConscript index 8ff8f4b..493cbbb 100644 --- a/base/gfx/SConscript +++ b/base/gfx/SConscript @@ -31,6 +31,11 @@ Import('env') env = env.Clone() +# Remove an inherited relative path that doesn't make sense anymore. This +# makes sure we don't pull in the wrong version of time.h when building on +# linux. +env['CPPPATH'].remove('..') + env.Prepend( CPPPATH = [ '$SKIA_DIR/include', @@ -47,16 +52,29 @@ env.Prepend( 'CHROME_PNG_WRITE_SUPPORT', 'U_STATIC_IMPLEMENTATION', ], - CCFLAGS = [ - '/TP', - '/WX', - ], ) +if env['PLATFORM'] == 'win32': + env.Prepend( + CCFLAGS = [ + '/TP', + '/WX', + ], + ) + input_files = [ + 'convolver.cc', + 'point.cc', + 'rect.cc', + 'size.cc', +] + +if env['PLATFORM'] == 'win32': + # Some of these aren't really Windows-specific, they're just here until + # we have the port versions working. + input_files.extend([ 'bitmap_header.cc', 'bitmap_platform_device.cc', - 'convolver.cc', 'font_utils.cc', 'image_operations.cc', 'native_theme.cc', @@ -64,13 +82,10 @@ input_files = [ 'platform_device.cc', 'png_decoder.cc', 'png_encoder.cc', - 'point.cc', - 'rect.cc', - 'size.cc', 'skia_utils.cc', 'uniscribe.cc', 'vector_canvas.cc', 'vector_device.cc', -] + ]) env.ChromeStaticLibrary('base_gfx', input_files) |