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 if env.Bit('windows'): | |
10 env.Prepend( | |
11 CPPPATH = [ | |
12 '$CHROME_DIR/tools/build/win', | |
13 '$CHROME_SRC_DIR', | |
14 ], | |
15 CCFLAGS = [ | |
16 '/TP', | |
17 #'/Wp64', | |
18 ], | |
19 ) | |
20 | |
21 env.Append( | |
22 CPPPATH = [ | |
23 '$TARGET_ROOT/grit_derived_sources', | |
24 '$ICU38_DIR/public/common', | |
25 '$ICU38_DIR/public/i18n', | |
26 '$SKIA_DIR/include', | |
27 '$SKIA_DIR/include/corecg', | |
28 '$SKIA_DIR/include/platform', | |
29 'third_party/wtl/include', | |
30 ], | |
31 ) | |
32 | |
33 input_files = ChromeFileList([ | |
34 # TODO(sgk): violate standard indentation so we don't have to | |
35 # reindent too much when we remove the explicit MSVSFilter() calls | |
36 # in favor of generating the hierarchy to reflect the file system. | |
37 MSVSFilter('Accessibility', [ | |
38 'accessibility/accessible_wrapper.cc', | |
39 'accessibility/accessible_wrapper.h', | |
40 'accessibility/view_accessibility.cc', | |
41 'accessibility/view_accessibility.h', | |
42 ]), | |
43 'accelerator.cc', | |
44 'accelerator.h', | |
45 'background.cc', | |
46 'background.h', | |
47 'controls/button/button.cc', | |
48 'controls/button/button.h', | |
49 'controls/scrollbar/bitmap_scroll_bar.cc', | |
50 'controls/scrollbar/bitmap_scroll_bar.h', | |
51 'border.cc', | |
52 'border.h', | |
53 'controls/button/custom_button.cc', | |
54 'controls/button/custom_button.h', | |
55 'controls/button/image_button.cc', | |
56 'controls/button/image_button.h', | |
57 'controls/button/button_dropdown.cc', | |
58 'controls/button/button_dropdown.h', | |
59 'controls/button/checkbox.cc', | |
60 'controls/button/checkbox.h', | |
61 'controls/menu/chrome_menu.cc', | |
62 'controls/menu/chrome_menu.h', | |
63 'controls/combo_box.cc', | |
64 'controls/combo_box.h', | |
65 'controls/menu/controller.h', | |
66 'event.cc', | |
67 'event.h', | |
68 'focus/external_focus_tracker.cc', | |
69 'focus/external_focus_tracker.h', | |
70 'focus/focus_manager.cc', | |
71 'focus/focus_manager.h', | |
72 'focus/view_storage.cc', | |
73 'focus/view_storage.h', | |
74 'fill_layout.cc', | |
75 'fill_layout.h', | |
76 'grid_layout.cc', | |
77 'grid_layout.h', | |
78 'controls/table/group_table_view.cc', | |
79 'controls/table/group_table_view.h', | |
80 'controls/hwnd_view.cc', | |
81 'controls/hwnd_view.h', | |
82 'controls/image_view.cc', | |
83 'controls/image_view.h', | |
84 'controls/label.cc', | |
85 'controls/label.h', | |
86 'layout_manager.cc', | |
87 'layout_manager.h', | |
88 'controls/link.cc', | |
89 'controls/link.h', | |
90 'controls/menu/menu.cc', | |
91 'controls/menu/menu.h', | |
92 'controls/button/menu_button.cc', | |
93 'controls/button/menu_button.h', | |
94 'controls/message_box_view.cc', | |
95 'controls/message_box_view.h', | |
96 'controls/button/native_button.cc', | |
97 'controls/button/native_button.h', | |
98 'controls/native_control.cc', | |
99 'controls/native_control.h', | |
100 'controls/scrollbar/native_scroll_bar.cc', | |
101 'controls/scrollbar/native_scroll_bar.h', | |
102 'painter.cc', | |
103 'painter.h', | |
104 '$CHROME_DIR/tools/build/win/precompiled_wtl$OBJSUFFIX', | |
105 '$CHROME_DIR/tools/build/win/precompiled_wtl.h', | |
106 'controls/button/radio_button.cc', | |
107 'controls/button/radio_button.h', | |
108 'repeat_controller.cc', | |
109 'repeat_controller.h', | |
110 'resize_corner.cc', | |
111 'resize_corner.h', | |
112 'controls/scrollbar/scroll_bar.cc', | |
113 'controls/scrollbar/scroll_bar.h', | |
114 'controls/scroll_view.cc', | |
115 'controls/scroll_view.h', | |
116 'controls/separator.cc', | |
117 'controls/separator.h', | |
118 'controls/single_split_view.cc', | |
119 'controls/single_split_view.h', | |
120 'controls/tabbed_pane.cc', | |
121 'controls/tabbed_pane.h', | |
122 'controls/table/table_view.cc', | |
123 'controls/table/table_view.h', | |
124 'controls/button/text_button.cc', | |
125 'controls/button/text_button.h', | |
126 'controls/text_field.cc', | |
127 'controls/text_field.h', | |
128 'controls/throbber.cc', | |
129 'controls/throbber.h', | |
130 'controls/tree/tree_model.h', | |
131 'controls/tree/tree_node_iterator.h', | |
132 'controls/tree/tree_node_model.h', | |
133 'controls/tree/tree_view.cc', | |
134 'controls/tree/tree_view.h', | |
135 'view.cc', | |
136 'view.h', | |
137 'view_constants.cc', | |
138 'view_constants.h', | |
139 'controls/menu/view_menu_delegate.h', | |
140 'widget/accelerator_handler.cc', | |
141 'widget/accelerator_handler.h', | |
142 'widget/aero_tooltip_manager.cc', | |
143 'widget/aero_tooltip_manager.h', | |
144 'widget/hwnd_notification_source.h', | |
145 'widget/root_view.cc', | |
146 'widget/root_view.h', | |
147 'widget/root_view_drop_target.cc', | |
148 'widget/root_view_drop_target.h', | |
149 'widget/tooltip_manager.cc', | |
150 'widget/tooltip_manager.h', | |
151 'widget/widget.h', | |
152 'widget/widget_win.cc', | |
153 'widget/widget_win.h', | |
154 'window/app_modal_dialog_delegate.h', | |
155 'window/client_view.cc', | |
156 'window/client_view.h', | |
157 'window/custom_frame_view.cc', | |
158 'window/custom_frame_view.h', | |
159 'window/dialog_client_view.cc', | |
160 'window/dialog_client_view.h', | |
161 'window/dialog_delegate.cc', | |
162 'window/dialog_delegate.h', | |
163 'window/native_frame_view.cc', | |
164 'window/native_frame_view.h', | |
165 'window/non_client_view.cc', | |
166 'window/non_client_view.h', | |
167 'window/window.h', | |
168 'window/window_delegate.cc', | |
169 'window/window_delegate.h', | |
170 'window/window_resources.h', | |
171 ]) | |
172 | |
173 if not env.Bit('windows'): | |
174 # Windows-specific. | |
175 input_files.Remove( | |
176 '$CHROME_DIR/tools/build/win/precompiled_wtl$OBJSUFFIX', | |
177 '$CHROME_DIR/tools/build/win/precompiled_wtl.h', | |
178 ) | |
179 | |
180 if env.Bit('windows'): | |
181 input_files += [ | |
182 "view_win.cc", | |
183 "widget/root_view_win.cc" | |
184 ] | |
185 | |
186 if env.Bit('linux'): | |
187 input_files += [ | |
188 'event_gtk.cc', | |
189 'view_gtk.cc', | |
190 'widget/root_view_gtk.cc', | |
191 'widget/widget_gtk.cc' | |
192 ] | |
193 # TODO(port?): Incomplete and undecided Views stuff. These compile but aren't | |
194 # currently needed, and they break the shared build due to missing symbols | |
195 # (from files that aren't yet ported). | |
196 # | |
197 # TOD(erg): Commenting this section out because we're trying to get views to | |
198 # compile under Linux again. | |
199 # input_files.Remove( | |
200 # 'background.cc', | |
201 # 'border.cc', | |
202 # 'focus/external_focus_tracker.cc', | |
203 # 'focus/view_storage.cc', | |
204 # 'grid_layout.cc', | |
205 # 'controls/image_view.cc', | |
206 # 'controls/label.cc', | |
207 # 'layout_manager.cc', | |
208 # 'painter.cc', | |
209 # 'repeat_controller.cc', | |
210 # 'controls/scrollbar/scroll_bar.cc', | |
211 # 'controls/scroll_view.cc', | |
212 # 'controls/throbber.cc', | |
213 # 'view.cc', | |
214 # 'widget/root_view.cc', | |
215 # ) | |
216 | |
217 # TODO(port): Port to Linux. | |
218 input_files.Remove( | |
219 'accelerator.cc', | |
220 'accessibility/accessible_wrapper.cc', | |
221 'accessibility/view_accessibility.cc', | |
222 'controls/scrollbar/bitmap_scroll_bar.cc', | |
223 'controls/button/image_button.cc', | |
224 'controls/button/button_dropdown.cc', | |
225 'controls/button/checkbox.cc', | |
226 'controls/menu/chrome_menu.cc', | |
227 'controls/combo_box.cc', | |
228 'focus/focus_manager.cc', | |
229 'controls/table/group_table_view.cc', | |
230 'controls/hwnd_view.cc', | |
231 'controls/link.cc', | |
232 'controls/menu/menu.cc', | |
233 'controls/button/menu_button.cc', | |
234 'controls/message_box_view.cc', | |
235 'controls/button/native_button.cc', | |
236 'controls/native_control.cc', | |
237 'controls/scrollbar/native_scroll_bar.cc', | |
238 'controls/button/radio_button.cc', | |
239 'resize_corner.cc', | |
240 'controls/separator.cc', | |
241 'controls/single_split_view.cc', | |
242 'controls/tabbed_pane.cc', | |
243 'controls/table/table_view.cc', | |
244 'controls/text_field.cc', | |
245 'controls/tree/tree_view.cc', | |
246 'widget/accelerator_handler.cc', | |
247 'widget/aero_tooltip_manager.cc', | |
248 'widget/root_view_drop_target.cc', | |
249 'widget/tooltip_manager.cc', | |
250 'widget/widget_win.cc', | |
251 'window/client_view.cc', | |
252 'window/custom_frame_view.cc', | |
253 'window/dialog_delegate.cc', | |
254 'window/dialog_client_view.cc', | |
255 'window/native_frame_view.cc', | |
256 'window/non_client_view.cc', | |
257 'window/window_delegate.cc', | |
258 'window/window_win.cc', | |
259 ) | |
260 | |
261 env.ChromeLibrary('views', input_files) | |
262 | |
263 p = env.ChromeMSVSProject('views.vcproj', | |
264 dest='$CHROME_SRC_DIR/chrome/views/views.vcproj', | |
265 guid='{6F9258E5-294F-47B2-919D-17FFE7A8B751}', | |
266 keyword='Win32Proj', | |
267 dependencies = [ | |
268 '$CHROME_DIR/app/generated_resources.vcproj', | |
269 ], | |
270 # TODO(sgk): when we can intuit the hierarchy | |
271 # from the built targets. | |
272 #buildtargets=TODO, | |
273 files=input_files, | |
274 root_namespace = 'Views', | |
275 relative_path_prefix='./', | |
276 tools=[ | |
277 'VCPreBuildEventTool', | |
278 'VCCustomBuildTool', | |
279 'VCXMLDataGeneratorTool', | |
280 'VCWebServiceProxyGeneratorTool', | |
281 'VCMIDLTool', | |
282 'VCCLCompilerTool', | |
283 'VCManagedResourceCompilerTool', | |
284 'VCResourceCompilerTool', | |
285 'VCPreLinkEventTool', | |
286 'VCLibrarianTool', | |
287 'VCALinkTool', | |
288 'VCXDCMakeTool', | |
289 'VCBscMakeTool', | |
290 'VCFxCopTool', | |
291 'VCPostBuildEventTool', | |
292 ], | |
293 ConfigurationType='4') | |
294 | |
295 p.AddConfig('Debug|Win32', | |
296 InheritedPropertySheets=[ | |
297 './views.vsprops', | |
298 '$(SolutionDir)../build/debug.vsprops', | |
299 '../tools/build/win/precompiled_wtl.vsprops', | |
300 '../../third_party/icu38/build/using_icu.vsprops', | |
301 ]) | |
302 | |
303 p.AddConfig('Release|Win32', | |
304 InheritedPropertySheets=[ | |
305 './views.vsprops', | |
306 '$(SolutionDir)../build/release.vsprops', | |
307 '../../third_party/icu38/build/using_icu.vsprops', | |
308 ]) | |
309 | |
310 p.AddFileConfig('../tools/build/win/precompiled_wtl.cc', | |
311 'Debug|Win32', | |
312 tools=[ | |
313 MSVSTool('VCCLCompilerTool', | |
314 UsePrecompiledHeader='1'), | |
315 ]) | |
OLD | NEW |