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/gfx/using_base_gfx.scons', | |
11 '$BASE_DIR/using_base.scons', | |
12 '$BZIP2_DIR/using_bzip2.scons', | |
13 '$CHROME_SRC_DIR/build/using_googleurl.scons', | |
14 '$CHROME_SRC_DIR/build/using_v8.scons', | |
15 '$GTEST_DIR/../using_gtest.scons', | |
16 '$ICU38_DIR/using_icu38.scons', | |
17 '$LIBJPEG_DIR/using_libjpeg.scons', | |
18 '$LIBPNG_DIR/using_libpng.scons', | |
19 '$LIBXML_DIR/using_libxml.scons', | |
20 '$LIBXSLT_DIR/using_libxslt.scons', | |
21 '$MODP_B64_DIR/using_modp_b64.scons', | |
22 '$NET_DIR/using_net.scons', | |
23 '$SDCH_DIR/using_sdch.scons', | |
24 '$SKIA_DIR/using_skia.scons', | |
25 '$ZLIB_DIR/using_zlib.scons', | |
26 ]) | |
27 | |
28 env.Prepend( | |
29 CPPDEFINES = [ | |
30 'PERF_TEST', | |
31 ], | |
32 LIBS = [ | |
33 'activex_shim', | |
34 'browser', | |
35 'browser_views', | |
36 'common', | |
37 'debugger', | |
38 'default_plugin', | |
39 'glue', | |
40 'hunspell', | |
41 'JavaScriptCore_pcre', | |
42 'plugin', | |
43 'port', | |
44 'renderer', | |
45 'sqlite', | |
46 'util', | |
47 'v8_snapshot', | |
48 'V8Bindings', | |
49 'views', | |
50 'WebCore', | |
51 'WTF', | |
52 ], | |
53 ) | |
54 | |
55 if env.Bit('windows'): | |
56 env.Prepend( | |
57 LIBS = [ | |
58 'rpcrt4', | |
59 'shlwapi', | |
60 'winmm', | |
61 ], | |
62 ) | |
63 | |
64 input_files = ChromeFileList([ | |
65 'generate_profile.cc', | |
66 'thumbnail-inl.h', | |
67 ]) | |
68 | |
69 # TODO(port): | |
70 if env.Bit('windows'): | |
71 env.ChromeTestProgram('generate_profile', input_files) | |
72 | |
73 p = env.ChromeMSVSProject('generate_profile.vcproj', | |
74 dest=('$CHROME_SRC_DIR/chrome/' | |
75 + 'tools/profiles/generate_profile.vcproj'), | |
76 guid='{2E969AE9-7B12-4EDB-8E8B-48C7AE7BE357}', | |
77 keyword='Win32Proj', | |
78 dependencies = [ | |
79 '$BASE_DIR/build/base.vcproj', | |
80 '$WEBKIT_DIR/build/WebCore/WebCore.vcproj', | |
81 '$CHROME_DIR/plugin/plugin.vcproj', | |
82 '$LIBJPEG_DIR/libjpeg.vcproj', | |
83 '$BZIP2_DIR/bzip2.vcproj', | |
84 '$NET_DIR/build/net.vcproj', | |
85 ('$WEBKIT_DIR/build/JavaScriptCore/' + | |
86 'JavaScriptCore_pcre.vcproj'), | |
87 '$WEBKIT_DIR/build/port/port.vcproj', | |
88 '$CHROME_DIR/browser/debugger/debugger.vcproj', | |
89 ('$WEBKIT_DIR/default_plugin/' | |
90 + 'default_plugin.vcproj'), | |
91 '$CHROME_DIR/browser/browser.vcproj', | |
92 '$WEBKIT_DIR/build/V8Bindings/V8Bindings.vcproj', | |
93 '$SQLITE_DIR/sqlite.vcproj', | |
94 '$CHROME_DIR/views/views.vcproj', | |
95 '$MODP_B64_DIR/modp_b64.vcproj', | |
96 '$ZLIB_DIR/zlib.vcproj', | |
97 '$CHROME_DIR/common/common.vcproj', | |
98 '$ICU38_DIR/build/icu.vcproj', | |
99 '$CHROME_DIR/renderer/renderer.vcproj', | |
100 '$BASE_DIR/build/base_gfx.vcproj', | |
101 '$WEBKIT_DIR/build/JavaScriptCore/WTF.vcproj', | |
102 '$V8_DIR/tools/visual_studio/v8_snapshot.vcproj', | |
103 '$LIBPNG_DIR/libpng.vcproj', | |
104 '$WEBKIT_DIR/build/glue/glue.vcproj', | |
105 '$SKIA_DIR/skia.vcproj', | |
106 ('$CHROME_DIR/third_party/' | |
107 + 'hunspell/hunspell.vcproj'), | |
108 '$GOOGLEURL_DIR/build/googleurl.vcproj', | |
109 '$CHROME_DIR/installer/util/util.vcproj', | |
110 '$WEBKIT_DIR/activex_shim/activex_shim.vcproj', | |
111 '$SDCH_DIR/sdch.vcproj', | |
112 '$CHROME_DIR/browser/views/browser_views.vcproj', | |
113 '$LIBXSLT_DIR/build/libxslt.vcproj', | |
114 | |
115 ], | |
116 # TODO(sgk): when we can intuit the hierarchy | |
117 # from the built targets. | |
118 #buildtargets=TODO, | |
119 files=input_files, | |
120 relative_path_prefix='./', | |
121 tools=[ | |
122 'VCPreBuildEventTool', | |
123 'VCCustomBuildTool', | |
124 'VCXMLDataGeneratorTool', | |
125 'VCWebServiceProxyGeneratorTool', | |
126 'VCMIDLTool', | |
127 MSVSTool('VCCLCompilerTool', | |
128 AdditionalIncludeDirectories='../../..', | |
129 PreprocessorDefinitions='PERF_TEST'), | |
130 'VCManagedResourceCompilerTool', | |
131 'VCResourceCompilerTool', | |
132 'VCPreLinkEventTool', | |
133 MSVSTool('VCLinkerTool', | |
134 AdditionalDependencies=[ | |
135 'shlwapi.lib', | |
136 'rpcrt4.lib', | |
137 'winmm.lib' | |
138 ], | |
139 SubSystem='1'), | |
140 'VCALinkTool', | |
141 'VCManifestTool', | |
142 'VCXDCMakeTool', | |
143 'VCBscMakeTool', | |
144 'VCFxCopTool', | |
145 'VCAppVerifierTool', | |
146 'VCWebDeploymentTool', | |
147 'VCPostBuildEventTool', | |
148 ], | |
149 ConfigurationType='1') | |
150 | |
151 | |
152 p.AddConfig('Debug|Win32', | |
153 InheritedPropertySheets=[ | |
154 '$(SolutionDir)../build/common.vsprops', | |
155 '$(SolutionDir)../build/debug.vsprops', | |
156 '$(SolutionDir)../third_party/icu38/build/using_icu.vsprops', | |
157 '../../../skia/using_skia.vsprops', | |
158 ]) | |
159 | |
160 p.AddConfig('Release|Win32', | |
161 InheritedPropertySheets=[ | |
162 '$(SolutionDir)../build/common.vsprops', | |
163 '$(SolutionDir)../build/release.vsprops', | |
164 '$(SolutionDir)../third_party/icu38/build/using_icu.vsprops', | |
165 '../../../skia/using_skia.vsprops', | |
166 ]) | |
OLD | NEW |