diff options
author | grt@chromium.org <grt@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-06-26 21:06:26 +0000 |
---|---|---|
committer | grt@chromium.org <grt@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-06-26 21:06:26 +0000 |
commit | 93bb1ce318127932512ccba2776e2e4554633506 (patch) | |
tree | b36065d2bd433c7b8d7ae9568a27f4936e46b344 /chrome/chrome_exe.gypi | |
parent | dccbbb1d1c707faab941be02f0f68ab805d0a7a7 (diff) | |
download | chromium_src-93bb1ce318127932512ccba2776e2e4554633506.zip chromium_src-93bb1ce318127932512ccba2776e2e4554633506.tar.gz chromium_src-93bb1ce318127932512ccba2776e2e4554633506.tar.bz2 |
Omit nacl-related targets from mini_installer when disable_nacl==1.
NaCL doesn't build with ninja on account of http://crbug.com/127510. NaCL can be disabled via a GYP define, but the mini_installer hasn't been made aware of this until now.
BUG=none
TEST=none
Review URL: https://chromiumcodereview.appspot.com/10535050
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@144273 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/chrome_exe.gypi')
-rw-r--r-- | chrome/chrome_exe.gypi | 112 |
1 files changed, 63 insertions, 49 deletions
diff --git a/chrome/chrome_exe.gypi b/chrome/chrome_exe.gypi index 4fbb0d4..3da48fb 100644 --- a/chrome/chrome_exe.gypi +++ b/chrome/chrome_exe.gypi @@ -518,57 +518,71 @@ '../base/base.gyp:base', ], }, - { - 'target_name': 'chrome_nacl_win64', - 'type': 'executable', - 'product_name': 'nacl64', - 'sources': [ - 'app/breakpad_win.cc', - 'app/hard_error_handler_win.cc', - 'nacl/nacl_exe_win_64.cc', - '../content/app/startup_helper_win.cc', - '../content/common/debug_flags.cc', # Needed for sandbox_policy.cc - '../content/common/sandbox_init_win.cc', - '../content/common/sandbox_policy.cc', - '../content/public/common/content_switches.cc', - '<(SHARED_INTERMEDIATE_DIR)/chrome_version/nacl64_exe_version.rc', - ], - 'dependencies': [ - 'app/policy/cloud_policy_codegen.gyp:policy_win64', - 'chrome_version_resources', - 'common_constants_win64', - 'installer_util_nacl_win64', - 'nacl_win64', - '../breakpad/breakpad.gyp:breakpad_handler_win64', - '../breakpad/breakpad.gyp:breakpad_sender_win64', - '../base/base.gyp:base_i18n_nacl_win64', - '../base/base.gyp:base_nacl_win64', - '../base/base.gyp:base_static_win64', - '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations_win64', - '../crypto/crypto.gyp:crypto_nacl_win64', - '../ipc/ipc.gyp:ipc_win64', - '../sandbox/sandbox.gyp:sandbox_win64', - ], - 'defines': [ - '<@(nacl_win64_defines)', - 'COMPILE_CONTENT_STATICALLY', - ], - 'include_dirs': [ - '<(SHARED_INTERMEDIATE_DIR)/chrome', - ], - 'msvs_settings': { - 'VCLinkerTool': { - 'ImportLibrary': '$(OutDir)\\lib\\nacl64_exe.lib', - 'ProgramDatabaseFile': '$(OutDir)\\nacl64_exe.pdb', - 'SubSystem': '2', # Set /SUBSYSTEM:WINDOWS + ], + 'conditions': [ + ['disable_nacl!=1', { + 'targets': [ + { + 'target_name': 'chrome_nacl_win64', + 'type': 'executable', + 'product_name': 'nacl64', + 'sources': [ + 'app/breakpad_win.cc', + 'app/hard_error_handler_win.cc', + 'nacl/nacl_exe_win_64.cc', + '../content/app/startup_helper_win.cc', + '../content/common/debug_flags.cc', # Needed for sandbox_policy.cc + '../content/common/sandbox_init_win.cc', + '../content/common/sandbox_policy.cc', + '../content/public/common/content_switches.cc', + '<(SHARED_INTERMEDIATE_DIR)/chrome_version/nacl64_exe_version.rc', + ], + 'dependencies': [ + 'app/policy/cloud_policy_codegen.gyp:policy_win64', + 'chrome_version_resources', + 'common_constants_win64', + 'installer_util_nacl_win64', + 'nacl_win64', + '../breakpad/breakpad.gyp:breakpad_handler_win64', + '../breakpad/breakpad.gyp:breakpad_sender_win64', + '../base/base.gyp:base_i18n_nacl_win64', + '../base/base.gyp:base_nacl_win64', + '../base/base.gyp:base_static_win64', + '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations_win64', + '../crypto/crypto.gyp:crypto_nacl_win64', + '../ipc/ipc.gyp:ipc_win64', + '../sandbox/sandbox.gyp:sandbox_win64', + ], + 'defines': [ + '<@(nacl_win64_defines)', + 'COMPILE_CONTENT_STATICALLY', + ], + 'include_dirs': [ + '<(SHARED_INTERMEDIATE_DIR)/chrome', + ], + 'msvs_settings': { + 'VCLinkerTool': { + 'ImportLibrary': '$(OutDir)\\lib\\nacl64_exe.lib', + 'ProgramDatabaseFile': '$(OutDir)\\nacl64_exe.pdb', + 'SubSystem': '2', # Set /SUBSYSTEM:WINDOWS + }, + }, + 'configurations': { + 'Common_Base': { + 'msvs_target_platform': 'x64', + }, + }, }, - }, - 'configurations': { - 'Common_Base': { - 'msvs_target_platform': 'x64', + ], + }, { # else (disable_nacl==1) + 'targets': [ + { + 'target_name': 'chrome_nacl_win64', + 'type': 'none', + 'sources': [], }, - }, - }, + ], + }], ], }], ], |