summaryrefslogtreecommitdiffstats
path: root/base/gfx/base_gfx.scons
diff options
context:
space:
mode:
Diffstat (limited to 'base/gfx/base_gfx.scons')
-rw-r--r--base/gfx/base_gfx.scons65
1 files changed, 55 insertions, 10 deletions
diff --git a/base/gfx/base_gfx.scons b/base/gfx/base_gfx.scons
index b9c2e2d..bcffedc 100644
--- a/base/gfx/base_gfx.scons
+++ b/base/gfx/base_gfx.scons
@@ -24,34 +24,79 @@ if env.Bit('windows'):
],
)
-input_files = [
+input_files = ChromeFileList([
'gdi_util.cc',
+ 'gdi_util.h',
'native_theme.cc',
+ 'native_theme.h',
'png_decoder.cc',
+ 'png_decoder.h',
'png_encoder.cc',
+ 'png_encoder.h',
'point.cc',
+ 'point.h',
'rect.cc',
+ 'rect.h',
'size.cc',
-]
+ 'size.h',
+])
if env.Bit('posix'):
# Remove files that still need to be ported from the input_files list.
# TODO(port): delete files from this list as they get ported.
- to_be_ported_files = [
+ input_files.Remove(
'gdi_util.cc',
'native_theme.cc',
- ]
- for remove in to_be_ported_files:
- input_files.remove(remove)
+ )
if env.Bit('windows'):
- input_files.extend([
+ input_files.Extend([
])
elif env.Bit('linux'):
- input_files.extend([
+ input_files.Extend([
])
env.ChromeStaticLibrary('base_gfx', input_files)
-env.ChromeMSVSProject('$BASE_DIR/build/base_gfx.vcproj',
- guid='{A508ADD3-CECE-4E0F-8448-2F5E454DF551}')
+p = env.ChromeMSVSProject('../build/base_gfx.vcproj',
+ guid='{A508ADD3-CECE-4E0F-8448-2F5E454DF551}',
+ files=input_files,
+ tools=[
+ 'VCPreBuildEventTool',
+ 'VCCustomBuildTool',
+ 'VCXMLDataGeneratorTool',
+ 'VCWebServiceProxyGeneratorTool',
+ 'VCMIDLTool',
+ 'VCCLCompilerTool',
+ 'VCManagedResourceCompilerTool',
+ 'VCResourceCompilerTool',
+ 'VCPreLinkEventTool',
+ 'VCLibrarianTool',
+ 'VCALinkTool',
+ 'VCXDCMakeTool',
+ 'VCBscMakeTool',
+ 'VCFxCopTool',
+ 'VCPostBuildEventTool',
+ ])
+
+p.AddConfig('Debug|Win32',
+ ConfigurationType = '4',
+ InheritedPropertySheets = [
+ '$(SolutionDir)../build/debug.vsprops',
+ './base_gfx.vsprops',
+ '../../skia/using_skia.vsprops',
+ ])
+
+p.AddConfig('Release|Win32',
+ ConfigurationType = '4',
+ InheritedPropertySheets = [
+ '$(SolutionDir)../build/release.vsprops',
+ './base_gfx.vsprops',
+ '../../skia/using_skia.vsprops',
+ ])
+
+env.AlwaysBuild(p)
+
+i = env.Command('$CHROME_SRC_DIR/base/build/base_gfx.vcproj', p,
+ Copy('$TARGET', '$SOURCE'))
+Alias('msvs', i)