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

Side by Side Diff: chrome/chrome.gyp

Issue 242118: Change the Windows build to statically link the sync library. (Closed)
Patch Set: 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 # Define the common dependencies that contain all the actual 9 # Define the common dependencies that contain all the actual
10 # Chromium functionality. This list gets pulled in below by 10 # Chromium functionality. This list gets pulled in below by
(...skipping 4649 matching lines...) Expand 10 before | Expand all | Expand 10 after
4660 # Provides a syncapi dynamic library target from checked-in binaries, 4660 # Provides a syncapi dynamic library target from checked-in binaries,
4661 # or from compiling a stub implementation. 4661 # or from compiling a stub implementation.
4662 'target_name': 'syncapi', 4662 'target_name': 'syncapi',
4663 4663
4664 'conditions': [ 4664 'conditions': [
4665 ['chrome_personalization==0', { 4665 ['chrome_personalization==0', {
4666 # Empty target. 4666 # Empty target.
4667 'type': 'none', 4667 'type': 'none',
4668 }, { 4668 }, {
4669 # Build sync. 4669 # Build sync.
4670 'type': 'shared_library', 4670 'type': '<(library)',
4671 'sources': [ 4671 'sources': [
4672 'browser/sync/engine/syncapi.cc', 4672 'browser/sync/engine/syncapi.cc',
4673 ], 4673 ],
4674 'include_dirs': [ 4674 'include_dirs': [
4675 '..', 4675 '..',
4676 '<(protoc_out_dir)', 4676 '<(protoc_out_dir)',
4677 ], 4677 ],
4678 'defines' : [ 4678 'defines' : [
4679 'COMPILING_SYNCAPI_LIBRARY',
4680 '_CRT_SECURE_NO_WARNINGS', 4679 '_CRT_SECURE_NO_WARNINGS',
4681 '_USE_32BIT_TIME_T', 4680 '_USE_32BIT_TIME_T',
4682 ], 4681 ],
4683 'dependencies': [ 4682 'dependencies': [
4684 '../base/base.gyp:base', 4683 '../base/base.gyp:base',
4685 '../build/temp_gyp/googleurl.gyp:googleurl', 4684 '../build/temp_gyp/googleurl.gyp:googleurl',
4686 '../net/net.gyp:net', 4685 '../net/net.gyp:net',
4687 '../third_party/icu/icu.gyp:icuuc', 4686 '../third_party/icu/icu.gyp:icuuc',
4688 '../third_party/libjingle/libjingle.gyp:libjingle', 4687 '../third_party/libjingle/libjingle.gyp:libjingle',
4689 '../third_party/sqlite/sqlite.gyp:sqlite', 4688 '../third_party/sqlite/sqlite.gyp:sqlite',
4690 'common', 4689 'common',
4691 'notifier', 4690 'notifier',
4692 'sync', 4691 'sync',
4693 'sync_proto', 4692 'sync_proto',
4694 ], 4693 ],
4695 'conditions': [ 4694 'conditions': [
4696 ['OS=="win"', { 4695 ['OS=="win"', {
4697 'msvs_settings': {
4698 'VCLinkerTool': {
4699 'ImportLibrary': '$(OutDir)\\lib\\syncapi.lib',
4700 'ProgramDatabaseFile': '$(OutDir)\\syncapi_dll.pdb',
4701 },
4702 },
4703 'link_settings': {
4704 'libraries': [
4705 '-lcrypt32.lib',
4706 '-liphlpapi.lib',
4707 '-lsecur32.lib',
4708 ]
4709 },
4710 'dependencies': [ 4696 'dependencies': [
4711 '../third_party/pthreads-win32/pthreads.gyp:pthreads', 4697 '../third_party/pthreads-win32/pthreads.gyp:pthreads',
4712 ], 4698 ],
4713 'direct_dependent_settings': {
4714 'msvs_settings': {
4715 'VCLinkerTool': {
4716 'DelayLoadDLLs': [
4717 'syncapi.dll',
4718 ],
4719 },
4720 },
4721 },
4722 }], 4699 }],
4723 ['OS=="linux"', { 4700 ['OS=="linux"', {
4724 'defines': [ 4701 'defines': [
4725 'POSIX', 4702 'POSIX',
4726 ], 4703 ],
4727 }], 4704 }],
4728 ], 4705 ],
4729 }], 4706 }],
4730 ], 4707 ],
4731 }, 4708 },
(...skipping 200 matching lines...) Expand 10 before | Expand all | Expand 10 after
4932 'winhttp.dll', 4909 'winhttp.dll',
4933 'wininet.dll', 4910 'wininet.dll',
4934 'wsock32.dll', 4911 'wsock32.dll',
4935 'ws2_32.dll', 4912 'ws2_32.dll',
4936 'winspool.drv', 4913 'winspool.drv',
4937 'comdlg32.dll', 4914 'comdlg32.dll',
4938 'imagehlp.dll', 4915 'imagehlp.dll',
4939 'psapi.dll', 4916 'psapi.dll',
4940 'urlmon.dll', 4917 'urlmon.dll',
4941 'imm32.dll', 4918 'imm32.dll',
4919 'iphlpapi.dll',
4920 'pthreads.dll',
4942 ], 4921 ],
4943 'ImportLibrary': '$(OutDir)\\lib\\chrome_dll.lib', 4922 'ImportLibrary': '$(OutDir)\\lib\\chrome_dll.lib',
4944 'ProgramDatabaseFile': '$(OutDir)\\chrome_dll.pdb', 4923 'ProgramDatabaseFile': '$(OutDir)\\chrome_dll.pdb',
4945 # Set /SUBSYSTEM:WINDOWS for chrome.dll (for consistency). 4924 # Set /SUBSYSTEM:WINDOWS for chrome.dll (for consistency).
4946 'SubSystem': '2', 4925 'SubSystem': '2',
4947 }, 4926 },
4948 'VCManifestTool': { 4927 'VCManifestTool': {
4949 'AdditionalManifestFiles': '$(ProjectDir)\\app\\chrome.dll.man ifest', 4928 'AdditionalManifestFiles': '$(ProjectDir)\\app\\chrome.dll.man ifest',
4950 }, 4929 },
4951 }, 4930 },
(...skipping 1631 matching lines...) Expand 10 before | Expand all | Expand 10 after
6583 'test/sync/engine/mock_server_connection.h', 6562 'test/sync/engine/mock_server_connection.h',
6584 'test/sync/engine/test_directory_setter_upper.cc', 6563 'test/sync/engine/test_directory_setter_upper.cc',
6585 'test/sync/engine/test_directory_setter_upper.h', 6564 'test/sync/engine/test_directory_setter_upper.h',
6586 'test/sync/engine/test_id_factory.h', 6565 'test/sync/engine/test_id_factory.h',
6587 ], 6566 ],
6588 'include_dirs': [ 6567 'include_dirs': [
6589 '..', 6568 '..',
6590 '<(protoc_out_dir)', 6569 '<(protoc_out_dir)',
6591 ], 6570 ],
6592 'defines' : [ 6571 'defines' : [
6593 'COMPILING_SYNCAPI_LIBRARY',
6594 'SYNC_ENGINE_VERSION_STRING="Unknown"', 6572 'SYNC_ENGINE_VERSION_STRING="Unknown"',
6595 '_CRT_SECURE_NO_WARNINGS', 6573 '_CRT_SECURE_NO_WARNINGS',
6596 '_USE_32BIT_TIME_T', 6574 '_USE_32BIT_TIME_T',
6597 ], 6575 ],
6598 'dependencies': [ 6576 'dependencies': [
6599 '../testing/gtest.gyp:gtest', 6577 '../testing/gtest.gyp:gtest',
6600 '../third_party/libjingle/libjingle.gyp:libjingle', 6578 '../third_party/libjingle/libjingle.gyp:libjingle',
6601 '../third_party/tcmalloc/tcmalloc.gyp:tcmalloc', 6579 '../third_party/tcmalloc/tcmalloc.gyp:tcmalloc',
6602 'notifier', 6580 'notifier',
6603 'sync', 6581 'sync',
(...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after
6752 'browser/sync/util/user_settings.cc', 6730 'browser/sync/util/user_settings.cc',
6753 'browser/sync/util/user_settings.h', 6731 'browser/sync/util/user_settings.h',
6754 'browser/sync/util/user_settings_posix.cc', 6732 'browser/sync/util/user_settings_posix.cc',
6755 'browser/sync/util/user_settings_win.cc', 6733 'browser/sync/util/user_settings_win.cc',
6756 ], 6734 ],
6757 'include_dirs': [ 6735 'include_dirs': [
6758 '..', 6736 '..',
6759 '<(protoc_out_dir)', 6737 '<(protoc_out_dir)',
6760 ], 6738 ],
6761 'defines' : [ 6739 'defines' : [
6762 'COMPILING_SYNCAPI_LIBRARY',
6763 'SYNC_ENGINE_VERSION_STRING="Unknown"', 6740 'SYNC_ENGINE_VERSION_STRING="Unknown"',
6764 '_CRT_SECURE_NO_WARNINGS', 6741 '_CRT_SECURE_NO_WARNINGS',
6765 '_USE_32BIT_TIME_T', 6742 '_USE_32BIT_TIME_T',
6766 ], 6743 ],
6767 'dependencies': [ 6744 'dependencies': [
6768 '../third_party/libjingle/libjingle.gyp:libjingle', 6745 '../third_party/libjingle/libjingle.gyp:libjingle',
6769 'sync_proto', 6746 'sync_proto',
6770 ], 6747 ],
6771 'conditions': [ 6748 'conditions': [
6772 ['OS=="win"', { 6749 ['OS=="win"', {
(...skipping 10 matching lines...) Expand all
6783 'defines': [ 6760 'defines': [
6784 'POSIX', 6761 'POSIX',
6785 ], 6762 ],
6786 }], 6763 }],
6787 ], 6764 ],
6788 }, 6765 },
6789 ], # targets when chrome_personalization==1 6766 ], # targets when chrome_personalization==1
6790 }], 6767 }],
6791 ], # 'conditions' 6768 ], # 'conditions'
6792 } 6769 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698