diff options
author | sgk@google.com <sgk@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-01-17 02:25:22 +0000 |
---|---|---|
committer | sgk@google.com <sgk@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-01-17 02:25:22 +0000 |
commit | caeb7a0ca33ec99cd3dc68e95ca23ca4aa7e8068 (patch) | |
tree | 26d23c79d97efa44f69d1b447ae4618bf34fc609 /chrome/browser/views/SConscript | |
parent | 75ddd63be217e7fed76f90578a8918ab75b3ead8 (diff) | |
download | chromium_src-caeb7a0ca33ec99cd3dc68e95ca23ca4aa7e8068.zip chromium_src-caeb7a0ca33ec99cd3dc68e95ca23ca4aa7e8068.tar.gz chromium_src-caeb7a0ca33ec99cd3dc68e95ca23ca4aa7e8068.tar.bz2 |
Generate all chrome .vcproj files:
* Path name translation (/ to \) of various MSVSTool attributes.
* Explicit keyword= arguments to MSVSProject. This will likely
go away eventually in favor of uniform behavior.
* Add a relative_path_substitutions array that can be used
to substitute in Visual Studio variable like $(OutDir).
* Add a local_directory_prefix that can be set to './' to only
affect files in the current directory.
* Additional Keyword ordering in Tool attributes to continue to
match the default order Visual Studio generates.
* Add a Derived() proxy class that can wrap a File node to tell
the .vcproj generation that we want the derived file, not its
source(s), in the file list.
* In the individual *.scons files, add the necessary files (mostly
.h files) to file lists, and update MSVSProject() calls with
the additional necessary information.
Result is identical .vcproj files modulo the following differences:
* Four locales .vcproj files (da, en-US, he and zh-TW) with
source file orders that don't match the other locale .vcproj
files have re-ordered file lists to match the rest.
* Cosmetic XML changes (white space, ending tags) in:
chrome/app/chrome_dll.vcproj
chrome/app/generated_resources.vcproj
net/build/net_resources.vcproj
* Removal or addition of ./ prefixes from various files that don't
match the other file specifications within their individual
.vcproj files:
chrome/installer/util/util.vcproj
net/build/net.vcproj
net/build/net_unittests.vcproj
* Add missing empty sections (<ToolFiles>, <References>, <Globals>)
for consistency with other .vcproj files:
chrome/tools/test/image_diff/image_diff.vcproj
third_party/libpng/libpng.vcproj
third_party/zlib/zlib.vcproj
* Add missing RootNameSpace attribute:
chrome/test/automation/automation.vcproj
testing/gtest.vcproj
* Use && instead of \r\n as a command separator, to sidestep
XML-generation problems:
chrome/app/chrome_exe.vcproj
* Remove unnecessary (?) duplicate files in the file list:
chrome/browser/views/browser_views.vcproj
(event_utils.cc and event_utils.h were duplicated)
Review URL: http://codereview.chromium.org/17603
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@8253 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/views/SConscript')
-rw-r--r-- | chrome/browser/views/SConscript | 233 |
1 files changed, 192 insertions, 41 deletions
diff --git a/chrome/browser/views/SConscript b/chrome/browser/views/SConscript index ccbfd3f..34fb138 100644 --- a/chrome/browser/views/SConscript +++ b/chrome/browser/views/SConscript @@ -50,99 +50,250 @@ env.Append( ], ) -input_files = [ +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('Frame', [ + 'frame/aero_glass_frame.cc', + 'frame/aero_glass_frame.h', + 'frame/aero_glass_non_client_view.cc', + 'frame/aero_glass_non_client_view.h', + 'frame/browser_frame.h', + 'frame/browser_view.cc', + 'frame/browser_view.h', + 'frame/browser_window_factory.cc', + 'frame/opaque_frame.cc', + 'frame/opaque_frame.h', + 'frame/opaque_non_client_view.cc', + 'frame/opaque_non_client_view.h', + ]), + MSVSFilter('Info Bars', [ + 'infobars/infobar_container.cc', + 'infobars/infobar_container.h', + 'infobars/infobars.cc', + 'infobars/infobars.h', + ]), + MSVSFilter('Options', [ + 'options/advanced_contents_view.cc', + 'options/advanced_contents_view.h', + 'options/advanced_page_view.cc', + 'options/advanced_page_view.h', + 'options/content_page_view.cc', + 'options/content_page_view.h', + 'options/cookies_view.cc', + 'options/cookies_view.h', + 'options/fonts_languages_window_view.cc', + 'options/fonts_languages_window_view.h', + 'options/fonts_page_view.cc', + 'options/fonts_page_view.h', + 'options/general_page_view.cc', + 'options/general_page_view.h', + 'options/language_combobox_model.cc', + 'options/language_combobox_model.h', + 'options/languages_page_view.cc', + 'options/languages_page_view.h', + 'options/options_group_view.cc', + 'options/options_group_view.h', + 'options/options_page_view.cc', + 'options/options_page_view.h', + 'options/options_window_view.cc', + ]), + MSVSFilter('Tabs', [ + 'tabs/dragged_tab_controller.cc', + 'tabs/dragged_tab_controller.h', + 'tabs/dragged_tab_view.cc', + 'tabs/dragged_tab_view.h', + 'tabs/hwnd_photobooth.cc', + 'tabs/hwnd_photobooth.h', + 'tabs/tab.cc', + 'tabs/tab.h', + 'tabs/tab_renderer.cc', + 'tabs/tab_renderer.h', + 'tabs/tab_strip.cc', + 'tabs/tab_strip.h', + ]), + MSVSFilter('Find Bar', [ + 'find_bar_view.cc', + 'find_bar_view.h', + 'find_bar_win.cc', + 'find_bar_win.h', + ]), 'about_chrome_view.cc', + 'about_chrome_view.h', 'blocked_popup_container.cc', + 'blocked_popup_container.h', 'bookmark_bar_view.cc', + 'bookmark_bar_view.h', 'bookmark_bubble_view.cc', + 'bookmark_bubble_view.h', 'bookmark_editor_view.cc', + 'bookmark_editor_view.h', 'bookmark_folder_tree_view.cc', + 'bookmark_folder_tree_view.h', 'bookmark_manager_view.cc', + 'bookmark_manager_view.h', 'bookmark_table_view.cc', + 'bookmark_table_view.h', 'bug_report_view.cc', + 'bug_report_view.h', 'clear_browsing_data.cc', + 'clear_browsing_data.h', 'constrained_window_impl.cc', + 'constrained_window_impl.h', 'delay_view.cc', + 'delay_view.h', 'dom_view.cc', + 'dom_view.h', 'download_item_view.cc', + 'download_item_view.h', 'download_shelf_view.cc', + 'download_shelf_view.h', 'download_started_animation.cc', - 'download_tab_view.cc', + 'download_started_animation.h', 'edit_keyword_controller.cc', + 'edit_keyword_controller.h', 'event_utils.cc', + 'event_utils.h', 'external_protocol_dialog.cc', - 'find_bar_view.cc', + 'external_protocol_dialog.h', 'first_run_bubble.cc', + 'first_run_bubble.h', 'first_run_customize_view.cc', + 'first_run_customize_view.h', 'first_run_view.cc', + 'first_run_view.h', 'first_run_view_base.cc', - 'frame/aero_glass_frame.cc', - 'frame/aero_glass_non_client_view.cc', - 'frame/browser_view.cc', - 'frame/browser_window_factory.cc', - 'frame/opaque_frame.cc', - 'frame/opaque_non_client_view.cc', + 'first_run_view_base.h', 'go_button.cc', + 'go_button.h', 'html_dialog_view.cc', + 'html_dialog_view.h', 'hung_renderer_view.cc', + 'hung_renderer_view.h', 'hwnd_html_view.cc', + 'hwnd_html_view.h', 'importer_lock_view.cc', + 'importer_lock_view.h', 'importer_view.cc', + 'importer_view.h', 'importing_progress_view.cc', + 'importing_progress_view.h', 'info_bubble.cc', - 'infobars/infobar_container.cc', - 'infobars/infobars.cc', + 'info_bubble.h', 'input_window.cc', + 'input_window.h', 'keyword_editor_view.cc', + 'keyword_editor_view.h', 'location_bar_view.cc', + 'location_bar_view.h', 'login_view.cc', + 'login_view.h', 'new_profile_dialog.cc', - 'options/advanced_contents_view.cc', - 'options/advanced_page_view.cc', - 'options/content_page_view.cc', - 'options/cookies_view.cc', - 'options/fonts_languages_window_view.cc', - 'options/fonts_page_view.cc', - 'options/general_page_view.cc', - 'options/language_combobox_model.cc', - 'options/languages_page_view.cc', - 'options/options_group_view.cc', - 'options/options_page_view.cc', - 'options/options_window_view.cc', + 'new_profile_dialog.h', 'page_info_window.cc', + 'page_info_window.h', 'password_manager_view.cc', + 'password_manager_view.h', + '$CHROME_DIR/tools/build/win/precompiled_wtl$OBJSUFFIX', + '$CHROME_DIR/tools/build/win/precompiled_wtl.h', 'restart_message_box.cc', + 'restart_message_box.h', 'sad_tab_view.cc', + 'sad_tab_view.h', 'select_profile_dialog.cc', + 'select_profile_dialog.h', 'shelf_item_dialog.cc', + 'shelf_item_dialog.h', 'shell_dialogs.cc', + 'standard_layout.h', 'star_toggle.cc', + 'star_toggle.h', 'status_bubble.cc', - 'tabs/dragged_tab_controller.cc', - 'tabs/dragged_tab_view.cc', - 'tabs/hwnd_photobooth.cc', - 'tabs/tab.cc', - 'tabs/tab_renderer.cc', - 'tabs/tab_strip.cc', - 'tab_icon_view.cc', + 'status_bubble.h', 'tab_contents_container_view.cc', + 'tab_contents_container_view.h', + 'tab_icon_view.cc', + 'tab_icon_view.h', 'theme_helpers.cc', + 'theme_helpers.h', 'toolbar_star_toggle.cc', + 'toolbar_star_toggle.h', 'toolbar_view.cc', + 'toolbar_view.h', 'user_data_dir_dialog.cc', -] + 'user_data_dir_dialog.h', +]) -if env.Bit('windows'): - input_files.extend([ +if not env.Bit('windows'): + input_files.Remove( 'find_bar_win.cc', - ]) + '$CHROME_DIR/tools/build/win/precompiled_wtl$OBJSUFFIX', + '$CHROME_DIR/tools/build/win/precompiled_wtl.h', + ) env.ChromeLibrary('browser_views', input_files) -env.ChromeMSVSProject('$CHROME_DIR/browser/views/browser_views.vcproj', - dependencies = [ - '$LIBXML_DIR/build/libxml_config.vcproj', - '$GOOGLE_UPDATE_DIR/ondemand_updates.vcproj', - '$CHROME_DIR/app/generated_resources.vcproj', - ], - guid='{FA537565-7B03-4FFC-AF15-F7A979B72E22}') +p = env.ChromeMSVSProject('browser_views.vcproj', + dest=('$CHROME_SRC_DIR/chrome/' + + 'browser/views/browser_views.vcproj'), + root_namespace='Browser_views', + guid='{FA537565-7B03-4FFC-AF15-F7A979B72E22}', + keyword='Win32Proj', + dependencies = [ + '$LIBXML_DIR/build/libxml_config.vcproj', + '$GOOGLE_UPDATE_DIR/ondemand_updates.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', + 'VCXMLDataGeneratorTool', + 'VCWebServiceProxyGeneratorTool', + 'VCMIDLTool', + 'VCCLCompilerTool', + 'VCManagedResourceCompilerTool', + 'VCResourceCompilerTool', + 'VCPreLinkEventTool', + 'VCLibrarianTool', + 'VCALinkTool', + 'VCXDCMakeTool', + 'VCBscMakeTool', + 'VCFxCopTool', + 'VCPostBuildEventTool', + ], + ConfigurationType='4') + + +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', + ]) |