Skip to content

Commit

Permalink
Disabling nacl_win64 targets when building in target_arch!=ia32 mode.
Browse files Browse the repository at this point in the history
When building on windows with target_arch=x64, we no longer need win32 targets
forced to be 64-bit. This gates out these targets when target_arch!=ia32.
(Prior CL dropped the minimal set to break the dependency between these targets
and the rest of the build. This eliminates them completely.)

BUG=None
TEST=None
R=jschuh@chromium.org,thestig@chromium.org
TBR=darin@chromium.org,abodenha@chromium.org,apatrick@chromium.org,sra@chromium.org,wtc@chromium.org

Review URL: https://chromiumcodereview.appspot.com/11929039

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@177959 0039d316-1c4b-4281-b951-d872f2087c98
  • Loading branch information
bradnelson@google.com committed Jan 21, 2013
1 parent 13bb1e3 commit 3a41c8e
Show file tree
Hide file tree
Showing 18 changed files with 168 additions and 130 deletions.
38 changes: 21 additions & 17 deletions base/allocator/allocator.gyp
Original file line number Diff line number Diff line change
Expand Up @@ -545,6 +545,27 @@
'../profiler/alternate_timer.h',
],
},
{
'target_name': 'tcmalloc_unittest',
'type': 'executable',
'sources': [
'tcmalloc_unittest.cc',
],
'include_dirs': [
'../..',
# For constants of TCMalloc.
'<(tcmalloc_dir)/src',
],
'dependencies': [
'../../testing/gtest.gyp:gtest',
'../base.gyp:base',
'allocator',
],
},
],
}],
['OS=="win" and target_arch=="ia32"', {
'targets': [
{
'target_name': 'allocator_extension_thunks_win64',
'type': 'static_library',
Expand All @@ -562,23 +583,6 @@
},
},
},
{
'target_name': 'tcmalloc_unittest',
'type': 'executable',
'sources': [
'tcmalloc_unittest.cc',
],
'include_dirs': [
'../..',
# For constants of TCMalloc.
'<(tcmalloc_dir)/src',
],
'dependencies': [
'../../testing/gtest.gyp:gtest',
'../base.gyp:base',
'allocator',
],
},
],
}],
['OS=="linux" and clang_type_profiler==1', {
Expand Down
64 changes: 32 additions & 32 deletions base/base.gyp
Original file line number Diff line number Diff line change
Expand Up @@ -389,37 +389,6 @@
'..',
],
},
{
# TODO(rvargas): Remove this when gyp finally supports a clean model.
# See bug 36232.
'target_name': 'base_static_win64',
'type': 'static_library',
'sources': [
'base_switches.cc',
'base_switches.h',
'win/pe_image.cc',
'win/pe_image.h',
],
'sources!': [
# base64.cc depends on modp_b64.
'base64.cc',
],
'include_dirs': [
'..',
],
'configurations': {
'Common_Base': {
'msvs_target_platform': 'x64',
},
},
'defines': [
'NACL_WIN64',
],
# TODO(rvargas): Bug 78117. Remove this.
'msvs_disabled_warnings': [
4244,
],
},
# Include this target for a main() function that simply instantiates
# and runs a base::TestSuite.
{
Expand Down Expand Up @@ -920,7 +889,7 @@
},
],
}],
['OS == "win"', {
['OS == "win" and target_arch=="ia32"', {
'targets': [
{
'target_name': 'base_nacl_win64',
Expand Down Expand Up @@ -986,6 +955,37 @@
},
},
},
{
# TODO(rvargas): Remove this when gyp finally supports a clean model.
# See bug 36232.
'target_name': 'base_static_win64',
'type': 'static_library',
'sources': [
'base_switches.cc',
'base_switches.h',
'win/pe_image.cc',
'win/pe_image.h',
],
'sources!': [
# base64.cc depends on modp_b64.
'base64.cc',
],
'include_dirs': [
'..',
],
'configurations': {
'Common_Base': {
'msvs_target_platform': 'x64',
},
},
'defines': [
'NACL_WIN64',
],
# TODO(rvargas): Bug 78117. Remove this.
'msvs_disabled_warnings': [
4244,
],
},
],
}],
['os_posix==1 and OS!="mac" and OS!="ios"', {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
},
],
'conditions': [
['OS == "win"', {
['OS == "win" and target_arch=="ia32"', {
'targets': [
{
'target_name': 'dynamic_annotations_win64',
Expand Down
6 changes: 5 additions & 1 deletion breakpad/breakpad_handler.gypi
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
],
},
'conditions': [
[ 'OS=="win"', {
['OS=="win"', {
'targets': [
{
'target_name': 'breakpad_handler',
Expand Down Expand Up @@ -70,6 +70,10 @@
],
},
},
],
}],
['OS=="win" and target_arch=="ia32"', {
'targets': [
{
'target_name': 'breakpad_handler_win64',
'type': 'static_library',
Expand Down
6 changes: 5 additions & 1 deletion breakpad/breakpad_sender.gypi
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
],
},
'conditions': [
[ 'OS=="win"', {
['OS=="win"', {
'targets': [
{
'target_name': 'breakpad_sender',
Expand All @@ -38,6 +38,10 @@
],
},
},
],
}],
['OS=="win" and target_arch=="ia32"', {
'targets': [
{
'target_name': 'breakpad_sender_win64',
'type': 'static_library',
Expand Down
2 changes: 1 addition & 1 deletion chrome/app/policy/cloud_policy_codegen.gyp
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@
},
],
'conditions': [
['OS=="win"', {
['OS=="win" and target_arch=="ia32"', {
'targets': [
{
'target_name': 'policy_win64',
Expand Down
32 changes: 18 additions & 14 deletions chrome/chrome.gyp
Original file line number Diff line number Diff line change
Expand Up @@ -1009,6 +1009,23 @@
},
},
},
{
'target_name': 'sb_sigutil',
'type': 'executable',
'dependencies': [
'../base/base.gyp:base',
'safe_browsing_proto',
],
'sources': [
'browser/safe_browsing/signature_util.h',
'browser/safe_browsing/signature_util_win.cc',
'tools/safe_browsing/sb_sigutil.cc',
],
},
]}, # 'targets'
], # OS=="win"
['OS=="win" and target_arch=="ia32"',
{ 'targets': [
{
'target_name': 'crash_service_win64',
'type': 'executable',
Expand Down Expand Up @@ -1043,21 +1060,8 @@
},
},
},
{
'target_name': 'sb_sigutil',
'type': 'executable',
'dependencies': [
'../base/base.gyp:base',
'safe_browsing_proto',
],
'sources': [
'browser/safe_browsing/signature_util.h',
'browser/safe_browsing/signature_util_win.cc',
'tools/safe_browsing/sb_sigutil.cc',
],
},
]}, # 'targets'
], # OS=="win"
], # OS=="win" and target_arch=="ia32"
['chromeos==1', {
'includes': [ 'chrome_browser_chromeos.gypi' ],
}], # chromeos==1
Expand Down
58 changes: 31 additions & 27 deletions chrome/chrome_installer.gypi
Original file line number Diff line number Diff line change
Expand Up @@ -197,33 +197,6 @@
'installer/launcher_support/chrome_launcher_support.h',
],
},
{
'target_name': 'launcher_support64',
'type': 'static_library',
'include_dirs': [
'..',
],
'direct_dependent_settings': {
'include_dirs': [
'..',
],
},
'defines': [
'<@(nacl_win64_defines)',
],
'dependencies': [
'<(DEPTH)/base/base.gyp:base_nacl_win64',
],
'configurations': {
'Common_Base': {
'msvs_target_platform': 'x64',
},
},
'sources': [
'installer/launcher_support/chrome_launcher_support.cc',
'installer/launcher_support/chrome_launcher_support.h',
],
},
{
'target_name': 'mini_installer_test',
'type': 'executable',
Expand Down Expand Up @@ -488,6 +461,37 @@
},
],
}],
['OS=="win" and target_arch=="ia32"', {
'targets': [
{
'target_name': 'launcher_support64',
'type': 'static_library',
'include_dirs': [
'..',
],
'direct_dependent_settings': {
'include_dirs': [
'..',
],
},
'defines': [
'<@(nacl_win64_defines)',
],
'dependencies': [
'<(DEPTH)/base/base.gyp:base_nacl_win64',
],
'configurations': {
'Common_Base': {
'msvs_target_platform': 'x64',
},
},
'sources': [
'installer/launcher_support/chrome_launcher_support.cc',
'installer/launcher_support/chrome_launcher_support.h',
],
},
],
}],
['OS=="linux" and branding=="Chrome"', {
'variables': {
# Always google_chrome since this only applies to branding==Chrome.
Expand Down
4 changes: 4 additions & 0 deletions chrome/chrome_installer_util.gypi
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,10 @@
}],
],
},
],
}],
['OS=="win" and target_arch=="ia32"', {
'targets': [
{
'target_name': 'installer_util_nacl_win64',
'type': 'static_library',
Expand Down
4 changes: 4 additions & 0 deletions chrome/chrome_tests.gypi
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,10 @@
['OS=="win"', {
'dependencies': [
'chrome.gyp:crash_service', # run time dependency
],
}],
['OS=="win" and target_arch=="ia32"', {
'dependencies': [
'chrome.gyp:crash_service_win64', # run time dependency
],
}],
Expand Down
2 changes: 1 addition & 1 deletion chrome/common_constants.gyp
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@
},
],
'conditions': [
['OS=="win"', {
['OS=="win" and target_arch=="ia32"', {
'targets': [
{
'target_name': 'common_constants_win64',
Expand Down
4 changes: 4 additions & 0 deletions cloud_print/cloud_print.gyp
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@
'dependencies': [
'virtual_driver/win/install/virtual_driver_install.gyp:*',
'virtual_driver/win/virtual_driver.gyp:*',
],
}],
['OS=="win" and target_arch=="ia32"', {
'dependencies': [
'virtual_driver/win/virtual_driver64.gyp:*',
],
}],
Expand Down
2 changes: 1 addition & 1 deletion courgette/courgette.gyp
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@
},
],
'conditions': [
['OS=="win"', {
['OS=="win" and target_arch=="ia32"', {
'targets': [
{
'target_name': 'courgette_lib64',
Expand Down
2 changes: 1 addition & 1 deletion crypto/crypto.gyp
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,7 @@
},
],
'conditions': [
[ 'OS == "win"', {
['OS == "win" and target_arch=="ia32"', {
'targets': [
{
'target_name': 'crypto_nacl_win64',
Expand Down
2 changes: 1 addition & 1 deletion gpu/gpu.gyp
Original file line number Diff line number Diff line change
Expand Up @@ -415,7 +415,7 @@
},
],
}],
['disable_nacl!=1 and OS=="win"', {
['disable_nacl!=1 and OS=="win" and target_arch=="ia32"', {
'targets': [
{
'target_name': 'gpu_ipc_win64',
Expand Down
2 changes: 1 addition & 1 deletion ipc/ipc.gyp
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@
},
],
'conditions': [
['OS=="win"', {
['OS=="win" and target_arch=="ia32"', {
'targets': [
{
'target_name': 'ipc_win64',
Expand Down
Loading

0 comments on commit 3a41c8e

Please sign in to comment.