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 Import('env', 'env_res') | 5 Import('env', 'env_res') |
6 | 6 |
7 env = env.Clone() | 7 env = env.Clone() |
8 env_res = env_res.Clone() | 8 env_res = env_res.Clone() |
9 | 9 |
10 env_res.Append( | 10 env_res.Append( |
11 CPPPATH = [ | 11 CPPPATH = [ |
12 '.', | 12 '.', |
13 '$CHROME_SRC_DIR', | 13 '$CHROME_SRC_DIR', |
14 ], | 14 ], |
15 RCFLAGS = [ | 15 RCFLAGS = [ |
16 ['/l', '0x409'], | 16 ['/l', '0x409'], |
17 ], | 17 ], |
18 ) | 18 ) |
19 | 19 |
20 res = [ | |
21 env_res.RES('theme_resources.rc'), | |
22 env_res.RES('distribution_resources.rc'), | |
23 ] | |
24 | |
25 | |
26 | 20 |
27 env.Append( | 21 env.Append( |
28 LINKFLAGS = [ | 22 LINKFLAGS = [ |
29 '/INCREMENTAL:NO', | 23 '/INCREMENTAL:NO', |
30 '/DELAYLOAD:"dwmapi.dll"', | 24 '/DELAYLOAD:"dwmapi.dll"', |
31 '/DELAYLOAD:"uxtheme.dll"', | 25 '/DELAYLOAD:"uxtheme.dll"', |
32 | 26 |
33 '/NOENTRY', | 27 '/NOENTRY', |
34 '/BASE:"0x3CE00000"', | 28 '/BASE:"0x3CE00000"', |
35 '/MACHINE:X86', | 29 '/MACHINE:X86', |
36 '/FIXED:No', | 30 '/FIXED:No', |
37 | 31 |
38 '/safeseh', | 32 '/safeseh', |
39 '/dynamicbase', | 33 '/dynamicbase', |
40 '/ignore:4199', | 34 '/ignore:4199', |
41 '/nxcompat', | 35 '/nxcompat', |
42 ], | 36 ], |
43 ) | 37 ) |
44 | 38 |
| 39 input_files = ChromeFileList([ |
| 40 'theme_resources.h', |
| 41 'theme_resources.rc', |
| 42 'distribution_resources.rc', |
| 43 ]) |
| 44 |
| 45 res = [] |
| 46 res.extend(env_res.RES('theme_resources.rc')) |
| 47 res.extend(env_res.RES('distribution_resources.rc')) |
| 48 |
45 themes_default = env.ChromeSharedLibrary("default", res) | 49 themes_default = env.ChromeSharedLibrary("default", res) |
46 env.Install("$DESTINATION_ROOT/themes", themes_default) | 50 env.Install("$DESTINATION_ROOT/themes", themes_default) |
47 | 51 |
48 # TODO(bradnelson): figure out why this was needed | 52 p = env.ChromeMSVSProject('theme_dll.vcproj', |
49 #env.AddPostAction(themes_default[1], Touch(themes_default[1:])) | 53 dest=('$CHROME_SRC_DIR/chrome/' |
| 54 + 'app/theme/theme_dll.vcproj'), |
| 55 guid='{FD683DD6-D9BF-4B1B-AB6D-A3AC03EDAA4D}', |
| 56 keyword='Win32Proj', |
| 57 # TODO(sgk): when we can intuit the hierarchy |
| 58 # from the built targets. |
| 59 #buildtargets=TODO, |
| 60 files=input_files, |
| 61 tools=[ |
| 62 'VCPreBuildEventTool', |
| 63 'VCCustomBuildTool', |
| 64 'VCXMLDataGeneratorTool', |
| 65 'VCWebServiceProxyGeneratorTool', |
| 66 'VCMIDLTool', |
| 67 'VCCLCompilerTool', |
| 68 'VCManagedResourceCompilerTool', |
| 69 'VCResourceCompilerTool', |
| 70 'VCPreLinkEventTool', |
| 71 'VCLinkerTool', |
| 72 'VCALinkTool', |
| 73 'VCManifestTool', |
| 74 'VCXDCMakeTool', |
| 75 'VCBscMakeTool', |
| 76 'VCFxCopTool', |
| 77 'VCAppVerifierTool', |
| 78 'VCWebDeploymentTool', |
| 79 'VCPostBuildEventTool', |
| 80 ], |
| 81 ConfigurationType='2') |
| 82 |
| 83 |
| 84 p.AddConfig('Debug|Win32', |
| 85 InheritedPropertySheets=[ |
| 86 '$(SolutionDir)../build/debug.vsprops', |
| 87 './theme_dll.vsprops', |
| 88 ]) |
| 89 |
| 90 p.AddConfig('Release|Win32', |
| 91 InheritedPropertySheets=[ |
| 92 '$(SolutionDir)../build/release.vsprops', |
| 93 './theme_dll.vsprops', |
| 94 ]) |
OLD | NEW |