Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(808)

Side by Side Diff: chrome/chrome.gyp

Issue 279004: Made sync code build and pass unit tests on OS X. (Closed)
Patch Set: Fixed uninitialized var error. Created 11 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 # Copyright (c) 2009 The Chromium Authors. All rights reserved. 1 # Copyright (c) 2009 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 { 5 {
6 'variables': { 6 'variables': {
7 'chromium_code': 1, 7 'chromium_code': 1,
8 8
9 'variables': { 9 'variables': {
10 'version_py_path': 'tools/build/version.py', 10 'version_py_path': 'tools/build/version.py',
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after
148 'conditions': [ 148 'conditions': [
149 ['branding=="Chrome"', { 149 ['branding=="Chrome"', {
150 'mac_bundle_id': 'com.google.Chrome', 150 'mac_bundle_id': 'com.google.Chrome',
151 'mac_creator': 'rimZ', 151 'mac_creator': 'rimZ',
152 }, { # else: branding!="Chrome" 152 }, { # else: branding!="Chrome"
153 'mac_bundle_id': 'org.chromium.Chromium', 153 'mac_bundle_id': 'org.chromium.Chromium',
154 'mac_creator': 'Cr24', 154 'mac_creator': 'Cr24',
155 }], # branding 155 }], # branding
156 ], # conditions 156 ], # conditions
157 }], # OS=="mac" 157 }], # OS=="mac"
158 ['OS=="win"', { 158 ['OS=="win" or OS=="mac"', {
159 # Whether or not browser sync code is built in. 159 # Whether or not browser sync code is built in.
160 'chrome_personalization%': 1, 160 'chrome_personalization%': 1,
161 }, { 161 }, {
162 'chrome_personalization%': 0, 162 'chrome_personalization%': 0,
163 }], # OS=="win" 163 }], # OS=="win"
164 ['target_arch=="ia32"', { 164 ['target_arch=="ia32"', {
165 'nacl_defines': [ 165 'nacl_defines': [
166 # TODO(gregoryd): consider getting this from NaCl's common.gypi 166 # TODO(gregoryd): consider getting this from NaCl's common.gypi
167 'NACL_TARGET_SUBARCH=32', 167 'NACL_TARGET_SUBARCH=32',
168 'NACL_BUILD_SUBARCH=32', 168 'NACL_BUILD_SUBARCH=32',
(...skipping 29 matching lines...) Expand all
198 ], 198 ],
199 }], 199 }],
200 ['OS=="win"', {'sources/': [ 200 ['OS=="win"', {'sources/': [
201 ['include', '_(views|win)(_unittest)?\\.cc$'], 201 ['include', '_(views|win)(_unittest)?\\.cc$'],
202 ['include', '/win/'], 202 ['include', '/win/'],
203 ['include', '/(views|win)_[^/]*\\.cc$'], 203 ['include', '/(views|win)_[^/]*\\.cc$'],
204 ]}], 204 ]}],
205 ['OS=="linux" and toolkit_views==1', {'sources/': [ 205 ['OS=="linux" and toolkit_views==1', {'sources/': [
206 ['include', '_views\\.cc$'], 206 ['include', '_views\\.cc$'],
207 ]}], 207 ]}],
208 ['OS=="win" and chrome_personalization==1', { 208 ['(OS=="win" or OS=="mac") and chrome_personalization==1', {
209 'defines': ['CHROME_PERSONALIZATION=1'], 209 'defines': ['CHROME_PERSONALIZATION=1'],
210 }], # chrome_personalization==1 210 }], # chrome_personalization==1
211 ], 211 ],
212 }, 212 },
213 'targets': [ 213 'targets': [
214 { 214 {
215 # TODO(mark): It would be better if each static library that needed 215 # TODO(mark): It would be better if each static library that needed
216 # to run grit would list its own .grd files, but unfortunately some 216 # to run grit would list its own .grd files, but unfortunately some
217 # of the static libraries currently have circular dependencies among 217 # of the static libraries currently have circular dependencies among
218 # generated headers. 218 # generated headers.
(...skipping 1819 matching lines...) Expand 10 before | Expand all | Expand 10 after
2038 'browser/sync/glue/change_processor.cc', 2038 'browser/sync/glue/change_processor.cc',
2039 'browser/sync/glue/change_processor.h', 2039 'browser/sync/glue/change_processor.h',
2040 'browser/sync/glue/http_bridge.cc', 2040 'browser/sync/glue/http_bridge.cc',
2041 'browser/sync/glue/http_bridge.h', 2041 'browser/sync/glue/http_bridge.h',
2042 'browser/sync/glue/model_associator.cc', 2042 'browser/sync/glue/model_associator.cc',
2043 'browser/sync/glue/model_associator.h', 2043 'browser/sync/glue/model_associator.h',
2044 'browser/sync/glue/sync_backend_host.cc', 2044 'browser/sync/glue/sync_backend_host.cc',
2045 'browser/sync/glue/sync_backend_host.h', 2045 'browser/sync/glue/sync_backend_host.h',
2046 'browser/sync/profile_sync_service.cc', 2046 'browser/sync/profile_sync_service.cc',
2047 'browser/sync/profile_sync_service.h', 2047 'browser/sync/profile_sync_service.h',
2048 'browser/sync/sync_setup_flow.cc',
2049 'browser/sync/sync_setup_flow.h',
2050 'browser/sync/sync_setup_wizard.cc',
2051 'browser/sync/sync_setup_wizard.h',
2048 'browser/sync/sync_status_ui_helper.cc', 2052 'browser/sync/sync_status_ui_helper.cc',
2049 'browser/sync/sync_status_ui_helper.h', 2053 'browser/sync/sync_status_ui_helper.h',
2050 'browser/tab_contents/constrained_window.h', 2054 'browser/tab_contents/constrained_window.h',
2051 'browser/tab_contents/infobar_delegate.cc', 2055 'browser/tab_contents/infobar_delegate.cc',
2052 'browser/tab_contents/infobar_delegate.h', 2056 'browser/tab_contents/infobar_delegate.h',
2053 'browser/tab_contents/interstitial_page.cc', 2057 'browser/tab_contents/interstitial_page.cc',
2054 'browser/tab_contents/interstitial_page.h', 2058 'browser/tab_contents/interstitial_page.h',
2055 'browser/tab_contents/navigation_controller.cc', 2059 'browser/tab_contents/navigation_controller.cc',
2056 'browser/tab_contents/navigation_controller.h', 2060 'browser/tab_contents/navigation_controller.h',
2057 'browser/tab_contents/navigation_entry.cc', 2061 'browser/tab_contents/navigation_entry.cc',
(...skipping 229 matching lines...) Expand 10 before | Expand all | Expand 10 after
2287 'browser/views/restart_message_box.h', 2291 'browser/views/restart_message_box.h',
2288 'browser/views/sad_tab_view.cc', 2292 'browser/views/sad_tab_view.cc',
2289 'browser/views/sad_tab_view.h', 2293 'browser/views/sad_tab_view.h',
2290 'browser/views/select_profile_dialog.cc', 2294 'browser/views/select_profile_dialog.cc',
2291 'browser/views/select_profile_dialog.h', 2295 'browser/views/select_profile_dialog.h',
2292 'browser/views/shell_dialogs_win.cc', 2296 'browser/views/shell_dialogs_win.cc',
2293 'browser/views/star_toggle.cc', 2297 'browser/views/star_toggle.cc',
2294 'browser/views/star_toggle.h', 2298 'browser/views/star_toggle.h',
2295 'browser/views/status_bubble_views.cc', 2299 'browser/views/status_bubble_views.cc',
2296 'browser/views/status_bubble_views.h', 2300 'browser/views/status_bubble_views.h',
2297 'browser/views/sync/sync_setup_flow.cc',
2298 'browser/views/sync/sync_setup_flow.h',
2299 'browser/views/sync/sync_setup_wizard.cc',
2300 'browser/views/sync/sync_setup_wizard.h',
2301 'browser/views/tab_icon_view.cc', 2301 'browser/views/tab_icon_view.cc',
2302 'browser/views/tab_icon_view.h', 2302 'browser/views/tab_icon_view.h',
2303 'browser/views/tab_contents/tab_contents_container.cc', 2303 'browser/views/tab_contents/tab_contents_container.cc',
2304 'browser/views/tab_contents/tab_contents_container.h', 2304 'browser/views/tab_contents/tab_contents_container.h',
2305 'browser/views/tab_contents/native_tab_contents_container.h', 2305 'browser/views/tab_contents/native_tab_contents_container.h',
2306 'browser/views/tab_contents/native_tab_contents_container_gtk.cc', 2306 'browser/views/tab_contents/native_tab_contents_container_gtk.cc',
2307 'browser/views/tab_contents/native_tab_contents_container_gtk.h', 2307 'browser/views/tab_contents/native_tab_contents_container_gtk.h',
2308 'browser/views/tab_contents/native_tab_contents_container_win.cc', 2308 'browser/views/tab_contents/native_tab_contents_container_win.cc',
2309 'browser/views/tab_contents/native_tab_contents_container_win.h', 2309 'browser/views/tab_contents/native_tab_contents_container_win.h',
2310 'browser/views/tab_contents/render_view_context_menu_win.cc', 2310 'browser/views/tab_contents/render_view_context_menu_win.cc',
(...skipping 1604 matching lines...) Expand 10 before | Expand all | Expand 10 after
3915 'test/automation/window_proxy.h', 3915 'test/automation/window_proxy.h',
3916 'test/chrome_process_util.cc', 3916 'test/chrome_process_util.cc',
3917 'test/chrome_process_util.h', 3917 'test/chrome_process_util.h',
3918 'test/chrome_process_util_linux.cc', 3918 'test/chrome_process_util_linux.cc',
3919 'test/chrome_process_util_mac.cc', 3919 'test/chrome_process_util_mac.cc',
3920 'test/chrome_process_util_win.cc', 3920 'test/chrome_process_util_win.cc',
3921 'test/perf/mem_usage_linux.cc', 3921 'test/perf/mem_usage_linux.cc',
3922 'test/perf/mem_usage_mac.cc', 3922 'test/perf/mem_usage_mac.cc',
3923 'test/perf/mem_usage_win.cc', 3923 'test/perf/mem_usage_win.cc',
3924 'test/perf/mem_usage.h', 3924 'test/perf/mem_usage.h',
3925 'test/test_browser_window.h',
3925 'test/testing_profile.cc', 3926 'test/testing_profile.cc',
3926 'test/testing_profile.h', 3927 'test/testing_profile.h',
3927 'test/ui_test_utils.cc', 3928 'test/ui_test_utils.cc',
3928 'test/ui_test_utils.h', 3929 'test/ui_test_utils.h',
3929 ], 3930 ],
3930 'conditions': [ 3931 'conditions': [
3931 ['OS=="linux"', { 3932 ['OS=="linux"', {
3932 'dependencies': [ 3933 'dependencies': [
3933 '../build/linux/system.gyp:gtk', 3934 '../build/linux/system.gyp:gtk',
3934 ], 3935 ],
(...skipping 610 matching lines...) Expand 10 before | Expand all | Expand 10 after
4545 'browser/sessions/session_service_test_helper.cc', 4546 'browser/sessions/session_service_test_helper.cc',
4546 'browser/sessions/session_service_test_helper.h', 4547 'browser/sessions/session_service_test_helper.h',
4547 'browser/sessions/session_service_unittest.cc', 4548 'browser/sessions/session_service_unittest.cc',
4548 'browser/sessions/tab_restore_service_unittest.cc', 4549 'browser/sessions/tab_restore_service_unittest.cc',
4549 'browser/shell_integration_unittest.cc', 4550 'browser/shell_integration_unittest.cc',
4550 'browser/spellcheck_unittest.cc', 4551 'browser/spellcheck_unittest.cc',
4551 'browser/ssl/ssl_host_state_unittest.cc', 4552 'browser/ssl/ssl_host_state_unittest.cc',
4552 'browser/sync/glue/bookmark_model_worker_unittest.cc', 4553 'browser/sync/glue/bookmark_model_worker_unittest.cc',
4553 'browser/sync/glue/http_bridge_unittest.cc', 4554 'browser/sync/glue/http_bridge_unittest.cc',
4554 'browser/sync/profile_sync_service_unittest.cc', 4555 'browser/sync/profile_sync_service_unittest.cc',
4556 'browser/sync/sync_setup_wizard_unittest.cc',
4555 'browser/tab_contents/navigation_controller_unittest.cc', 4557 'browser/tab_contents/navigation_controller_unittest.cc',
4556 'browser/tab_contents/navigation_entry_unittest.cc', 4558 'browser/tab_contents/navigation_entry_unittest.cc',
4557 'browser/tab_contents/render_view_host_manager_unittest.cc', 4559 'browser/tab_contents/render_view_host_manager_unittest.cc',
4558 'browser/tab_contents/thumbnail_generator_unittest.cc', 4560 'browser/tab_contents/thumbnail_generator_unittest.cc',
4559 'browser/tab_contents/web_contents_unittest.cc', 4561 'browser/tab_contents/web_contents_unittest.cc',
4560 'browser/tabs/tab_strip_model_unittest.cc', 4562 'browser/tabs/tab_strip_model_unittest.cc',
4561 'browser/task_manager_unittest.cc', 4563 'browser/task_manager_unittest.cc',
4562 'browser/theme_resources_util_unittest.cc', 4564 'browser/theme_resources_util_unittest.cc',
4563 'browser/utility_process_host_unittest.cc', 4565 'browser/utility_process_host_unittest.cc',
4564 'browser/views/bookmark_context_menu_test.cc', 4566 'browser/views/bookmark_context_menu_test.cc',
4565 'browser/views/bookmark_editor_view_unittest.cc', 4567 'browser/views/bookmark_editor_view_unittest.cc',
4566 'browser/views/sync/sync_setup_wizard_unittest.cc',
4567 'browser/visitedlink_unittest.cc', 4568 'browser/visitedlink_unittest.cc',
4568 'browser/webdata/web_database_unittest.cc', 4569 'browser/webdata/web_database_unittest.cc',
4569 'browser/window_sizer_unittest.cc', 4570 'browser/window_sizer_unittest.cc',
4570 'common/bzip2_unittest.cc', 4571 'common/bzip2_unittest.cc',
4571 'common/child_process_logging_mac_unittest.mm', 4572 'common/child_process_logging_mac_unittest.mm',
4572 'common/chrome_plugin_unittest.cc', 4573 'common/chrome_plugin_unittest.cc',
4573 'common/common_param_traits_unittest.cc', 4574 'common/common_param_traits_unittest.cc',
4574 'common/extensions/extension_resource_unittest.cc', 4575 'common/extensions/extension_resource_unittest.cc',
4575 'common/extensions/extension_unittest.cc', 4576 'common/extensions/extension_unittest.cc',
4576 'common/extensions/extension_message_bundle_unittest.cc', 4577 'common/extensions/extension_message_bundle_unittest.cc',
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
4627 ['OS=="linux"', { 4628 ['OS=="linux"', {
4628 'dependencies': [ 4629 'dependencies': [
4629 '../build/linux/system.gyp:gtk', 4630 '../build/linux/system.gyp:gtk',
4630 '../build/linux/system.gyp:nss', 4631 '../build/linux/system.gyp:nss',
4631 '../tools/xdisplaycheck/xdisplaycheck.gyp:xdisplaycheck', 4632 '../tools/xdisplaycheck/xdisplaycheck.gyp:xdisplaycheck',
4632 ], 4633 ],
4633 'sources': [ 4634 'sources': [
4634 'browser/renderer_host/gtk_key_bindings_handler_unittest.cc', 4635 'browser/renderer_host/gtk_key_bindings_handler_unittest.cc',
4635 ], 4636 ],
4636 'sources!': [ 4637 'sources!': [
4638 # TODO(akalin): Figure out why this unittest fails on linux.
Evan Stade 2009/10/19 20:09:22 this is NOT how you disable unittests. Use the DIS
4639 'browser/browser_commands_unittest.cc',
4637 'browser/views/bookmark_context_menu_test.cc', 4640 'browser/views/bookmark_context_menu_test.cc',
4638 'browser/gtk/options/cookies_view_unittest.cc', 4641 'browser/gtk/options/cookies_view_unittest.cc',
4639 # Compact Language Detection (cld) is not supported in linux yet. 4642 # Compact Language Detection (cld) is not supported in linux yet.
4640 '../third_party/cld/bar/toolbar/cld/i18n/encodings/compact_lang_det/ compact_lang_det_unittest_small.cc', 4643 '../third_party/cld/bar/toolbar/cld/i18n/encodings/compact_lang_det/ compact_lang_det_unittest_small.cc',
4641 ], 4644 ],
4642 }], 4645 }],
4643 ['OS=="linux" and (toolkit_views==1 or chromeos==1)', { 4646 ['OS=="linux" and (toolkit_views==1 or chromeos==1)', {
4644 'dependencies': [ 4647 'dependencies': [
4645 '../views/views.gyp:views', 4648 '../views/views.gyp:views',
4646 ], 4649 ],
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
4749 }, 4752 },
4750 }, 4753 },
4751 }, 4754 },
4752 }, 4755 },
4753 }, { # else: OS != "win" 4756 }, { # else: OS != "win"
4754 'sources!': [ 4757 'sources!': [
4755 'browser/bookmarks/bookmark_codec_unittest.cc', 4758 'browser/bookmarks/bookmark_codec_unittest.cc',
4756 'browser/bookmarks/bookmark_drag_data_unittest.cc', 4759 'browser/bookmarks/bookmark_drag_data_unittest.cc',
4757 'browser/bookmarks/bookmark_folder_tree_model_unittest.cc', 4760 'browser/bookmarks/bookmark_folder_tree_model_unittest.cc',
4758 'browser/bookmarks/bookmark_table_model_unittest.cc', 4761 'browser/bookmarks/bookmark_table_model_unittest.cc',
4759 # Need to port browser_with_test_window_test.* first
4760 'browser/browser_commands_unittest.cc',
4761 'browser/browser_unittest.cc', 4762 'browser/browser_unittest.cc',
4762 'browser/extensions/extension_process_manager_unittest.cc', 4763 'browser/extensions/extension_process_manager_unittest.cc',
4763 'browser/importer/importer_unittest.cc', 4764 'browser/importer/importer_unittest.cc',
4764 'browser/login_prompt_unittest.cc', 4765 'browser/login_prompt_unittest.cc',
4765 'browser/printing/print_job_unittest.cc', 4766 'browser/printing/print_job_unittest.cc',
4766 'browser/rlz/rlz_unittest.cc', 4767 'browser/rlz/rlz_unittest.cc',
4767 'browser/safe_browsing/safe_browsing_blocking_page_unittest.cc', 4768 'browser/safe_browsing/safe_browsing_blocking_page_unittest.cc',
4768 'browser/search_engines/template_url_scraper_unittest.cc', 4769 'browser/search_engines/template_url_scraper_unittest.cc',
4769 'browser/views/bookmark_editor_view_unittest.cc', 4770 'browser/views/bookmark_editor_view_unittest.cc',
4770 'browser/views/find_bar_host_unittest.cc', 4771 'browser/views/find_bar_host_unittest.cc',
4771 'browser/views/keyword_editor_view_unittest.cc', 4772 'browser/views/keyword_editor_view_unittest.cc',
4772 'browser/views/sync/sync_setup_wizard_unittest.cc',
4773 'common/chrome_plugin_unittest.cc', 4773 'common/chrome_plugin_unittest.cc',
4774 'common/net/url_util_unittest.cc', 4774 'common/net/url_util_unittest.cc',
4775 'test/browser_with_test_window_test.cc',
4776 'test/browser_with_test_window_test.h',
4777 ], 4775 ],
4778 }], 4776 }],
4779 ['chrome_personalization==1', { 4777 ['chrome_personalization==1', {
4780 'sources!': [ 4778 'sources!': [
4781 'browser/sync/profile_sync_service_unittest.cc', 4779 'browser/sync/profile_sync_service_unittest.cc',
4782 ] 4780 ]
4783 }], 4781 }],
4784 ], 4782 ],
4785 }, 4783 },
4786 { 4784 {
(...skipping 1917 matching lines...) Expand 10 before | Expand all | Expand 10 after
6704 'dependencies': [ 6702 'dependencies': [
6705 '../third_party/tcmalloc/tcmalloc.gyp:tcmalloc', 6703 '../third_party/tcmalloc/tcmalloc.gyp:tcmalloc',
6706 ], 6704 ],
6707 'link_settings': { 6705 'link_settings': {
6708 'libraries': [ 6706 'libraries': [
6709 '-lcrypt32.lib', 6707 '-lcrypt32.lib',
6710 '-lws2_32.lib', 6708 '-lws2_32.lib',
6711 '-lsecur32.lib', 6709 '-lsecur32.lib',
6712 ], 6710 ],
6713 }, 6711 },
6712 }, { # else: OS != "win"
6713 'sources!': [
6714 'browser/sync/util/data_encryption_unittest.cc',
6715 ],
6714 }], 6716 }],
6715 ['OS=="linux"', { 6717 ['OS=="linux"', {
6716 'defines': [ 6718 'defines': [
6717 'POSIX', 6719 'POSIX',
6718 ], 6720 ],
6719 }], 6721 }],
6720 ], 6722 ],
6721 }, 6723 },
6722 { 6724 {
6723 'target_name': 'sync', 6725 'target_name': 'sync',
(...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after
6884 ], # targets when chrome_personalization==1 6886 ], # targets when chrome_personalization==1
6885 }], 6887 }],
6886 ], # 'conditions' 6888 ], # 'conditions'
6887 } 6889 }
6888 6890
6889 # Local Variables: 6891 # Local Variables:
6890 # tab-width:2 6892 # tab-width:2
6891 # indent-tabs-mode:nil 6893 # indent-tabs-mode:nil
6892 # End: 6894 # End:
6893 # vim: set expandtab tabstop=2 shiftwidth=2: 6895 # vim: set expandtab tabstop=2 shiftwidth=2:
OLDNEW
« no previous file with comments | « chrome/browser/tab_contents/tab_contents_view_mac.mm ('k') | chrome/test/browser_with_test_window_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698