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.ApplySConscript([ | 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 ]) | 18 ]) |
19 | 19 |
20 if env.Bit('windows'): | 20 if env.Bit('windows'): |
21 env.Prepend( | 21 env.Prepend( |
22 CCFLAGS = [ | 22 CCFLAGS = [ |
23 '/WX', | 23 '/WX', |
24 ], | 24 ], |
25 ) | 25 ) |
26 | 26 |
27 input_files = [ | 27 input_files = ChromeFileList([ |
28 'gdi_util.cc', | 28 'gdi_util.cc', |
| 29 'gdi_util.h', |
29 'native_theme.cc', | 30 'native_theme.cc', |
| 31 'native_theme.h', |
30 'png_decoder.cc', | 32 'png_decoder.cc', |
| 33 'png_decoder.h', |
31 'png_encoder.cc', | 34 'png_encoder.cc', |
| 35 'png_encoder.h', |
32 'point.cc', | 36 'point.cc', |
| 37 'point.h', |
33 'rect.cc', | 38 'rect.cc', |
| 39 'rect.h', |
34 'size.cc', | 40 'size.cc', |
35 ] | 41 'size.h', |
| 42 ]) |
36 | 43 |
37 if env.Bit('posix'): | 44 if env.Bit('posix'): |
38 # Remove files that still need to be ported from the input_files list. | 45 # Remove files that still need to be ported from the input_files list. |
39 # TODO(port): delete files from this list as they get ported. | 46 # TODO(port): delete files from this list as they get ported. |
40 to_be_ported_files = [ | 47 input_files.Remove( |
41 'gdi_util.cc', | 48 'gdi_util.cc', |
42 'native_theme.cc', | 49 'native_theme.cc', |
43 ] | 50 ) |
44 for remove in to_be_ported_files: | |
45 input_files.remove(remove) | |
46 | 51 |
47 if env.Bit('windows'): | 52 if env.Bit('windows'): |
48 input_files.extend([ | 53 input_files.Extend([ |
49 ]) | 54 ]) |
50 elif env.Bit('linux'): | 55 elif env.Bit('linux'): |
51 input_files.extend([ | 56 input_files.Extend([ |
52 ]) | 57 ]) |
53 | 58 |
54 env.ChromeStaticLibrary('base_gfx', input_files) | 59 env.ChromeStaticLibrary('base_gfx', input_files) |
55 | 60 |
56 env.ChromeMSVSProject('$BASE_DIR/build/base_gfx.vcproj', | 61 p = env.ChromeMSVSProject('../build/base_gfx.vcproj', |
57 guid='{A508ADD3-CECE-4E0F-8448-2F5E454DF551}') | 62 guid='{A508ADD3-CECE-4E0F-8448-2F5E454DF551}', |
| 63 files=input_files, |
| 64 tools=[ |
| 65 'VCPreBuildEventTool', |
| 66 'VCCustomBuildTool', |
| 67 'VCXMLDataGeneratorTool', |
| 68 'VCWebServiceProxyGeneratorTool', |
| 69 'VCMIDLTool', |
| 70 'VCCLCompilerTool', |
| 71 'VCManagedResourceCompilerTool', |
| 72 'VCResourceCompilerTool', |
| 73 'VCPreLinkEventTool', |
| 74 'VCLibrarianTool', |
| 75 'VCALinkTool', |
| 76 'VCXDCMakeTool', |
| 77 'VCBscMakeTool', |
| 78 'VCFxCopTool', |
| 79 'VCPostBuildEventTool', |
| 80 ]) |
| 81 |
| 82 p.AddConfig('Debug|Win32', |
| 83 ConfigurationType = '4', |
| 84 InheritedPropertySheets = [ |
| 85 '$(SolutionDir)../build/debug.vsprops', |
| 86 './base_gfx.vsprops', |
| 87 '../../skia/using_skia.vsprops', |
| 88 ]) |
| 89 |
| 90 p.AddConfig('Release|Win32', |
| 91 ConfigurationType = '4', |
| 92 InheritedPropertySheets = [ |
| 93 '$(SolutionDir)../build/release.vsprops', |
| 94 './base_gfx.vsprops', |
| 95 '../../skia/using_skia.vsprops', |
| 96 ]) |
| 97 |
| 98 env.AlwaysBuild(p) |
| 99 |
| 100 i = env.Command('$CHROME_SRC_DIR/base/build/base_gfx.vcproj', p, |
| 101 Copy('$TARGET', '$SOURCE')) |
| 102 Alias('msvs', i) |
OLD | NEW |