| OLD | NEW |
| 1 # Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 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 | 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
| 4 | 4 |
| 5 Import('env') | 5 Import('env') |
| 6 | 6 |
| 7 env = env.Clone() | 7 env = env.Clone() |
| 8 | 8 |
| 9 if env.Bit('windows'): | 9 if env.Bit('windows'): |
| 10 env.Prepend( | 10 env.Prepend( |
| (...skipping 12 matching lines...) Expand all Loading... |
| 23 '$TARGET_ROOT/grit_derived_sources', | 23 '$TARGET_ROOT/grit_derived_sources', |
| 24 '$ICU38_DIR/public/common', | 24 '$ICU38_DIR/public/common', |
| 25 '$ICU38_DIR/public/i18n', | 25 '$ICU38_DIR/public/i18n', |
| 26 '$SKIA_DIR/include', | 26 '$SKIA_DIR/include', |
| 27 '$SKIA_DIR/include/corecg', | 27 '$SKIA_DIR/include/corecg', |
| 28 '$SKIA_DIR/include/platform', | 28 '$SKIA_DIR/include/platform', |
| 29 'third_party/wtl/include', | 29 'third_party/wtl/include', |
| 30 ], | 30 ], |
| 31 ) | 31 ) |
| 32 | 32 |
| 33 input_files = [ | 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 ]), |
| 34 'accelerator.cc', | 43 'accelerator.cc', |
| 44 'accelerator.h', |
| 35 'accelerator_handler.cc', | 45 'accelerator_handler.cc', |
| 36 'accessibility/accessible_wrapper.cc', | 46 'accelerator_handler.h', |
| 37 'accessibility/view_accessibility.cc', | |
| 38 'aero_tooltip_manager.cc', | 47 'aero_tooltip_manager.cc', |
| 48 'aero_tooltip_manager.h', |
| 49 'app_modal_dialog_delegate.h', |
| 39 'background.cc', | 50 'background.cc', |
| 51 'background.h', |
| 40 'base_button.cc', | 52 'base_button.cc', |
| 53 'base_button.h', |
| 41 'bitmap_scroll_bar.cc', | 54 'bitmap_scroll_bar.cc', |
| 55 'bitmap_scroll_bar.h', |
| 42 'border.cc', | 56 'border.cc', |
| 57 'border.h', |
| 43 'button.cc', | 58 'button.cc', |
| 59 'button.h', |
| 44 'button_dropdown.cc', | 60 'button_dropdown.cc', |
| 61 'button_dropdown.h', |
| 45 'checkbox.cc', | 62 'checkbox.cc', |
| 63 'checkbox.h', |
| 46 'chrome_menu.cc', | 64 'chrome_menu.cc', |
| 65 'chrome_menu.h', |
| 47 'client_view.cc', | 66 'client_view.cc', |
| 67 'client_view.h', |
| 48 'combo_box.cc', | 68 'combo_box.cc', |
| 69 'combo_box.h', |
| 70 'controller.h', |
| 49 'custom_frame_window.cc', | 71 'custom_frame_window.cc', |
| 72 'custom_frame_window.h', |
| 73 'decision.cc', |
| 74 'decision.h', |
| 75 'dialog_client_view.cc', |
| 76 'dialog_client_view.h', |
| 50 'dialog_delegate.cc', | 77 'dialog_delegate.cc', |
| 51 'dialog_client_view.cc', | 78 'dialog_delegate.h', |
| 52 'decision.cc', | |
| 53 'event.cc', | 79 'event.cc', |
| 80 'event.h', |
| 54 'external_focus_tracker.cc', | 81 'external_focus_tracker.cc', |
| 82 'external_focus_tracker.h', |
| 55 'focus_manager.cc', | 83 'focus_manager.cc', |
| 84 'focus_manager.h', |
| 56 'grid_layout.cc', | 85 'grid_layout.cc', |
| 86 'grid_layout.h', |
| 57 'group_table_view.cc', | 87 'group_table_view.cc', |
| 88 'group_table_view.h', |
| 89 'hwnd_notification_source.h', |
| 58 'hwnd_view.cc', | 90 'hwnd_view.cc', |
| 91 'hwnd_view.h', |
| 59 'image_view.cc', | 92 'image_view.cc', |
| 93 'image_view.h', |
| 60 'label.cc', | 94 'label.cc', |
| 95 'label.h', |
| 61 'layout_manager.cc', | 96 'layout_manager.cc', |
| 97 'layout_manager.h', |
| 62 'link.cc', | 98 'link.cc', |
| 99 'link.h', |
| 63 'menu.cc', | 100 'menu.cc', |
| 101 'menu.h', |
| 64 'menu_button.cc', | 102 'menu_button.cc', |
| 103 'menu_button.h', |
| 65 'message_box_view.cc', | 104 'message_box_view.cc', |
| 105 'message_box_view.h', |
| 66 'native_button.cc', | 106 'native_button.cc', |
| 107 'native_button.h', |
| 67 'native_control.cc', | 108 'native_control.cc', |
| 109 'native_control.h', |
| 68 'native_scroll_bar.cc', | 110 'native_scroll_bar.cc', |
| 111 'native_scroll_bar.h', |
| 69 'non_client_view.cc', | 112 'non_client_view.cc', |
| 113 'non_client_view.h', |
| 70 'painter.cc', | 114 'painter.cc', |
| 115 'painter.h', |
| 116 '$CHROME_DIR/tools/build/win/precompiled_wtl$OBJSUFFIX', |
| 117 '$CHROME_DIR/tools/build/win/precompiled_wtl.h', |
| 71 'radio_button.cc', | 118 'radio_button.cc', |
| 119 'radio_button.h', |
| 72 'repeat_controller.cc', | 120 'repeat_controller.cc', |
| 121 'repeat_controller.h', |
| 73 'resize_corner.cc', | 122 'resize_corner.cc', |
| 123 'resize_corner.h', |
| 74 'root_view.cc', | 124 'root_view.cc', |
| 125 'root_view.h', |
| 75 'root_view_drop_target.cc', | 126 'root_view_drop_target.cc', |
| 127 'root_view_drop_target.h', |
| 76 'scroll_bar.cc', | 128 'scroll_bar.cc', |
| 129 'scroll_bar.h', |
| 77 'scroll_view.cc', | 130 'scroll_view.cc', |
| 131 'scroll_view.h', |
| 78 'separator.cc', | 132 'separator.cc', |
| 133 'separator.h', |
| 79 'single_split_view.cc', | 134 'single_split_view.cc', |
| 135 'single_split_view.h', |
| 80 'tabbed_pane.cc', | 136 'tabbed_pane.cc', |
| 137 'tabbed_pane.h', |
| 81 'table_view.cc', | 138 'table_view.cc', |
| 139 'table_view.h', |
| 82 'text_button.cc', | 140 'text_button.cc', |
| 141 'text_button.h', |
| 83 'text_field.cc', | 142 'text_field.cc', |
| 143 'text_field.h', |
| 84 'throbber.cc', | 144 'throbber.cc', |
| 145 'throbber.h', |
| 85 'tooltip_manager.cc', | 146 'tooltip_manager.cc', |
| 147 'tooltip_manager.h', |
| 148 'tree_model.h', |
| 149 'tree_node_iterator.h', |
| 150 'tree_node_model.h', |
| 86 'tree_view.cc', | 151 'tree_view.cc', |
| 152 'tree_view.h', |
| 87 'view.cc', | 153 'view.cc', |
| 154 'view.h', |
| 88 'view_constants.cc', | 155 'view_constants.cc', |
| 156 'view_constants.h', |
| 157 'view_menu_delegate.h', |
| 89 'view_storage.cc', | 158 'view_storage.cc', |
| 159 'view_storage.h', |
| 160 'widget.h', |
| 90 'widget_win.cc', | 161 'widget_win.cc', |
| 162 'widget_win.h', |
| 91 'window.cc', | 163 'window.cc', |
| 164 'window.h', |
| 92 'window_delegate.cc', | 165 'window_delegate.cc', |
| 93 ] | 166 'window_delegate.h', |
| 167 'window_resources.h', |
| 168 ]) |
| 169 |
| 170 if not env.Bit('windows'): |
| 171 # Windows-specific. |
| 172 input_files.Remove( |
| 173 '$CHROME_DIR/tools/build/win/precompiled_wtl$OBJSUFFIX', |
| 174 '$CHROME_DIR/tools/build/win/precompiled_wtl.h', |
| 175 ) |
| 94 | 176 |
| 95 if env.Bit('linux'): | 177 if env.Bit('linux'): |
| 96 # TODO(port): Port to Linux. | 178 # TODO(port): Port to Linux. |
| 97 remove_files = [ | 179 input_files.Remove( |
| 98 'accelerator.cc', | 180 'accelerator.cc', |
| 99 'accelerator_handler.cc', | 181 'accelerator_handler.cc', |
| 100 'accessibility/accessible_wrapper.cc', | 182 'accessibility/accessible_wrapper.cc', |
| 101 'accessibility/view_accessibility.cc', | 183 'accessibility/view_accessibility.cc', |
| 102 'aero_tooltip_manager.cc', | 184 'aero_tooltip_manager.cc', |
| 103 'background.cc', | 185 'background.cc', |
| 104 'base_button.cc', | 186 'base_button.cc', |
| 105 'bitmap_scroll_bar.cc', | 187 'bitmap_scroll_bar.cc', |
| 106 'button.cc', | 188 'button.cc', |
| 107 'button_dropdown.cc', | 189 'button_dropdown.cc', |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 139 'table_view.cc', | 221 'table_view.cc', |
| 140 'text_button.cc', | 222 'text_button.cc', |
| 141 'text_field.cc', | 223 'text_field.cc', |
| 142 'throbber.cc', | 224 'throbber.cc', |
| 143 'tooltip_manager.cc', | 225 'tooltip_manager.cc', |
| 144 'tree_view.cc', | 226 'tree_view.cc', |
| 145 'view.cc', | 227 'view.cc', |
| 146 'widget_win.cc', | 228 'widget_win.cc', |
| 147 'window.cc', | 229 'window.cc', |
| 148 'window_delegate.cc', | 230 'window_delegate.cc', |
| 149 ] | 231 ) |
| 150 for file in remove_files: | |
| 151 input_files.remove(file) | |
| 152 | 232 |
| 153 if env.Bit('mac'): | 233 if env.Bit('mac'): |
| 154 # TODO(port): Port to Mac. | 234 # TODO(port): Port to Mac. |
| 155 remove_files = [ | 235 input_files.Remove( |
| 156 'accelerator.cc', | 236 'accelerator.cc', |
| 157 'accelerator_handler.cc', | 237 'accelerator_handler.cc', |
| 158 'accessibility/accessible_wrapper.cc', | 238 'accessibility/accessible_wrapper.cc', |
| 159 'accessibility/view_accessibility.cc', | 239 'accessibility/view_accessibility.cc', |
| 160 'aero_tooltip_manager.cc', | 240 'aero_tooltip_manager.cc', |
| 161 'background.cc', | 241 'background.cc', |
| 162 'base_button.cc', | 242 'base_button.cc', |
| 163 'bitmap_scroll_bar.cc', | 243 'bitmap_scroll_bar.cc', |
| 164 'border.cc', | 244 'border.cc', |
| 165 'button.cc', | 245 'button.cc', |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 204 'text_button.cc', | 284 'text_button.cc', |
| 205 'text_field.cc', | 285 'text_field.cc', |
| 206 'throbber.cc', | 286 'throbber.cc', |
| 207 'tooltip_manager.cc', | 287 'tooltip_manager.cc', |
| 208 'tree_view.cc', | 288 'tree_view.cc', |
| 209 'view.cc', | 289 'view.cc', |
| 210 'view_storage.cc', | 290 'view_storage.cc', |
| 211 'widget_win.cc', | 291 'widget_win.cc', |
| 212 'window.cc', | 292 'window.cc', |
| 213 'window_delegate.cc', | 293 'window_delegate.cc', |
| 214 ] | 294 ) |
| 215 for file in remove_files: | |
| 216 input_files.remove(file) | |
| 217 | 295 |
| 218 env.ChromeLibrary('views', input_files) | 296 env.ChromeLibrary('views', input_files) |
| 219 | 297 |
| 220 env.ChromeMSVSProject('$CHROME_DIR/views/views.vcproj', | 298 p = env.ChromeMSVSProject('views.vcproj', |
| 221 dependencies = [ | 299 dest='$CHROME_SRC_DIR/chrome/views/views.vcproj', |
| 222 '$CHROME_DIR/app/generated_resources.vcproj', | 300 guid='{6F9258E5-294F-47B2-919D-17FFE7A8B751}', |
| 223 ], | 301 keyword='Win32Proj', |
| 224 guid='{6F9258E5-294F-47B2-919D-17FFE7A8B751}') | 302 dependencies = [ |
| 303 '$CHROME_DIR/app/generated_resources.vcproj', |
| 304 ], |
| 305 # TODO(sgk): when we can intuit the hierarchy |
| 306 # from the built targets. |
| 307 #buildtargets=TODO, |
| 308 files=input_files, |
| 309 root_namespace = 'Views', |
| 310 relative_path_prefix='./', |
| 311 tools=[ |
| 312 'VCPreBuildEventTool', |
| 313 'VCCustomBuildTool', |
| 314 'VCXMLDataGeneratorTool', |
| 315 'VCWebServiceProxyGeneratorTool', |
| 316 'VCMIDLTool', |
| 317 'VCCLCompilerTool', |
| 318 'VCManagedResourceCompilerTool', |
| 319 'VCResourceCompilerTool', |
| 320 'VCPreLinkEventTool', |
| 321 'VCLibrarianTool', |
| 322 'VCALinkTool', |
| 323 'VCXDCMakeTool', |
| 324 'VCBscMakeTool', |
| 325 'VCFxCopTool', |
| 326 'VCPostBuildEventTool', |
| 327 ], |
| 328 ConfigurationType='4') |
| 329 |
| 330 p.AddConfig('Debug|Win32', |
| 331 InheritedPropertySheets=[ |
| 332 './views.vsprops', |
| 333 '$(SolutionDir)../build/debug.vsprops', |
| 334 '../tools/build/win/precompiled_wtl.vsprops', |
| 335 '../../third_party/icu38/build/using_icu.vsprops', |
| 336 ]) |
| 337 |
| 338 p.AddConfig('Release|Win32', |
| 339 InheritedPropertySheets=[ |
| 340 './views.vsprops', |
| 341 '$(SolutionDir)../build/release.vsprops', |
| 342 '../../third_party/icu38/build/using_icu.vsprops', |
| 343 ]) |
| 344 |
| 345 p.AddFileConfig('../tools/build/win/precompiled_wtl.cc', |
| 346 'Debug|Win32', |
| 347 tools=[ |
| 348 MSVSTool('VCCLCompilerTool', |
| 349 UsePrecompiledHeader='1'), |
| 350 ]) |
| OLD | NEW |