blob: 9728dcba65c73f205c4ca99b8e190201918148d8 [file] [log] [blame]
# Copyright (c) 2006-2008 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
Import('env')
env = env.Clone()
env.SConscript([
'$CHROME_DIR/third_party/hunspell/using_hunspell.scons',
'$CHROME_DIR/third_party/wtl/using_wtl.scons',
'$GOOGLE_UPDATE_DIR/using_google_update.scons',
'$GRIT_DIR/build/using_generated_resources.scons',
'$GTEST_DIR/../using_gtest.scons',
'$ICU38_DIR/using_icu38.scons',
'$LIBPNG_DIR/using_libpng.scons',
'$LIBXML_DIR/using_libxml.scons',
'$NPAPI_DIR/using_npapi.scons',
'$SKIA_DIR/using_skia.scons',
'$ZLIB_DIR/using_zlib.scons',
], {'env':env})
env.Prepend(
CPPPATH = [
'$CHROME_DIR/app',
'$CHROME_SRC_DIR',
# To get the #include of history_indexer.h,
# generated from history/history_indexer.idl.
'history',
],
)
if env.Bit('windows'):
env.Prepend(
CPPPATH = [
'$CHROME_DIR/tools/build/win',
],
)
input_files = ChromeFileList([
# TODO(sgk): violate standard indentation so we don't have to
# reindent too much when we remove the explicit MSVSFilter() calls
# in favor of generating the hierarchy to reflect the file system.
MSVSFilter('Autocomplete', [
'autocomplete/autocomplete.cc',
'autocomplete/autocomplete.h',
'autocomplete/autocomplete_accessibility.cc',
'autocomplete/autocomplete_accessibility.h',
'autocomplete/autocomplete_edit.cc',
'autocomplete/autocomplete_edit.h',
'autocomplete/autocomplete_popup.cc',
'autocomplete/autocomplete_popup.h',
'autocomplete/edit_drop_target.cc',
'autocomplete/edit_drop_target.h',
'autocomplete/history_contents_provider.cc',
'autocomplete/history_contents_provider.h',
'autocomplete/history_url_provider.cc',
'autocomplete/history_url_provider.h',
'autocomplete/keyword_provider.cc',
'autocomplete/keyword_provider.h',
'autocomplete/search_provider.cc',
'autocomplete/search_provider.h',
]),
MSVSFilter('Base', [
'alternate_nav_url_fetcher.cc',
'alternate_nav_url_fetcher.h',
'browser_about_handler.cc',
'browser_about_handler.h',
'browser_init.cc',
'browser_init.h',
'browser_main.cc',
'browser_main_win.cc',
'browser_prefs.cc',
'browser_prefs.h',
'browser_process.cc',
'browser_process.h',
'browser_process_impl.cc',
'browser_process_impl.h',
'browser_resources.h',
'browser_shutdown.cc',
'browser_shutdown.h',
'browser_url_handler.cc',
'browser_url_handler.h',
'browsing_data_remover.cc',
'browsing_data_remover.h',
'browsing_instance.cc',
'browsing_instance.h',
'cache_manager_host.cc',
'cache_manager_host.h',
'cancelable_request.cc',
'cancelable_request.h',
'character_encoding.cc',
'character_encoding.h',
'chrome_thread.cc',
'chrome_thread.h',
'cross_site_request_manager.cc',
'cross_site_request_manager.h',
'fav_icon_helper.cc',
'fav_icon_helper.h',
'first_run.cc',
'first_run.h',
'google_url_tracker.cc',
'google_url_tracker.h',
'google_util.cc',
'google_util.h',
'icon_loader.cc',
'icon_loader.h',
'icon_manager.cc',
'icon_manager.h',
'ime_input.cc',
'ime_input.h',
'jankometer.cc',
'jankometer.h',
'memory_details.cc',
'memory_details.h',
'meta_table_helper.cc',
'meta_table_helper.h',
'plugin_process_host.cc',
'plugin_process_host.h',
'plugin_process_info.h',
'plugin_service.cc',
'plugin_service.h',
'../tools/build/win/precompiled_wtl.cc',
'../tools/build/win/precompiled_wtl.h',
'profile.cc',
'profile.h',
'profile_manager.cc',
'profile_manager.h',
'render_view_host.cc',
'render_view_host.h',
'render_view_host_delegate.h',
'render_widget_helper.cc',
'render_widget_helper.h',
'render_widget_host.cc',
'render_widget_host.h',
'render_widget_host_view.h',
'render_widget_host_view_win.cc',
'render_widget_host_view_win.h',
'resource_message_filter.cc',
'resource_message_filter.h',
'resource_request_details.h',
'session_startup_pref.cc',
'session_startup_pref.h',
'shell_dialogs.h',
'shell_integration.cc',
'shell_integration.h',
'spellcheck_worditerator.cc',
'spellcheck_worditerator.h',
'spellchecker.cc',
'spellchecker.h',
'user_data_manager.cc',
'user_data_manager.h',
'visitedlink_master.cc',
'visitedlink_master.h',
'web_app.cc',
'web_app.h',
'web_app_launcher.cc',
'web_app_launcher.h',
]),
MSVSFilter('Bookmarks', [
'bookmarks/bookmark_codec.cc',
'bookmarks/bookmark_codec.h',
'bookmarks/bookmark_context_menu.cc',
'bookmarks/bookmark_context_menu.h',
'bookmarks/bookmark_drag_data.cc',
'bookmarks/bookmark_drag_data.h',
'bookmarks/bookmark_drop_info.cc',
'bookmarks/bookmark_drop_info.h',
'bookmarks/bookmark_folder_tree_model.cc',
'bookmarks/bookmark_folder_tree_model.h',
'bookmarks/bookmark_html_writer.cc',
'bookmarks/bookmark_html_writer.h',
'bookmarks/bookmark_model.cc',
'bookmarks/bookmark_model.h',
'bookmarks/bookmark_service.h',
'bookmarks/bookmark_storage.cc',
'bookmarks/bookmark_storage.h',
'bookmarks/bookmark_table_model.cc',
'bookmarks/bookmark_table_model.h',
'bookmarks/bookmark_utils.cc',
'bookmarks/bookmark_utils.h',
]),
MSVSFilter('Tab Contents (Old)', [
'render_view_context_menu.cc',
'render_view_context_menu.h',
'render_view_context_menu_controller.cc',
'render_view_context_menu_controller.h',
'render_view_host_manager.cc',
'render_view_host_manager.h',
'security_style.h',
]),
MSVSFilter('Browser Window', [
'app_modal_dialog_queue.cc',
'app_modal_dialog_queue.h',
'back_forward_menu_model.cc',
'back_forward_menu_model.h',
'browser.cc',
'browser.h',
'browser_list.cc',
'browser_list.h',
'browser_window.h',
'controller.cc',
'controller.h',
'dock_info.cc',
'dock_info.h',
'find_notification_details.h',
'js_before_unload_handler.cc',
'js_before_unload_handler.h',
'jsmessage_box_handler.cc',
'jsmessage_box_handler.h',
'load_from_memory_cache_details.h',
'load_notification_details.h',
'login_prompt.cc',
'login_prompt.h',
'options_window.h',
'repost_form_warning_dialog.cc',
'repost_form_warning_dialog.h',
'task_manager.cc',
'task_manager.h',
'task_manager_resource_providers.cc',
'task_manager_resource_providers.h',
'web_app_icon_manager.cc',
'web_app_icon_manager.h',
'window_sizer.cc',
'window_sizer.h',
]),
MSVSFilter('Policy', [
'renderer_security_policy.cc',
'renderer_security_policy.h',
]),
MSVSFilter('Destination', [
'base_history_model.cc',
'base_history_model.h',
'views/download_tab_view.cc',
'views/download_tab_view.h',
'history_model.cc',
'history_model.h',
'history_view.cc',
'history_view.h',
]),
MSVSFilter('Automation', [
'automation/automation_autocomplete_edit_tracker.h',
'automation/automation_browser_tracker.h',
'automation/automation_constrained_window_tracker.h',
'automation/automation_provider.cc',
'automation/automation_provider.h',
'automation/automation_provider_list.cc',
'automation/automation_provider_list.h',
'automation/automation_resource_tracker.cc',
'automation/automation_resource_tracker.h',
'automation/automation_tab_tracker.h',
'automation/automation_window_tracker.h',
'automation/ui_controls.cc',
'automation/ui_controls.h',
'automation/url_request_failed_dns_job.cc',
'automation/url_request_failed_dns_job.h',
'automation/url_request_mock_http_job.cc',
'automation/url_request_mock_http_job.h',
'automation/url_request_mock_net_error_job.cc',
'automation/url_request_mock_net_error_job.h',
'automation/url_request_slow_download_job.cc',
'automation/url_request_slow_download_job.h',
'view_ids.h',
]),
MSVSFilter('History', [
'history/archived_database.cc',
'history/archived_database.h',
'history/download_database.cc',
'history/download_database.h',
'history/download_types.h',
'history/expire_history_backend.cc',
'history/expire_history_backend.h',
'history/history.cc',
'history/history.h',
'history/history_backend.cc',
'history/history_backend.h',
'history/history_database.cc',
'history/history_database.h',
'history/history_indexer.idl',
'history/history_marshaling.h',
'history/history_notifications.h',
'history/history_publisher.cc',
'history/history_publisher.h',
'history/history_types.cc',
'history/history_types.h',
'history/in_memory_database.cc',
'history/in_memory_database.h',
'history/in_memory_history_backend.cc',
'history/in_memory_history_backend.h',
'history/page_usage_data.cc',
'history/page_usage_data.h',
'history/query_parser.cc',
'history/query_parser.h',
'history/snippet.cc',
'history/snippet.h',
'history/starred_url_database.cc',
'history/starred_url_database.h',
'history/text_database.cc',
'history/text_database.h',
'history/text_database_manager.cc',
'history/text_database_manager.h',
'history/thumbnail_database.cc',
'history/thumbnail_database.h',
'history/url_database.cc',
'history/url_database.h',
'history/visit_database.cc',
'history/visit_database.h',
'history/visit_tracker.cc',
'history/visit_tracker.h',
'history/visitsegment_database.cc',
'history/visitsegment_database.h',
MSVSFilter('HangMonitor', [
'hang_monitor/hung_plugin_action.cc',
'hang_monitor/hung_plugin_action.h',
'hang_monitor/hung_window_detector.cc',
'hang_monitor/hung_window_detector.h',
]),
]),
MSVSFilter('Sessions and Tab Restore', [
'sessions/base_session_service.cc',
'sessions/base_session_service.h',
'sessions/session_backend.cc',
'sessions/session_backend.h',
'sessions/session_command.cc',
'sessions/session_command.h',
'sessions/session_id.cc',
'sessions/session_id.h',
'sessions/session_restore.cc',
'sessions/session_restore.h',
'sessions/session_service.cc',
'sessions/session_service.h',
'sessions/session_types.cc',
'sessions/session_types.h',
'sessions/tab_restore_service.cc',
'sessions/tab_restore_service.h',
]),
MSVSFilter('WebData', [
'webdata/web_data_service.cc',
'webdata/web_data_service.h',
'webdata/web_database.cc',
'webdata/web_database.h',
'webdata/web_database_win.cc',
]),
MSVSFilter('Importer', [
'importer/firefox2_importer.cc',
'importer/firefox2_importer.h',
'importer/firefox3_importer.cc',
'importer/firefox3_importer.h',
'importer/firefox_importer_utils.cc',
'importer/firefox_importer_utils.h',
'importer/firefox_profile_lock.cc',
'importer/firefox_profile_lock.h',
'importer/firefox_profile_lock_win.cc',
'importer/ie_importer.cc',
'importer/ie_importer.h',
'importer/importer.cc',
'importer/importer.h',
'importer/mork_reader.cc',
'importer/mork_reader.h',
'importer/toolbar_importer.cc',
'importer/toolbar_importer.h',
]),
MSVSFilter('Drag & Drop', [
'drag_utils.cc',
'drag_utils.h',
]),
MSVSFilter('Tabs', [
'tabs/tab_strip_model.cc',
'tabs/tab_strip_model.h',
'tabs/tab_strip_model_order_controller.cc',
'tabs/tab_strip_model_order_controller.h',
]),
MSVSFilter('Printing', [
'printing/page_number.cc',
'printing/page_number.h',
'printing/page_overlays.cc',
'printing/page_overlays.h',
'printing/page_range.cc',
'printing/page_range.h',
'printing/page_setup.cc',
'printing/page_setup.h',
'printing/print_job.cc',
'printing/print_job.h',
'printing/print_job_manager.cc',
'printing/print_job_manager.h',
'printing/print_job_worker.cc',
'printing/print_job_worker.h',
'printing/print_job_worker_owner.h',
'printing/print_settings.cc',
'printing/print_settings.h',
'printing/print_view_manager.cc',
'printing/print_view_manager.h',
'printing/printed_document.cc',
'printing/printed_document.h',
'printing/printed_page.cc',
'printing/printed_page.h',
'printing/printed_pages_source.h',
'printing/printer_query.cc',
'printing/printer_query.h',
'printing/units.cc',
'printing/units.h',
'printing/win_printing_context.cc',
'printing/win_printing_context.h',
]),
MSVSFilter('Sandbox', [
'sandbox_policy.cc',
'sandbox_policy.h',
]),
MSVSFilter('Password Manager', [
'password_manager/encryptor.cc',
'password_manager/encryptor.h',
'password_manager/ie7_password.cc',
'password_manager/ie7_password.h',
'password_manager/password_form_manager.cc',
'password_manager/password_form_manager.h',
'password_manager/password_manager.cc',
'password_manager/password_manager.h',
]),
MSVSFilter('External Tab', [
'external_tab_container.cc',
'external_tab_container.h',
]),
MSVSFilter('DOM UI', [
'dom_ui/chrome_url_data_manager.cc',
'dom_ui/chrome_url_data_manager.h',
'dom_ui/dom_ui.cc',
'dom_ui/dom_ui.h',
'dom_ui/dom_ui_contents.cc',
'dom_ui/dom_ui_contents.h',
'dom_ui/dom_ui_host.cc',
'dom_ui/dom_ui_host.h',
'dom_ui/history_ui.cc',
'dom_ui/history_ui.h',
'dom_ui/html_dialog_contents.cc',
'dom_ui/html_dialog_contents.h',
'dom_ui/new_tab_ui.cc',
'dom_ui/new_tab_ui.h',
]),
MSVSFilter('NativeUI', [
'history_tab_ui.cc',
'history_tab_ui.h',
]),
MSVSFilter('Net', [
'net/chrome_url_request_context.cc',
'net/chrome_url_request_context.h',
'net/dns_global.cc',
'net/dns_global.h',
'net/dns_host_info.cc',
'net/dns_host_info.h',
'net/dns_master.cc',
'net/dns_master.h',
'net/dns_slave.cc',
'net/dns_slave.h',
'net/referrer.cc',
'net/referrer.h',
'net/sdch_dictionary_fetcher.cc',
'net/sdch_dictionary_fetcher.h',
'net/url_fetcher.cc',
'net/url_fetcher.h',
'net/url_fetcher_protect.cc',
'net/url_fetcher_protect.h',
'net/url_fixer_upper.cc',
'net/url_fixer_upper.h',
]),
MSVSFilter('RLZ', [
'rlz/rlz.cc',
'rlz/rlz.h',
]),
MSVSFilter('Safe Browsing', [
'safe_browsing/bloom_filter.cc',
'safe_browsing/bloom_filter.h',
'safe_browsing/chunk_range.cc',
'safe_browsing/chunk_range.h',
'safe_browsing/protocol_manager.cc',
'safe_browsing/protocol_manager.h',
'safe_browsing/protocol_parser.cc',
'safe_browsing/protocol_parser.h',
'safe_browsing/safe_browsing_blocking_page.cc',
'safe_browsing/safe_browsing_blocking_page.h',
'safe_browsing/safe_browsing_database.cc',
'safe_browsing/safe_browsing_database.h',
'safe_browsing/safe_browsing_database_bloom.cc',
'safe_browsing/safe_browsing_database_bloom.h',
'safe_browsing/safe_browsing_database_impl.cc',
'safe_browsing/safe_browsing_database_impl.h',
'safe_browsing/safe_browsing_service.cc',
'safe_browsing/safe_browsing_service.h',
'safe_browsing/safe_browsing_util.cc',
'safe_browsing/safe_browsing_util.h',
]),
MSVSFilter('Accessibility', [
'browser_accessibility.cc',
'browser_accessibility.h',
'browser_accessibility_manager.cc',
'browser_accessibility_manager.h',
'iaccessible_function_ids.h',
]),
MSVSFilter('Download', [
'download/download_exe.cc',
'download/download_file.cc',
'download/download_file.h',
'download/download_item_model.cc',
'download/download_item_model.h',
'download/download_manager.cc',
'download/download_manager.h',
'download/download_request_manager.cc',
'download/download_request_manager.h',
'download/download_util.cc',
'download/download_util.h',
]),
MSVSFilter('Save Page', [
'download/save_file.cc',
'download/save_file.h',
'download/save_file_manager.cc',
'download/save_file_manager.h',
'download/save_item.cc',
'download/save_item.h',
'download/save_package.cc',
'download/save_package.h',
'download/save_page_model.cc',
'download/save_page_model.h',
'download/save_types.h',
]),
MSVSFilter('Autofill', [
'autofill_manager.cc',
'autofill_manager.h',
]),
MSVSFilter('Extensions', [
'extensions/extension.cc',
'extensions/extension.h',
'extensions/extension_protocols.cc',
'extensions/extension_protocols.h',
'extensions/extensions_service.cc',
'extensions/extensions_service.h',
'extensions/user_script_master.cc',
'extensions/user_script_master.h',
]),
MSVSFilter('Renderer Host', [
'renderer_host/async_resource_handler.cc',
'renderer_host/async_resource_handler.h',
'renderer_host/browser_render_process_host.cc',
'renderer_host/browser_render_process_host.h',
'renderer_host/buffered_resource_handler.cc',
'renderer_host/buffered_resource_handler.h',
'renderer_host/cross_site_resource_handler.cc',
'renderer_host/cross_site_resource_handler.h',
'renderer_host/download_resource_handler.cc',
'renderer_host/download_resource_handler.h',
'renderer_host/download_throttling_resource_handler.cc',
'renderer_host/download_throttling_resource_handler.h',
'renderer_host/render_process_host.cc',
'renderer_host/render_process_host.h',
'renderer_host/resource_dispatcher_host.cc',
'renderer_host/resource_dispatcher_host.h',
'renderer_host/resource_handler.h',
'renderer_host/safe_browsing_resource_handler.cc',
'renderer_host/safe_browsing_resource_handler.h',
'renderer_host/save_file_resource_handler.cc',
'renderer_host/save_file_resource_handler.h',
'renderer_host/sync_resource_handler.cc',
'renderer_host/sync_resource_handler.h',
]),
MSVSFilter('Tab Contents', [
'tab_contents/about_internets_status_view.cc',
'tab_contents/about_internets_status_view.h',
'tab_contents/constrained_window.h',
'tab_contents/infobar_delegate.cc',
'tab_contents/infobar_delegate.h',
'tab_contents/interstitial_page.cc',
'tab_contents/interstitial_page.h',
'tab_contents/ipc_status_view.cc',
'tab_contents/ipc_status_view.h',
'tab_contents/native_ui_contents.cc',
'tab_contents/native_ui_contents.h',
'tab_contents/navigation_controller.cc',
'tab_contents/navigation_controller.h',
'tab_contents/navigation_entry.cc',
'tab_contents/navigation_entry.h',
'tab_contents/network_status_view.cc',
'tab_contents/network_status_view.h',
'tab_contents/page_navigator.h',
'tab_contents/provisional_load_details.cc',
'tab_contents/provisional_load_details.h',
'tab_contents/site_instance.cc',
'tab_contents/site_instance.h',
'tab_contents/status_view.cc',
'tab_contents/status_view.h',
'tab_contents/tab_contents.cc',
'tab_contents/tab_contents.h',
'tab_contents/tab_contents_delegate.h',
'tab_contents/tab_contents_factory.cc',
'tab_contents/tab_contents_factory.h',
'tab_contents/tab_contents_type.h',
'tab_contents/tab_util.cc',
'tab_contents/tab_util.h',
'tab_contents/view_source_contents.cc',
'tab_contents/view_source_contents.h',
'tab_contents/web_contents.cc',
'tab_contents/web_contents.h',
'tab_contents/web_contents_view.cc',
'tab_contents/web_contents_view.h',
'tab_contents/web_contents_view_win.cc',
'tab_contents/web_contents_view_win.h',
'tab_contents/web_drag_source.cc',
'tab_contents/web_drag_source.h',
'tab_contents/web_drop_target.cc',
'tab_contents/web_drop_target.h',
]),
MSVSFilter('Search Engines', [
'search_engines/template_url.cc',
'search_engines/template_url.h',
'search_engines/template_url_fetcher.cc',
'search_engines/template_url_fetcher.h',
'search_engines/template_url_model.cc',
'search_engines/template_url_model.h',
'search_engines/template_url_parser.cc',
'search_engines/template_url_parser.h',
'search_engines/template_url_prepopulate_data.cc',
'search_engines/template_url_prepopulate_data.h',
]),
MSVSFilter('Metrics', [
'metrics/metrics_log.cc',
'metrics/metrics_log.h',
'metrics/metrics_response.cc',
'metrics/metrics_response.h',
'metrics/metrics_service.cc',
'metrics/metrics_service.h',
'metrics/user_metrics.cc',
'metrics/user_metrics.h',
]),
MSVSFilter('SSL', [
'ssl/ssl_blocking_page.cc',
'ssl/ssl_blocking_page.h',
'ssl/ssl_error_info.cc',
'ssl/ssl_error_info.h',
'ssl/ssl_manager.cc',
'ssl/ssl_manager.h',
'ssl/ssl_policy.cc',
'ssl/ssl_policy.h',
]),
'browser_trial.cc',
'browser_trial.h',
'cert_store.cc',
'cert_store.h',
'chrome_plugin_browsing_context.cc',
'chrome_plugin_browsing_context.h',
'chrome_plugin_host.cc',
'encoding_menu_controller_delegate.cc',
'encoding_menu_controller_delegate.h',
'external_protocol_handler.cc',
'external_protocol_handler.h',
'gears_integration.cc',
'gears_integration.h',
'google_update.cc',
'google_update.h',
'modal_html_dialog_delegate.cc',
'modal_html_dialog_delegate.h',
'page_state.cc',
'page_state.h',
'plugin_installer.cc',
'plugin_installer.h',
'toolbar_model.cc',
'toolbar_model.h',
])
if env.Bit('mac'):
input_files.Remove(
'spellchecker.cc',
)
if not env.Bit('windows'):
# TODO: Port these.
input_files.Remove(
'autofill_manager.cc',
'alternate_nav_url_fetcher.cc',
'app_modal_dialog_queue.cc',
'autocomplete/autocomplete.cc',
'autocomplete/autocomplete_accessibility.cc',
'autocomplete/autocomplete_edit.cc',
'autocomplete/autocomplete_popup.cc',
'autocomplete/edit_drop_target.cc',
'autocomplete/history_contents_provider.cc',
'autocomplete/history_url_provider.cc',
'autocomplete/search_provider.cc',
'automation/automation_provider.cc',
'automation/automation_provider_list.cc',
'automation/ui_controls.cc',
'back_forward_menu_model.cc',
'base_history_model.cc',
'bookmarks/bookmark_context_menu.cc',
'bookmarks/bookmark_drag_data.cc',
'bookmarks/bookmark_drop_info.cc',
'bookmarks/bookmark_folder_tree_model.cc',
'bookmarks/bookmark_model.cc',
'bookmarks/bookmark_storage.cc',
'bookmarks/bookmark_table_model.cc',
'bookmarks/bookmark_utils.cc',
'browser.cc',
'browser_about_handler.cc',
'browser_accessibility.cc',
'browser_accessibility_manager.cc',
'browser_init.cc',
'browser_list.cc',
'browser_main.cc',
'browser_prefs.cc',
'browser_process_impl.cc',
'browser_shutdown.cc',
'browser_url_handler.cc',
'browsing_data_remover.cc',
'browsing_instance.cc',
'cache_manager_host.cc',
'cert_store.cc',
'character_encoding.cc',
'chrome_plugin_host.cc',
'controller.cc',
'dock_info.cc',
'dom_ui/dom_ui_contents.cc',
'dom_ui/dom_ui_host.cc',
'dom_ui/dom_ui.cc',
'dom_ui/history_ui.cc',
'dom_ui/html_dialog_contents.cc',
'dom_ui/new_tab_ui.cc',
'download/download_exe.cc',
'download/download_file.cc',
'download/download_item_model.cc',
'download/download_manager.cc',
'download/download_util.cc',
'download/download_request_manager.cc',
'download/save_file_manager.cc',
'download/save_item.cc',
'download/save_package.cc',
'download/save_page_model.cc',
'drag_utils.cc',
'encoding_menu_controller_delegate.cc',
'external_protocol_handler.cc',
'external_tab_container.cc',
'fav_icon_helper.cc',
'first_run.cc',
'gears_integration.cc',
'hang_monitor/hung_plugin_action.cc',
'hang_monitor/hung_window_detector.cc',
'history/history.cc',
'history/history_publisher.cc',
'history_tab_ui.cc',
'history_view.cc',
'icon_loader.cc',
'icon_manager.cc',
'ime_input.cc',
'importer/firefox_importer_utils.cc',
'importer/ie_importer.cc',
'importer/importer.cc',
'importer/toolbar_importer.cc',
'jankometer.cc',
'js_before_unload_handler.cc',
'jsmessage_box_handler.cc',
'login_prompt.cc',
'memory_details.cc',
'metrics/metrics_service.cc',
'modal_html_dialog_delegate.cc',
'net/dns_global.cc',
'net/dns_master.cc',
'net/dns_slave.cc',
'net/url_fixer_upper.cc',
'google_update.cc',
'password_manager/encryptor.cc',
'password_manager/ie7_password.cc',
'password_manager/password_manager.cc',
'plugin_installer.cc',
'plugin_process_host.cc',
'plugin_service.cc',
'printing/page_overlays.cc',
'printing/print_job.cc',
'printing/print_job_manager.cc',
'printing/print_job_worker.cc',
'printing/print_settings.cc',
'printing/print_view_manager.cc',
'printing/printed_document.cc',
'printing/printed_page.cc',
'printing/printer_query.cc',
'printing/win_printing_context.cc',
'profile.cc',
'profile_manager.cc',
'render_view_context_menu.cc',
'render_view_context_menu_controller.cc',
'render_view_host.cc',
'render_view_host_manager.cc',
'render_widget_helper.cc',
'render_widget_host.cc',
'renderer_host/cross_site_resource_handler.cc',
'renderer_host/render_process_host.cc',
'renderer_host/browser_render_process_host.cc',
'renderer_host/resource_dispatcher_host.cc',
'repost_form_warning_dialog.cc',
'resource_message_filter.cc',
'rlz/rlz.cc',
'safe_browsing/protocol_manager.cc',
'safe_browsing/safe_browsing_blocking_page.cc',
'sandbox_policy.cc',
'search_engines/template_url_fetcher.cc',
'search_engines/template_url_prepopulate_data.cc',
'sessions/base_session_service.cc',
'sessions/session_backend.cc',
'sessions/session_restore.cc',
'sessions/session_service.cc',
'sessions/session_types.cc',
'sessions/tab_restore_service.cc',
'shell_integration.cc',
'ssl/ssl_blocking_page.cc',
'ssl/ssl_manager.cc',
'ssl/ssl_policy.cc',
'tab_contents/about_internets_status_view.cc',
'tab_contents/infobar_delegate.cc',
'tab_contents/interstitial_page.cc',
'tab_contents/ipc_status_view.cc',
'tab_contents/native_ui_contents.cc',
'tab_contents/navigation_controller.cc',
'tab_contents/navigation_entry.cc',
'tab_contents/network_status_view.cc',
'tab_contents/site_instance.cc',
'tab_contents/status_view.cc',
'tab_contents/tab_contents.cc',
'tab_contents/tab_contents_factory.cc',
'tab_contents/tab_util.cc',
'tab_contents/view_source_contents.cc',
'tab_contents/web_contents.cc',
'tab_contents/web_contents_view.cc',
'tab_contents/web_drag_source.cc',
'tab_contents/web_drop_target.cc',
'tabs/tab_strip_model.cc',
'tabs/tab_strip_model_order_controller.cc',
'task_manager.cc',
'task_manager_resource_providers.cc',
'toolbar_model.cc',
'user_data_manager.cc',
'views/download_tab_view.cc',
'visitedlink_master.cc',
'web_app.cc',
'web_app_icon_manager.cc',
'web_app_launcher.cc',
'window_sizer.cc',
)
input_files.Remove(
'browser_main_win.cc',
'importer/firefox_profile_lock_win.cc',
'password_manager/password_form_manager_win.cc',
'render_widget_host_view_win.cc',
'tab_contents/web_contents_view_win.cc',
'webdata/web_data_service_win.cc',
'webdata/web_database_win.cc',
'../tools/build/win/precompiled_wtl.cc',
'../tools/build/win/precompiled_wtl.h',
)
if env.Bit('windows'):
env.TypeLibrary('history/history_indexer.idl')
if not env.Bit('posix'):
input_files.Remove(
'importer/firefox_profile_lock_posix.cc',
)
if not env.Bit('mac'):
# TODO: This should work for all platforms.
env.ChromeLibrary('browser', input_files)
p = env.ChromeMSVSProject('browser.vcproj',
dest='$CHROME_SRC_DIR/chrome/browser/browser.vcproj',
guid='{5BF908A7-68FB-4A4B-99E3-8C749F1FE4EA}',
keyword='Win32Proj',
root_namespace='Browser',
dependencies = [
'$LIBXML_DIR/build/libxml_config.vcproj',
'$GOOGLE_UPDATE_DIR/ondemand_updates.vcproj',
'$NET_DIR/build/net_resources.vcproj',
'$CHROME_DIR/app/generated_resources.vcproj',
],
# TODO(sgk): when we can intuit the hierarchy
# from the built targets.
#buildtargets=TODO,
files=input_files,
relative_path_prefix='./',
tools=[
'VCPreBuildEventTool',
'VCCustomBuildTool',
'Resource text file copy',
'VCXMLDataGeneratorTool',
'VCWebServiceProxyGeneratorTool',
'VCMIDLTool',
'VCCLCompilerTool',
'VCManagedResourceCompilerTool',
'VCResourceCompilerTool',
'VCPreLinkEventTool',
'VCLibrarianTool',
'VCALinkTool',
'VCXDCMakeTool',
'VCBscMakeTool',
'VCFxCopTool',
'VCPostBuildEventTool',
],
ConfigurationType='4')
p.AddToolFile('../tools/build/win/resource_text_file_copy.rules')
p.AddConfig('Debug|Win32',
InheritedPropertySheets=[
'./browser.vsprops',
'$(SolutionDir)../build/debug.vsprops',
'../tools/build/win/precompiled_wtl.vsprops',
])
p.AddConfig('Release|Win32',
InheritedPropertySheets=[
'./browser.vsprops',
'$(SolutionDir)../build/release.vsprops',
'$(SolutionDir)/tools/build/win/js_engine.vsprops',
])
p.AddFileConfig('../tools/build/win/precompiled_wtl.cc',
'Debug|Win32',
tools=[
MSVSTool('VCCLCompilerTool',
UsePrecompiledHeader='1'),
])
p.AddFileConfig('../tools/build/win/precompiled_wtl.cc',
'Release|Win32',
ExcludedFromBuild='true',
tools=[
'VCCLCompilerTool',
])
xmldoc_files = [
'net/url_fetcher.cc',
'net/url_fetcher_protect.cc',
'net/url_fixer_upper.cc',
'password_manager/encryptor.cc',
'search_engines/template_url.cc',
'search_engines/template_url_fetcher.cc',
'search_engines/template_url_model.cc',
'search_engines/template_url_parser.cc',
'search_engines/template_url_prepopulate_data.cc',
'ssl/ssl_blocking_page.cc',
'ssl/ssl_error_info.cc',
'ssl/ssl_manager.cc',
'ssl/ssl_policy.cc',
'tab_contents/interstitial_page.cc',
'tab_contents/native_ui_contents.cc',
'tab_contents/navigation_controller.cc',
'tab_contents/navigation_entry.cc',
'tab_contents/provisional_load_details.cc',
'tab_contents/site_instance.cc',
'tab_contents/web_drag_source.cc',
'tab_contents/web_drop_target.cc',
]
xmldoc_tool_list = [
MSVSTool('VCCLCompilerTool',
XMLDocumentationFileName=('$(IntDir)/$(InputName)1.xdc'),
ObjectFile='$(IntDir)/$(InputName)1.obj'),
]
for filename in xmldoc_files:
p.AddFileConfig(filename, 'Debug|Win32', xmldoc_tool_list)
p.AddFileConfig(filename, 'Release|Win32', xmldoc_tool_list)