summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsgk@google.com <sgk@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-03-09 19:02:53 +0000
committersgk@google.com <sgk@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-03-09 19:02:53 +0000
commit61dfaaf2f46c546ff98896087d503193e9a80ee1 (patch)
treeea308cac333dd34852e34c7cb76cbbb7242b2bd7
parent22ef2b177713a1206814cde489ba7fc7cbd6e05d (diff)
downloadchromium_src-61dfaaf2f46c546ff98896087d503193e9a80ee1.zip
chromium_src-61dfaaf2f46c546ff98896087d503193e9a80ee1.tar.gz
chromium_src-61dfaaf2f46c546ff98896087d503193e9a80ee1.tar.bz2
Initial Linux chrome.gyp changes (some courtesy mmoss):
* Exclude .m and .mm files on non-Mac platforms. * browser/autocomplete/edit_drop_target.{cc,h} are gone. * browser/gtk/browser_toolbar_view_gtk.{cc,h} => browser/gtk/browser_toolbar_gtk.{cc,h} * Target 'browser' needs net_resources.h to build on Linux. * Exclude to-be-ported browser/debugger files on Linux. * Comment out url_request_mock_http_job.cc in test_support. (It really belongs there, but it's currently used by production code in automation_provider.cc, so leave it there for now, with appropriate comments.) Review URL: http://codereview.chromium.org/39350 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@11269 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r--chrome/chrome.gyp34
1 files changed, 24 insertions, 10 deletions
diff --git a/chrome/chrome.gyp b/chrome/chrome.gyp
index 260c5b2..22b8816 100644
--- a/chrome/chrome.gyp
+++ b/chrome/chrome.gyp
@@ -24,7 +24,11 @@
['OS=="mac"', {'sources/': [
['include', '/cocoa/'],
['include', '_(cocoa|mac|posix)\\.(cc|mm?)$'],
- ]}],
+ ]}, { # else: OS != "mac"
+ 'sources/': [
+ ['exclude', '\\.mm?$'],
+ ],
+ }],
['OS=="win"', {'sources/': [
['include', '_(win)\\.cc$'],
['include', '/win_[^/]*\\.cc$'],
@@ -359,8 +363,6 @@
'browser/autocomplete/autocomplete_popup_view.h',
'browser/autocomplete/autocomplete_popup_view_win.cc',
'browser/autocomplete/autocomplete_popup_view_win.h',
- 'browser/autocomplete/edit_drop_target.cc',
- 'browser/autocomplete/edit_drop_target.h',
'browser/autocomplete/history_contents_provider.cc',
'browser/autocomplete/history_contents_provider.h',
'browser/autocomplete/history_url_provider.cc',
@@ -386,6 +388,8 @@
'browser/automation/ui_controls.h',
'browser/automation/url_request_failed_dns_job.cc',
'browser/automation/url_request_failed_dns_job.h',
+ # TODO: These should be moved to test_support (see below), but
+ # are currently used by production code in automation_provider.cc.
'browser/automation/url_request_mock_http_job.cc',
'browser/automation/url_request_mock_http_job.h',
'browser/automation/url_request_slow_download_job.cc',
@@ -596,8 +600,8 @@
'browser/google_util.h',
'browser/gtk/back_forward_menu_model_gtk.cc',
'browser/gtk/back_forward_menu_model_gtk.h',
- 'browser/gtk/browser_toolbar_view_gtk.cc',
- 'browser/gtk/browser_toolbar_view_gtk.h',
+ 'browser/gtk/browser_toolbar_gtk.cc',
+ 'browser/gtk/browser_toolbar_gtk.h',
'browser/gtk/browser_window_factory_gtk.cc',
'browser/gtk/browser_window_gtk.cc',
'browser/gtk/browser_window_gtk.h',
@@ -1137,6 +1141,17 @@
'browser/worker_host/worker_service.h',
],
'conditions': [
+ ['OS=="linux"', {
+ 'dependencies': [
+ '../net/net.gyp:net_resources',
+ ],
+ 'sources!': [
+ # TODO(port): Port these.
+ 'browser/debugger/debugger_contents.cc',
+ 'browser/debugger/debugger_view.cc',
+ 'browser/debugger/debugger_window.cc',
+ ],
+ }],
['OS=="win"', {
'defines': [
'__STD_C',
@@ -1156,8 +1171,6 @@
'browser/history/history_indexer.idl',
],
'sources!': [
- 'browser/autocomplete/edit_drop_target.cc',
- 'browser/autocomplete/edit_drop_target.h',
'browser/download/save_page_model.cc',
'browser/download/save_page_model.h',
'browser/history/history_publisher_none.cc',
@@ -1199,7 +1212,6 @@
'browser/autocomplete/autocomplete_accessibility.cc',
'browser/autocomplete/autocomplete_edit.cc',
'browser/autocomplete/autocomplete_popup_model.cc',
- 'browser/autocomplete/edit_drop_target.cc',
'browser/bookmarks/bookmark_context_menu.cc',
'browser/bookmarks/bookmark_drop_info.cc',
'browser/browser_accessibility.cc',
@@ -1545,8 +1557,10 @@
'..',
],
'sources': [
- 'browser/automation/url_request_mock_http_job.cc',
- 'browser/automation/url_request_mock_http_job.h',
+ # TODO: these should live here but are currently used by
+ # production code code in libbrowser (above).
+ #'browser/automation/url_request_mock_http_job.cc',
+ #'browser/automation/url_request_mock_http_job.h',
'browser/automation/url_request_mock_net_error_job.cc',
'browser/automation/url_request_mock_net_error_job.h',
'browser/renderer_host/mock_render_process_host.cc',