diff options
author | sgk@google.com <sgk@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-03-20 23:13:26 +0000 |
---|---|---|
committer | sgk@google.com <sgk@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-03-20 23:13:26 +0000 |
commit | 9d384037786ac2912d2ffc82cd1718d8383d8d9f (patch) | |
tree | fc85e1d240d0b31c1dd488fcb1723133290d8291 /chrome/chrome.gyp | |
parent | e66eaf0cc9fe5c6c17ffee01fc2d370270b9e07f (diff) | |
download | chromium_src-9d384037786ac2912d2ffc82cd1718d8383d8d9f.zip chromium_src-9d384037786ac2912d2ffc82cd1718d8383d8d9f.tar.gz chromium_src-9d384037786ac2912d2ffc82cd1718d8383d8d9f.tar.bz2 |
Update the gyp Linux build:
* Add Linux settings to target_defaults in common.gypi so
gyp-generated SConscript files no longer depend on
build/SConscript.main or the Hammer infrastructure.
* Copy the FilterOut() function from Hammer to the chromium_builders.py
Tool module.
* Add a ChromiumLoadableModule() builder to chromium_builders.py.
* Add dependencies on the 'views' library to the chrome link (target 'app').
* Add missing views/*/*_unittest.cc modules to the 'unit_tests' target.
Exclude all but the one that builds on Linux from the non-Windows builds.
* Crib a list of chrome/views files to exclude from the Linux build
from the old SCons configuration.
* Add a new build/linux/system.gyp file with new 'settings' targets
to encapsulate the pkg-config checks for gtk+-2.0, nss and pangoft2.
* Add depenedencies in the other targets on the new gtk, nss and
pangoft2 'settings' targets from build/linux/system.gyp.
* Add a pkg_config_wrapper.py script that keeps gyp happy by
simply exiting 0 if the package isn't found.
* DEPS roll for latest gyp changes to support the above.
Review URL: http://codereview.chromium.org/42340
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@12228 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/chrome.gyp')
-rw-r--r-- | chrome/chrome.gyp | 134 |
1 files changed, 126 insertions, 8 deletions
diff --git a/chrome/chrome.gyp b/chrome/chrome.gyp index 17e0d61..31bd64c 100644 --- a/chrome/chrome.gyp +++ b/chrome/chrome.gyp @@ -304,7 +304,11 @@ ], }, 'conditions': [ - ['OS!="linux"', { + ['OS=="linux"', { + 'dependencies': [ + '../build/linux/system.gyp:gtk', + ], + }, { # else: 'OS!="linux"' 'sources!': [ 'third_party/xdg_user_dirs/xdg_user_dir_lookup.cc', ], @@ -1207,6 +1211,9 @@ ], 'conditions': [ ['OS=="linux"', { + 'dependencies': [ + '../build/linux/system.gyp:gtk', + ], 'sources!': [ 'browser/debugger/debugger_shell_stubs.cc', # Windows-specific files. @@ -1414,6 +1421,11 @@ ], }, 'conditions': [ + ['OS=="linux"', { + 'dependencies': [ + '../build/linux/system.gyp:gtk', + ], + }], ['OS=="win"', { 'include_dirs': [ 'third_party/wtl/include', @@ -1489,6 +1501,11 @@ }, 'conditions': [ ['OS=="linux"', { + 'dependencies': [ + 'views', + # Needed for chrome_dll_main.cc #include of gtk/gtk.h + '../build/linux/system.gyp:gtk', + ], 'copies': [ { 'destination': '<(PRODUCT_DIR)', @@ -1704,6 +1721,11 @@ 'test/testing_profile.h', ], 'conditions': [ + ['OS=="linux"', { + 'dependencies': [ + '../build/linux/system.gyp:gtk', + ], + }], ['OS=="win"', { 'include_dirs': [ 'third_party/wtl/include', @@ -1739,6 +1761,11 @@ 'test/ui/ui_test_suite.h', ], 'conditions': [ + ['OS=="linux"', { + 'dependencies': [ + '../build/linux/system.gyp:gtk', + ], + }], ['OS!="win"', { 'sources!': [ 'test/ui/npapi_test_helper.cc', @@ -1761,6 +1788,17 @@ 'sources': [ 'test/unit/run_all_unittests.cc', ], + 'conditions': [ + ['OS=="linux"', { + 'dependencies': [ + # Needed for the following #include chain: + # test/unit/run_all_unittests.cc + # test/unit/chrome_test_suite.h + # gtk/gtk.h + '../build/linux/system.gyp:gtk', + ], + }], + ], }, { 'target_name': 'ipc_tests', @@ -1781,6 +1819,13 @@ 'common/ipc_tests.cc', 'common/ipc_tests.h', ], + 'conditions': [ + ['OS=="linux"', { + 'dependencies': [ + '../build/linux/system.gyp:gtk', + ], + }], + ], }, { 'target_name': 'ui_tests', @@ -1857,6 +1902,10 @@ ], 'conditions': [ ['OS=="linux"', { + 'dependencies': [ + 'views', + '../build/linux/system.gyp:gtk', + ], 'sources!': [ # TODO(port) 'app/chrome_main_uitest.cc', @@ -1881,9 +1930,6 @@ 'test/ui/layout_plugin_uitest.cpp', 'test/ui/omnibox_uitest.cc', ], - 'dependencies': [ - 'views', - ], }], ['OS=="mac"', { # mac tests load the resources from the built app beside the test @@ -2089,11 +2135,19 @@ 'test/test_tab_contents.h', 'test/v8_unit_test.cc', 'test/v8_unit_test.h', + 'views/controls/label_unittest.cc', + 'views/controls/table/table_view_unittest.cc', + 'views/controls/tree/tree_node_iterator_unittest.cc', + 'views/focus/focus_manager_unittest.cc', + 'views/grid_layout_unittest.cc', + 'views/view_unittest.cc', ], 'conditions': [ ['OS=="linux"', { 'dependencies': [ 'views', + '../build/linux/system.gyp:gtk', + '../build/linux/system.gyp:nss', ], }], ['OS=="win"', { @@ -2112,8 +2166,7 @@ 'dependencies': [ 'views', ], - },], - ['OS!="win"', { + }, { # else: OS != "win" 'sources!': [ 'browser/back_forward_menu_model_unittest.cc', 'browser/bookmarks/bookmark_drag_data_unittest.cc', @@ -2166,6 +2219,11 @@ 'test/test_notification_tracker.h', 'test/ui_test_utils.cc', 'test/ui_test_utils.h', + 'views/controls/label_unittest.cc', + 'views/controls/table/table_view_unittest.cc', + 'views/focus/focus_manager_unittest.cc', + 'views/grid_layout_unittest.cc', + 'views/view_unittest.cc', ], }], ], @@ -2190,6 +2248,11 @@ 'tools/build/win/precompiled.h', ], 'conditions': [ + ['OS=="linux"', { + 'dependencies': [ + '../build/linux/system.gyp:gtk', + ], + }], ['OS!="win"', { 'sources!': [ 'test/startup/feature_startup_test.cc', @@ -2243,6 +2306,11 @@ ], 'conditions': [ ['OS!="win"', { + 'dependencies': [ + '../build/linux/system.gyp:gtk', + ], + }], + ['OS!="win"', { 'sources!': [ 'tools/build/win/precompiled.cc', 'tools/build/win/precompiled.h', @@ -2269,6 +2337,9 @@ ], 'conditions': [ ['OS=="linux"', { + 'dependencies': [ + '../build/linux/system.gyp:gtk', + ], 'sources!': [ # TODO(port): 'browser/visitedlink_perftest.cc', @@ -2439,9 +2510,52 @@ 'views/window/window_win.cc', 'views/window/window_win.h', ], - # These are layered in conditionals in the event other platforms - # end up using this module as well. 'conditions': [ + ['OS=="linux"', { + 'dependencies': [ + '../build/linux/system.gyp:gtk', + ], + 'sources!': [ + 'views/accelerator.cc', + 'views/accessibility/accessible_wrapper.cc', + 'views/accessibility/view_accessibility.cc', + 'views/controls/scrollbar/bitmap_scroll_bar.cc', + 'views/controls/button/image_button.cc', + 'views/controls/button/button_dropdown.cc', + 'views/controls/button/checkbox.cc', + 'views/controls/menu/chrome_menu.cc', + 'views/controls/combo_box.cc', + 'views/focus/focus_manager.cc', + 'views/controls/table/group_table_view.cc', + 'views/controls/hwnd_view.cc', + 'views/controls/link.cc', + 'views/controls/menu/menu.cc', + 'views/controls/button/menu_button.cc', + 'views/controls/message_box_view.cc', + 'views/controls/button/native_button.cc', + 'views/controls/native_control.cc', + 'views/controls/scrollbar/native_scroll_bar.cc', + 'views/controls/button/radio_button.cc', + 'views/resize_corner.cc', + 'views/controls/separator.cc', + 'views/controls/single_split_view.cc', + 'views/controls/tabbed_pane.cc', + 'views/controls/table/table_view.cc', + 'views/controls/text_field.cc', + 'views/controls/tree/tree_view.cc', + 'views/widget/accelerator_handler.cc', + 'views/widget/aero_tooltip_manager.cc', + 'views/widget/root_view_drop_target.cc', + 'views/widget/tooltip_manager.cc', + 'views/window/client_view.cc', + 'views/window/custom_frame_view.cc', + 'views/window/dialog_delegate.cc', + 'views/window/dialog_client_view.cc', + 'views/window/native_frame_view.cc', + 'views/window/non_client_view.cc', + 'views/window/window_delegate.cc', + ], + }], ['OS=="win"', { 'defines': [ '__STD_C', @@ -2499,6 +2613,10 @@ }], ], }, + ], + }], # OS=="win" or OS=="linux" + ['OS=="win"', + { 'targets': [ { 'target_name': 'plugin', 'type': 'static_library', |