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.Prepend( | |
10 CPPPATH = [ | |
11 '.', | |
12 '$CHROME_SRC_DIR', | |
13 ], | |
14 ) | |
15 | |
16 if env.Bit('windows'): | |
17 env.Prepend( | |
18 LINKFLAGS = [ | |
19 '/INCREMENTAL', | |
20 | |
21 '/MANIFEST', | |
22 '/DELAYLOAD:"dwmapi.dll"', | |
23 '/DELAYLOAD:"uxtheme.dll"', | |
24 '/MACHINE:X86', | |
25 '/FIXED:No', | |
26 | |
27 '/safeseh', | |
28 '/dynamicbase', | |
29 '/ignore:4199', | |
30 '/nxcompat', | |
31 | |
32 '/DEBUG', | |
33 ], | |
34 LIBS = [ | |
35 'comsuppw.lib', | |
36 ], | |
37 ) | |
38 | |
39 # TODO(port): | |
40 if env.Bit('windows'): | |
41 env.TypeLibrary('activex_test_control.idl') | |
42 | |
43 input_files = ChromeFileList([ | |
44 # TODO(sgk): violate standard indentation so we don't have to | |
45 # reindent too much when we remove the explicit MSVSFilter() calls | |
46 # in favor of generating the hierarchy to reflect the file system. | |
47 MSVSFilter('resource', [ | |
48 'activex_test_control.rc', | |
49 'activex_test_control.rgs', | |
50 'chrome_test_control.bmp', | |
51 'chrome_test_control.rgs', | |
52 ]), | |
53 'activex_test_control.cc', | |
54 'activex_test_control.def', | |
55 'activex_test_control.idl', | |
56 'chrome_test_control.cc', | |
57 'chrome_test_control.h', | |
58 'chrome_test_control_cp.h', | |
59 'resource.h', | |
60 ]) | |
61 | |
62 # TODO(port): | |
63 if env.Bit('windows'): | |
64 env.ChromeSharedLibrary('activex_test_control', input_files) | |
65 | |
66 p = env.ChromeMSVSProject('activex_test_control.vcproj', | |
67 dest=('$CHROME_SRC_DIR/chrome/test/' | |
68 + 'activex_test_control/' | |
69 + 'activex_test_control.vcproj'), | |
70 keyword='AtlProj', | |
71 guid='{414D4D24-5D65-498B-A33F-3A29AD3CDEDC}', | |
72 # TODO(sgk): when we can intuit the hierarchy | |
73 # from the built targets. | |
74 #buildtargets=TODO, | |
75 files=input_files, | |
76 relative_path_prefix='./', | |
77 tools=[ | |
78 'VCPreBuildEventTool', | |
79 'VCCustomBuildTool', | |
80 'VCXMLDataGeneratorTool', | |
81 'VCWebServiceProxyGeneratorTool', | |
82 'VCMIDLTool', | |
83 'VCCLCompilerTool', | |
84 'VCManagedResourceCompilerTool', | |
85 'VCResourceCompilerTool', | |
86 'VCPreLinkEventTool', | |
87 'VCLinkerTool', | |
88 'VCALinkTool', | |
89 'VCManifestTool', | |
90 'VCXDCMakeTool', | |
91 'VCBscMakeTool', | |
92 'VCFxCopTool', | |
93 'VCAppVerifierTool', | |
94 'VCWebDeploymentTool', | |
95 'VCPostBuildEventTool', | |
96 ], | |
97 ConfigurationType='2') | |
98 | |
99 | |
100 p.AddConfig('Debug|Win32', | |
101 InheritedPropertySheets=[ | |
102 './activex_test_control.vsprops', | |
103 '$(SolutionDir)../build/debug.vsprops', | |
104 ]) | |
105 | |
106 p.AddConfig('Release|Win32', | |
107 InheritedPropertySheets=[ | |
108 './activex_test_control.vsprops', | |
109 '$(SolutionDir)../build/release.vsprops', | |
110 ]) | |
OLD | NEW |