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.SConscript([ | |
10 '$CHROME_DIR/third_party/wtl/using_wtl.scons', | |
11 '$GRIT_DIR/build/using_generated_resources.scons', | |
12 '$ICU38_DIR/using_icu38.scons', | |
13 '$MEDIA_DIR/using_media.scons', | |
14 '$NPAPI_DIR/using_npapi.scons', | |
15 '$PRINTING_DIR/using_printing.scons', | |
16 '$SKIA_DIR/using_skia.scons', | |
17 ], {'env':env}) | |
18 | |
19 env.Prepend( | |
20 CPPPATH = [ | |
21 '$CHROME_SRC_DIR', | |
22 ], | |
23 ) | |
24 | |
25 env.Append( | |
26 LIBS = [ | |
27 'common', | |
28 ], | |
29 ) | |
30 | |
31 if env.Bit('windows'): | |
32 env.Prepend( | |
33 CPPPATH = [ | |
34 '$CHROME_DIR/tools/build/win', | |
35 ], | |
36 ) | |
37 | |
38 input_files = ChromeFileList([ | |
39 # TODO(sgk): violate standard indentation so we don't have to | |
40 # reindent too much when we remove the explicit MSVSFilter() calls | |
41 # in favor of generating the hierarchy to reflect the file system. | |
42 MSVSFilter('automation', [ | |
43 'automation/dom_automation_controller.cc', | |
44 'automation/dom_automation_controller.h', | |
45 ]), | |
46 MSVSFilter('media', [ | |
47 'media/audio_renderer_impl.cc', | |
48 'media/audio_renderer_impl.h', | |
49 'media/data_source_impl.cc', | |
50 'media/data_source_impl.h', | |
51 'media/video_renderer_impl.cc', | |
52 'media/video_renderer_impl.h', | |
53 ]), | |
54 MSVSFilter('net', [ | |
55 'net/render_dns_master.cc', | |
56 'net/render_dns_master.h', | |
57 'net/render_dns_queue.cc', | |
58 'net/render_dns_queue.h', | |
59 ]), | |
60 MSVSFilter('extensions', [ | |
61 'extensions/extension_process_bindings.cc', | |
62 'extensions/extension_process_bindings.h', | |
63 'extensions/renderer_extension_bindings.cc', | |
64 'extensions/renderer_extension_bindings.h', | |
65 ]), | |
66 'about_handler.cc', | |
67 'about_handler.h', | |
68 'debug_message_handler.cc', | |
69 'debug_message_handler.h', | |
70 'devtools_agent.cc', | |
71 'devtools_agent.h', | |
72 'devtools_client.cc', | |
73 'devtools_client.h', | |
74 'devtools_messages.h', | |
75 'devtools_messages_internal.h', | |
76 'dom_ui_bindings.cc', | |
77 'dom_ui_bindings.h', | |
78 'external_host_bindings.cc', | |
79 'external_host_bindings.h', | |
80 'external_js_object.cc', | |
81 'external_js_object.h', | |
82 'localized_error.cc', | |
83 'localized_error.h', | |
84 'plugin_channel_host.cc', | |
85 'plugin_channel_host.h', | |
86 '$CHROME_DIR/tools/build/win/precompiled_wtl$OBJSUFFIX', | |
87 '$CHROME_DIR/tools/build/win/precompiled_wtl.h', | |
88 'render_process.cc', | |
89 'render_process.h', | |
90 'render_thread.cc', | |
91 'render_thread.h', | |
92 'render_view.cc', | |
93 'render_view.h', | |
94 'render_widget.cc', | |
95 'render_widget.h', | |
96 'renderer_glue.cc', | |
97 'renderer_histogram_snapshots.cc', | |
98 'renderer_histogram_snapshots.h', | |
99 'renderer_webkitclient_impl.cc', | |
100 'renderer_webkitclient_impl.h', | |
101 'renderer_main.cc', | |
102 'renderer_resources.h', | |
103 'user_script_slave.cc', | |
104 'user_script_slave.h', | |
105 'visitedlink_slave.cc', | |
106 'visitedlink_slave.h', | |
107 'webmediaplayer_delegate_impl.cc', | |
108 'webmediaplayer_delegate_impl.h', | |
109 'webplugin_delegate_proxy.cc', | |
110 'webplugin_delegate_proxy.h', | |
111 'webworker_proxy.cc', | |
112 'webworker_proxy.h', | |
113 ]) | |
114 | |
115 if not env.Bit('windows'): | |
116 # Windows-specific. | |
117 input_files.Remove( | |
118 '$CHROME_DIR/tools/build/win/precompiled_wtl$OBJSUFFIX', | |
119 '$CHROME_DIR/tools/build/win/precompiled_wtl.h', | |
120 ) | |
121 | |
122 if env.Bit('linux'): | |
123 # Linux-specific. | |
124 input_files.Append( | |
125 'renderer_main_platform_delegate_linux.cc', | |
126 ) | |
127 | |
128 # TODO(port): Port these to Linux | |
129 input_files.Remove( | |
130 'plugin_channel_host.cc', | |
131 'webplugin_delegate_proxy.cc', | |
132 ) | |
133 | |
134 # TODO(port): Port these to Mac | |
135 if env.Bit('mac'): | |
136 input_files.Remove( | |
137 'debug_message_handler.cc', | |
138 'external_js_object.cc', | |
139 'net/render_dns_master.cc', | |
140 'plugin_channel_host.cc', | |
141 'render_view.cc', | |
142 'render_widget.cc', | |
143 'renderer_glue.cc', | |
144 'webplugin_delegate_proxy.cc', | |
145 ) | |
146 | |
147 | |
148 # TODO(port): Enable for Mac. | |
149 if not env.Bit('mac'): | |
150 env.ChromeLibrary('renderer', input_files) | |
151 | |
152 # TODO######################################################################## | |
153 | |
154 p = env.ChromeMSVSProject('renderer.vcproj', | |
155 dest=('$CHROME_SRC_DIR/chrome/' | |
156 + 'renderer/renderer.vcproj'), | |
157 guid='{9301A569-5D2B-4D11-9332-B1E30AEACB8D}', | |
158 keyword='Win32Proj', | |
159 dependencies = [ | |
160 '$CHROME_DIR/app/generated_resources.vcproj', | |
161 ], | |
162 # TODO(sgk): when we can intuit the hierarchy | |
163 # from the built targets. | |
164 #buildtargets=TODO, | |
165 files=input_files, | |
166 relative_path_prefix='./', | |
167 tools=[ | |
168 'VCPreBuildEventTool', | |
169 'VCCustomBuildTool', | |
170 'VCXMLDataGeneratorTool', | |
171 'VCWebServiceProxyGeneratorTool', | |
172 'VCMIDLTool', | |
173 'VCCLCompilerTool', | |
174 'VCManagedResourceCompilerTool', | |
175 'VCResourceCompilerTool', | |
176 'VCPreLinkEventTool', | |
177 'VCLibrarianTool', | |
178 'VCALinkTool', | |
179 'VCXDCMakeTool', | |
180 'VCBscMakeTool', | |
181 'VCFxCopTool', | |
182 'VCPostBuildEventTool', | |
183 ], | |
184 ConfigurationType='4') | |
185 | |
186 | |
187 p.AddConfig('Debug|Win32', | |
188 InheritedPropertySheets=[ | |
189 './renderer.vsprops', | |
190 '$(SolutionDir)../build/debug.vsprops', | |
191 '../tools/build/win/precompiled_wtl.vsprops', | |
192 ]) | |
193 | |
194 p.AddConfig('Release|Win32', | |
195 InheritedPropertySheets=[ | |
196 './renderer.vsprops', | |
197 '$(SolutionDir)../build/release.vsprops', | |
198 ]) | |
199 | |
200 p.AddFileConfig('../tools/build/win/precompiled_wtl.cc', | |
201 'Debug|Win32', | |
202 tools=[ | |
203 MSVSTool('VCCLCompilerTool', | |
204 UsePrecompiledHeader='1'), | |
205 ]) | |
OLD | NEW |