OLD | NEW |
| (Empty) |
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 | |
3 # found in the LICENSE file. | |
4 | |
5 __doc__ = """ | |
6 Configuration for building base_gfx.lib / libbase_gfx.a. | |
7 """ | |
8 | |
9 Import('env') | |
10 | |
11 env = env.Clone() | |
12 | |
13 env.ApplySConscript([ | |
14 '$ICU38_DIR/using_icu38.scons', | |
15 '$LIBJPEG_DIR/using_libjpeg.scons', | |
16 '$LIBPNG_DIR/using_libpng.scons', | |
17 '$SKIA_DIR/using_skia.scons', | |
18 '$ZLIB_DIR/using_zlib.scons', | |
19 ]) | |
20 | |
21 if env.Bit('windows'): | |
22 env.Prepend( | |
23 CCFLAGS = [ | |
24 '/WX', | |
25 ], | |
26 ) | |
27 | |
28 input_files = ChromeFileList([ | |
29 'gfx/jpeg_codec.cc', | |
30 'gfx/jpeg_codec.h', | |
31 'gfx/png_decoder.cc', | |
32 'gfx/png_decoder.h', | |
33 'gfx/png_encoder.cc', | |
34 'gfx/png_encoder.h', | |
35 'gfx/point.cc', | |
36 'gfx/point.h', | |
37 'gfx/rect.cc', | |
38 'gfx/rect.h', | |
39 'gfx/size.cc', | |
40 'gfx/size.h', | |
41 ]) | |
42 | |
43 if env.Bit('windows'): | |
44 input_files.Extend([ | |
45 'gfx/native_theme.cc', | |
46 'gfx/native_theme.h', | |
47 'gfx/gdi_util.cc', | |
48 'gfx/gdi_util.h', | |
49 ]) | |
50 elif env.Bit('linux'): | |
51 input_files.Extend([ | |
52 'gfx/gtk_util.cc', | |
53 'gfx/gtk_util.h', | |
54 ]) | |
55 | |
56 env.ChromeLibrary('base_gfx', input_files) | |
57 | |
58 p = env.ChromeMSVSProject('build/base_gfx.vcproj', | |
59 dest='$CHROME_SRC_DIR/base/build/base_gfx.vcproj', | |
60 guid='{A508ADD3-CECE-4E0F-8448-2F5E454DF551}', | |
61 keyword='Win32Proj', | |
62 files=input_files, | |
63 tools=[ | |
64 'VCPreBuildEventTool', | |
65 'VCCustomBuildTool', | |
66 'VCXMLDataGeneratorTool', | |
67 'VCWebServiceProxyGeneratorTool', | |
68 'VCMIDLTool', | |
69 'VCCLCompilerTool', | |
70 'VCManagedResourceCompilerTool', | |
71 'VCResourceCompilerTool', | |
72 'VCPreLinkEventTool', | |
73 'VCLibrarianTool', | |
74 'VCALinkTool', | |
75 'VCXDCMakeTool', | |
76 'VCBscMakeTool', | |
77 'VCFxCopTool', | |
78 'VCPostBuildEventTool', | |
79 ]) | |
80 | |
81 p.AddConfig('Debug|Win32', | |
82 ConfigurationType = '4', | |
83 InheritedPropertySheets = [ | |
84 '$(SolutionDir)../build/debug.vsprops', | |
85 './base_gfx.vsprops', | |
86 '../../skia/using_skia.vsprops', | |
87 ]) | |
88 | |
89 p.AddConfig('Release|Win32', | |
90 ConfigurationType = '4', | |
91 InheritedPropertySheets = [ | |
92 '$(SolutionDir)../build/release.vsprops', | |
93 './base_gfx.vsprops', | |
94 '../../skia/using_skia.vsprops', | |
95 ]) | |
OLD | NEW |