OLD | NEW |
1 # Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. |
2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 | 4 |
5 __doc__ = """ | 5 __doc__ = """ |
6 Configuration for building base_gfx.lib / libbase_gfx.a. | 6 Configuration for building base_gfx.lib / libbase_gfx.a. |
7 """ | 7 """ |
8 | 8 |
9 Import('env') | 9 Import('env') |
10 | 10 |
11 env = env.Clone() | 11 env = env.Clone() |
12 | 12 |
13 env.SConscript([ | 13 env.ApplySConscript([ |
14 '$ICU38_DIR/using_icu38.scons', | 14 '$ICU38_DIR/using_icu38.scons', |
15 '$LIBPNG_DIR/using_libpng.scons', | 15 '$LIBPNG_DIR/using_libpng.scons', |
16 '$SKIA_DIR/using_skia.scons', | 16 '$SKIA_DIR/using_skia.scons', |
17 '$ZLIB_DIR/using_zlib.scons', | 17 '$ZLIB_DIR/using_zlib.scons', |
18 ], {'env':env}) | 18 ]) |
19 | |
20 env.Prepend( | |
21 CPPPATH = [ | |
22 '$CHROME_SRC_DIR', | |
23 ], | |
24 ) | |
25 | 19 |
26 if env['PLATFORM'] == 'win32': | 20 if env['PLATFORM'] == 'win32': |
27 env.Prepend( | 21 env.Prepend( |
28 CCFLAGS = [ | 22 CCFLAGS = [ |
29 '/TP', | |
30 '/WX', | 23 '/WX', |
31 ], | 24 ], |
32 ) | 25 ) |
33 | 26 |
34 input_files = [ | 27 input_files = [ |
35 'convolver.cc', | 28 'convolver.cc', |
36 'gdi_util.cc', | 29 'gdi_util.cc', |
37 'image_operations.cc', | 30 'image_operations.cc', |
38 'native_theme.cc', | 31 'native_theme.cc', |
39 'png_decoder.cc', | 32 'png_decoder.cc', |
(...skipping 26 matching lines...) Expand all Loading... |
66 'platform_device_win.cc', | 59 'platform_device_win.cc', |
67 ]) | 60 ]) |
68 elif env['PLATFORM'] == 'posix': | 61 elif env['PLATFORM'] == 'posix': |
69 input_files.extend([ | 62 input_files.extend([ |
70 'bitmap_platform_device_linux.cc', | 63 'bitmap_platform_device_linux.cc', |
71 'platform_canvas_linux.cc', | 64 'platform_canvas_linux.cc', |
72 'platform_device_linux.cc', | 65 'platform_device_linux.cc', |
73 ]) | 66 ]) |
74 | 67 |
75 env.ChromeStaticLibrary('base_gfx', input_files) | 68 env.ChromeStaticLibrary('base_gfx', input_files) |
OLD | NEW |