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 Import('env') | |
6 | |
7 env = env.Clone() | |
8 | |
9 env.ApplySConscript([ | |
10 '$BASE_DIR/using_base.scons', | |
11 '$CHROME_SRC_DIR/build/using_googleurl.scons', | |
12 '$ICU38_DIR/using_icu38.scons', | |
13 ]) | |
14 | |
15 env.Prepend( | |
16 CPPPATH = [ | |
17 '$CHROME_SRC_DIR', | |
18 ], | |
19 ) | |
20 | |
21 if env.Bit('windows'): | |
22 env.Prepend( | |
23 LINKFLAGS = [ | |
24 '/INCREMENTAL', | |
25 | |
26 '/MANIFEST', | |
27 '/DELAYLOAD:"dwmapi.dll"', | |
28 '/DELAYLOAD:"uxtheme.dll"', | |
29 '/MACHINE:X86', | |
30 '/FIXED:No', | |
31 | |
32 '/safeseh', | |
33 '/dynamicbase', | |
34 '/ignore:4199', | |
35 '/nxcompat', | |
36 | |
37 '/DEBUG', | |
38 ], | |
39 LIBS = [ | |
40 'winmm.lib', | |
41 ], | |
42 ) | |
43 | |
44 input_files = ChromeFileList([ | |
45 'test_chrome_plugin.cc', | |
46 'test_chrome_plugin.def', | |
47 'test_chrome_plugin.h', | |
48 ]) | |
49 | |
50 if not env.Bit('windows'): | |
51 input_files.Remove( | |
52 'test_chrome_plugin.def', | |
53 ) | |
54 | |
55 env.ChromeSharedLibrary('test_chrome_plugin', input_files) | |
56 | |
57 p = env.ChromeMSVSProject('test_chrome_plugin.vcproj', | |
58 dest=('$CHROME_SRC_DIR/chrome/test/' | |
59 + 'chrome_plugin/test_chrome_plugin.vcproj'), | |
60 root_namespace='startup_tests', | |
61 guid='{7F0A70F6-BE3F-4C19-B435-956AB8F30BA4}', | |
62 dependencies = [ | |
63 '$BASE_DIR/build/base.vcproj', | |
64 '$ICU38_DIR/build/icu.vcproj', | |
65 '$ICU38_DIR/build/icudt.vcproj', | |
66 '$GOOGLEURL_DIR/build/googleurl.vcproj', | |
67 ], | |
68 # TODO(sgk): when we can intuit the hierarchy | |
69 # from the built targets. | |
70 #buildtargets=TODO, | |
71 files=input_files, | |
72 relative_path_prefix='./', | |
73 ConfigurationType='2') | |
74 | |
75 | |
76 p.AddConfig('Debug|Win32', | |
77 InheritedPropertySheets=[ | |
78 '$(SolutionDir)../build/debug.vsprops', | |
79 './test_chrome_plugin.vsprops', | |
80 ], | |
81 tools=[ | |
82 'VCPreBuildEventTool', | |
83 'VCCustomBuildTool', | |
84 'VCXMLDataGeneratorTool', | |
85 'VCWebServiceProxyGeneratorTool', | |
86 'VCMIDLTool', | |
87 MSVSTool('VCCLCompilerTool', | |
88 UsePrecompiledHeader='0'), | |
89 'VCManagedResourceCompilerTool', | |
90 'VCResourceCompilerTool', | |
91 'VCPreLinkEventTool', | |
92 MSVSTool('VCLinkerTool', | |
93 AdditionalDependencies='winmm.lib'), | |
94 'VCALinkTool', | |
95 'VCManifestTool', | |
96 'VCXDCMakeTool', | |
97 'VCBscMakeTool', | |
98 'VCFxCopTool', | |
99 'VCAppVerifierTool', | |
100 'VCWebDeploymentTool', | |
101 'VCPostBuildEventTool', | |
102 ]) | |
103 | |
104 p.AddConfig('Release|Win32', | |
105 InheritedPropertySheets=[ | |
106 '$(SolutionDir)../build/release.vsprops', | |
107 './test_chrome_plugin.vsprops', | |
108 ], | |
109 tools=[ | |
110 'VCPreBuildEventTool', | |
111 'VCCustomBuildTool', | |
112 'VCXMLDataGeneratorTool', | |
113 'VCWebServiceProxyGeneratorTool', | |
114 'VCMIDLTool', | |
115 'VCCLCompilerTool', | |
116 'VCManagedResourceCompilerTool', | |
117 'VCResourceCompilerTool', | |
118 'VCPreLinkEventTool', | |
119 MSVSTool('VCLinkerTool', | |
120 AdditionalDependencies='winmm.lib'), | |
121 'VCALinkTool', | |
122 'VCManifestTool', | |
123 'VCXDCMakeTool', | |
124 'VCBscMakeTool', | |
125 'VCFxCopTool', | |
126 'VCAppVerifierTool', | |
127 'VCWebDeploymentTool', | |
128 'VCPostBuildEventTool', | |
129 ]) | |
OLD | NEW |