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

Side by Side Diff: build/common.gypi

Issue 156473005: Add support for sub-architecture when building for iOS (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix a typo Created 6 years, 10 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 # Copyright (c) 2012 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 # IMPORTANT: 5 # IMPORTANT:
6 # Please don't directly include this file if you are building via gyp_chromium, 6 # Please don't directly include this file if you are building via gyp_chromium,
7 # since gyp_chromium is automatically forcing its inclusion. 7 # since gyp_chromium is automatically forcing its inclusion.
8 { 8 {
9 # Variables expected to be overriden on the GYP command line (-D) or by 9 # Variables expected to be overriden on the GYP command line (-D) or by
10 # ~/.gyp/include.gypi. 10 # ~/.gyp/include.gypi.
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after
129 'use_openssl%': '<(use_openssl)', 129 'use_openssl%': '<(use_openssl)',
130 'use_system_fontconfig%': '<(use_system_fontconfig)', 130 'use_system_fontconfig%': '<(use_system_fontconfig)',
131 'enable_viewport%': '<(enable_viewport)', 131 'enable_viewport%': '<(enable_viewport)',
132 'enable_hidpi%': '<(enable_hidpi)', 132 'enable_hidpi%': '<(enable_hidpi)',
133 'enable_touch_ui%': '<(enable_touch_ui)', 133 'enable_touch_ui%': '<(enable_touch_ui)',
134 'buildtype%': '<(buildtype)', 134 'buildtype%': '<(buildtype)',
135 'branding%': '<(branding)', 135 'branding%': '<(branding)',
136 'host_arch%': '<(host_arch)', 136 'host_arch%': '<(host_arch)',
137 137
138 # Default architecture we're building for is the architecture we're 138 # Default architecture we're building for is the architecture we're
139 # building on. 139 # building on, and possibly sub-architecture (for iOS builds).
140 'target_arch%': '<(host_arch)', 140 'target_arch%': '<(host_arch)',
141 'target_subarch%': '',
141 142
142 # This is set when building the Android WebView inside the Android 143 # This is set when building the Android WebView inside the Android
143 # build system, using the 'android' gyp backend. The WebView code is 144 # build system, using the 'android' gyp backend. The WebView code is
144 # still built when this is unset, but builds using the normal chromium 145 # still built when this is unset, but builds using the normal chromium
145 # build system. 146 # build system.
146 'android_webview_build%': 0, 147 'android_webview_build%': 0,
147 148
148 # Set ARM architecture version. 149 # Set ARM architecture version.
149 'arm_version%': 7, 150 'arm_version%': 7,
150 151
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
213 }, { 214 }, {
214 'use_ozone_evdev%': 0, 215 'use_ozone_evdev%': 0,
215 }], 216 }],
216 217
217 # Set default gomadir. 218 # Set default gomadir.
218 ['OS=="win"', { 219 ['OS=="win"', {
219 'gomadir': 'c:\\goma\\goma-win', 220 'gomadir': 'c:\\goma\\goma-win',
220 }, { 221 }, {
221 'gomadir': '<!(/bin/echo -n ${HOME}/goma)', 222 'gomadir': '<!(/bin/echo -n ${HOME}/goma)',
222 }], 223 }],
224
225 # Set the default "target_subarch" on iOS. Valid values are "arm32",
226 # "arm64" and "both" (meaning a fat binary).
227 #
228 # TODO(sdefresne): change the default from "arm32" to "both" for
229 # "target_subarch" once http://crbug.com/339477 is fixed.
230 #
231 # TODO(sdefresne): set the "target_arch" to "arm" once compilation
232 # of skia has been fixed for simulator. http://crbug.com/342377
233 ['OS=="ios"', {
234 'target_subarch%': 'arm32',
235 }],
223 ], 236 ],
224 }, 237 },
225 238
226 # Copy conditionally-set variables out one scope. 239 # Copy conditionally-set variables out one scope.
227 'chromeos%': '<(chromeos)', 240 'chromeos%': '<(chromeos)',
228 'host_arch%': '<(host_arch)', 241 'host_arch%': '<(host_arch)',
229 'target_arch%': '<(target_arch)', 242 'target_arch%': '<(target_arch)',
243 'target_subarch%': '<(target_subarch)',
230 'toolkit_views%': '<(toolkit_views)', 244 'toolkit_views%': '<(toolkit_views)',
231 'toolkit_uses_gtk%': '<(toolkit_uses_gtk)', 245 'toolkit_uses_gtk%': '<(toolkit_uses_gtk)',
232 'desktop_linux%': '<(desktop_linux)', 246 'desktop_linux%': '<(desktop_linux)',
233 'use_aura%': '<(use_aura)', 247 'use_aura%': '<(use_aura)',
234 'use_ash%': '<(use_ash)', 248 'use_ash%': '<(use_ash)',
235 'use_cras%': '<(use_cras)', 249 'use_cras%': '<(use_cras)',
236 'use_ozone%': '<(use_ozone)', 250 'use_ozone%': '<(use_ozone)',
237 'use_ozone_evdev%': '<(use_ozone_evdev)', 251 'use_ozone_evdev%': '<(use_ozone_evdev)',
238 'use_clipboard_aurax11%': '<(use_clipboard_aurax11)', 252 'use_clipboard_aurax11%': '<(use_clipboard_aurax11)',
239 'embedded%': '<(embedded)', 253 'embedded%': '<(embedded)',
(...skipping 619 matching lines...) Expand 10 before | Expand all | Expand 10 after
859 # keys will be used instead. 873 # keys will be used instead.
860 'google_api_key%': '', 874 'google_api_key%': '',
861 'google_default_client_id%': '', 875 'google_default_client_id%': '',
862 'google_default_client_secret%': '', 876 'google_default_client_secret%': '',
863 }, 877 },
864 878
865 # Copy conditionally-set variables out one scope. 879 # Copy conditionally-set variables out one scope.
866 'branding%': '<(branding)', 880 'branding%': '<(branding)',
867 'buildtype%': '<(buildtype)', 881 'buildtype%': '<(buildtype)',
868 'target_arch%': '<(target_arch)', 882 'target_arch%': '<(target_arch)',
883 'target_subarch%': '<(target_subarch)',
869 'host_arch%': '<(host_arch)', 884 'host_arch%': '<(host_arch)',
870 'toolkit_views%': '<(toolkit_views)', 885 'toolkit_views%': '<(toolkit_views)',
871 'ui_compositor_image_transport%': '<(ui_compositor_image_transport)', 886 'ui_compositor_image_transport%': '<(ui_compositor_image_transport)',
872 'use_aura%': '<(use_aura)', 887 'use_aura%': '<(use_aura)',
873 'use_ash%': '<(use_ash)', 888 'use_ash%': '<(use_ash)',
874 'use_cras%': '<(use_cras)', 889 'use_cras%': '<(use_cras)',
875 'use_openssl%': '<(use_openssl)', 890 'use_openssl%': '<(use_openssl)',
876 'use_nss%': '<(use_nss)', 891 'use_nss%': '<(use_nss)',
877 'use_udev%': '<(use_udev)', 892 'use_udev%': '<(use_udev)',
878 'os_bsd%': '<(os_bsd)', 893 'os_bsd%': '<(os_bsd)',
(...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after
1075 # is some third party code that takes a long time to fix/roll. So, this 1090 # is some third party code that takes a long time to fix/roll. So, this
1076 # flag allows us to have warnings as errors in general to prevent 1091 # flag allows us to have warnings as errors in general to prevent
1077 # regressions in most modules, while working on the bits that are 1092 # regressions in most modules, while working on the bits that are
1078 # remaining. 1093 # remaining.
1079 'win_third_party_warn_as_error%': 'true', 1094 'win_third_party_warn_as_error%': 'true',
1080 1095
1081 # Clang stuff. 1096 # Clang stuff.
1082 'clang%': '<(clang)', 1097 'clang%': '<(clang)',
1083 'make_clang_dir%': 'third_party/llvm-build/Release+Asserts', 1098 'make_clang_dir%': 'third_party/llvm-build/Release+Asserts',
1084 1099
1100 # Control which version of clang to use when 'clang' is set to 1 when
1101 # building for iOS (Apple has not yet open-sourced support for "arm64"
1102 # so when building for that 'target_arch' we have to use clang shipped
1103 # with Xcode that does not supports some flags).
1104 # TODO(sdefresne): remove this once http://crbug.com/341453 is fixed.
1105 'clang_xcode%': 0,
1106
1085 # These two variables can be set in GYP_DEFINES while running 1107 # These two variables can be set in GYP_DEFINES while running
1086 # |gclient runhooks| to let clang run a plugin in every compilation. 1108 # |gclient runhooks| to let clang run a plugin in every compilation.
1087 # Only has an effect if 'clang=1' is in GYP_DEFINES as well. 1109 # Only has an effect if 'clang=1' is in GYP_DEFINES as well.
1088 # Example: 1110 # Example:
1089 # GYP_DEFINES='clang=1 clang_load=/abs/path/to/libPrintFunctionNames.dyl ib clang_add_plugin=print-fns' gclient runhooks 1111 # GYP_DEFINES='clang=1 clang_load=/abs/path/to/libPrintFunctionNames.dyl ib clang_add_plugin=print-fns' gclient runhooks
1090 1112
1091 'clang_load%': '', 1113 'clang_load%': '',
1092 'clang_add_plugin%': '', 1114 'clang_add_plugin%': '',
1093 1115
1094 # Tell ld64 to write map files describing binary layout. Useful 1116 # Tell ld64 to write map files describing binary layout. Useful
(...skipping 624 matching lines...) Expand 10 before | Expand all | Expand 10 after
1719 '-t', 'ios', 1741 '-t', 'ios',
1720 # iOS uses a whitelist to filter resources. 1742 # iOS uses a whitelist to filter resources.
1721 '-w', '<(DEPTH)/build/ios/grit_whitelist.txt' 1743 '-w', '<(DEPTH)/build/ios/grit_whitelist.txt'
1722 ], 1744 ],
1723 1745
1724 # Enable clang and host builds when generating with ninja-ios. 1746 # Enable clang and host builds when generating with ninja-ios.
1725 'conditions': [ 1747 'conditions': [
1726 ['"<(GENERATOR)"=="ninja"', { 1748 ['"<(GENERATOR)"=="ninja"', {
1727 'clang%': 1, 1749 'clang%': 1,
1728 'host_os%': "mac", 1750 'host_os%': "mac",
1729 }] 1751 }],
1752 # Apple has not upstreamed the support for "arm64" yet, so when
1753 # building for "arm64" or "both", we need to use the clang that
1754 # is provided with Xcode.
1755 ['target_subarch!="arm32"', {
1756 'clang_xcode%': 1,
1757 }],
1730 ], 1758 ],
1731 }], 1759 }],
1732 ['enable_extensions==1', { 1760 ['enable_extensions==1', {
1733 'grit_defines': ['-D', 'enable_extensions'], 1761 'grit_defines': ['-D', 'enable_extensions'],
1734 }], 1762 }],
1735 ['enable_plugins!=0', { 1763 ['enable_plugins!=0', {
1736 'grit_defines': ['-D', 'enable_plugins'], 1764 'grit_defines': ['-D', 'enable_plugins'],
1737 }], 1765 }],
1738 ['enable_printing!=0', { 1766 ['enable_printing!=0', {
1739 'grit_defines': ['-D', 'enable_printing'], 1767 'grit_defines': ['-D', 'enable_printing'],
(...skipping 2282 matching lines...) Expand 10 before | Expand all | Expand 10 after
4022 # pattern. 4050 # pattern.
4023 '-Wno-missing-field-initializers', 4051 '-Wno-missing-field-initializers',
4024 ], 4052 ],
4025 'conditions': [ 4053 'conditions': [
4026 ['chromium_mac_pch', {'GCC_PRECOMPILE_PREFIX_HEADER': 'YES'}, 4054 ['chromium_mac_pch', {'GCC_PRECOMPILE_PREFIX_HEADER': 'YES'},
4027 {'GCC_PRECOMPILE_PREFIX_HEADER': 'NO'} 4055 {'GCC_PRECOMPILE_PREFIX_HEADER': 'NO'}
4028 ], 4056 ],
4029 # Note that the prebuilt Clang binaries should not be used for iOS 4057 # Note that the prebuilt Clang binaries should not be used for iOS
4030 # development except for ASan builds. 4058 # development except for ASan builds.
4031 ['clang==1', { 4059 ['clang==1', {
4032 'CC': '$(SOURCE_ROOT)/<(clang_dir)/clang',
4033 'LDPLUSPLUS': '$(SOURCE_ROOT)/<(clang_dir)/clang++',
4034
4035 # gnu++11 instead of c++11 is needed because some code uses 4060 # gnu++11 instead of c++11 is needed because some code uses
4036 # typeof() (a GNU extension). 4061 # typeof() (a GNU extension).
4037 # TODO(thakis): Eventually switch this to c++11 instead of 4062 # TODO(thakis): Eventually switch this to c++11 instead of
4038 # gnu++11 (once typeof can be removed, which is blocked on c++11 4063 # gnu++11 (once typeof can be removed, which is blocked on c++11
4039 # being available everywhere). 4064 # being available everywhere).
4040 'CLANG_CXX_LANGUAGE_STANDARD': 'gnu++11', # -std=gnu++11 4065 'CLANG_CXX_LANGUAGE_STANDARD': 'gnu++11', # -std=gnu++11
4041 # Warn if automatic synthesis is triggered with 4066 # Warn if automatic synthesis is triggered with
4042 # the -Wobjc-missing-property-synthesis flag. 4067 # the -Wobjc-missing-property-synthesis flag.
4043 'CLANG_WARN_OBJC_MISSING_PROPERTY_SYNTHESIS': 'YES', 4068 'CLANG_WARN_OBJC_MISSING_PROPERTY_SYNTHESIS': 'YES',
4044 'GCC_VERSION': 'com.apple.compilers.llvm.clang.1_0', 4069 'GCC_VERSION': 'com.apple.compilers.llvm.clang.1_0',
(...skipping 14 matching lines...) Expand all
4059 # which we no longer use. Check if it makes sense to remove 4084 # which we no longer use. Check if it makes sense to remove
4060 # this as well. http://crbug.com/316352 4085 # this as well. http://crbug.com/316352
4061 '-Wno-unneeded-internal-declaration', 4086 '-Wno-unneeded-internal-declaration',
4062 4087
4063 # Warns on switches on enums that cover all enum values but 4088 # Warns on switches on enums that cover all enum values but
4064 # also contain a default: branch. Chrome is full of that. 4089 # also contain a default: branch. Chrome is full of that.
4065 '-Wno-covered-switch-default', 4090 '-Wno-covered-switch-default',
4066 4091
4067 # Warns when a const char[] is converted to bool. 4092 # Warns when a const char[] is converted to bool.
4068 '-Wstring-conversion', 4093 '-Wstring-conversion',
4094 ],
4069 4095
4070 # Clang considers the `register` keyword as deprecated, but e.g. 4096 'conditions': [
4071 # code generated by flex (used in angle) contains that keyword. 4097 ['clang_xcode==0', {
4072 # http://crbug.com/255186 4098 'CC': '$(SOURCE_ROOT)/<(clang_dir)/clang',
4073 '-Wno-deprecated-register', 4099 'LDPLUSPLUS': '$(SOURCE_ROOT)/<(clang_dir)/clang++',
4100
4101 'WARNING_CFLAGS': [
4102 # Clang considers the `register` keyword as deprecated, but
4103 # e.g. code generated by flex (used in angle) contains that
4104 # keyword. http://crbug.com/255186
4105 #
4106 # Note: clang as shipped with Xcode is older and does not
4107 # treat the `register` as deprecated and does not define
4108 # this flag, so don't enable it if "clang_xcode" is "1".
4109 '-Wno-deprecated-register',
4110 ],
4111 }],
4074 ], 4112 ],
4075 }], 4113 }],
4076 ['clang==1 and clang_use_chrome_plugins==1', { 4114 ['clang==1 and clang_xcode==0 and clang_use_chrome_plugins==1', {
4077 'OTHER_CFLAGS': [ 4115 'OTHER_CFLAGS': [
4078 '<@(clang_chrome_plugins_flags)', 4116 '<@(clang_chrome_plugins_flags)',
4079 ], 4117 ],
4080 }], 4118 }],
4081 ['clang==1 and clang_load!=""', { 4119 ['clang==1 and clang_xcode==0 and clang_load!=""', {
4082 'OTHER_CFLAGS': [ 4120 'OTHER_CFLAGS': [
4083 '-Xclang', '-load', '-Xclang', '<(clang_load)', 4121 '-Xclang', '-load', '-Xclang', '<(clang_load)',
4084 ], 4122 ],
4085 }], 4123 }],
4086 ['clang==1 and clang_add_plugin!=""', { 4124 ['clang==1 and clang_xcode==0 and clang_add_plugin!=""', {
4087 'OTHER_CFLAGS': [ 4125 'OTHER_CFLAGS': [
4088 '-Xclang', '-add-plugin', '-Xclang', '<(clang_add_plugin)', 4126 '-Xclang', '-add-plugin', '-Xclang', '<(clang_add_plugin)',
4089 ], 4127 ],
4090 }], 4128 }],
4091 ['clang==1 and "<(GENERATOR)"=="ninja"', { 4129 ['clang==1 and "<(GENERATOR)"=="ninja"', {
4092 'OTHER_CFLAGS': [ 4130 'OTHER_CFLAGS': [
4093 # See http://crbug.com/110262 4131 # See http://crbug.com/110262
4094 '-fcolor-diagnostics', 4132 '-fcolor-diagnostics',
4095 ], 4133 ],
4096 }], 4134 }],
(...skipping 260 matching lines...) Expand 10 before | Expand all | Expand 10 after
4357 'WARNING_CFLAGS': [ 4395 'WARNING_CFLAGS': [
4358 '-Wheader-hygiene', 4396 '-Wheader-hygiene',
4359 # Don't die on dtoa code that uses a char as an array index. 4397 # Don't die on dtoa code that uses a char as an array index.
4360 # This is required solely for base/third_party/dmg_fp/dtoa.cc. 4398 # This is required solely for base/third_party/dmg_fp/dtoa.cc.
4361 '-Wno-char-subscripts', 4399 '-Wno-char-subscripts',
4362 # See comment in the mac clang section above for this flag. 4400 # See comment in the mac clang section above for this flag.
4363 '-Wno-unneeded-internal-declaration', 4401 '-Wno-unneeded-internal-declaration',
4364 # Match OS X clang C++11 warning settings. 4402 # Match OS X clang C++11 warning settings.
4365 '-Wno-c++11-narrowing', 4403 '-Wno-c++11-narrowing',
4366 ], 4404 ],
4405
4406 # Limit the valid architectures depending on "target_subarch".
4407 # This need to include the "arm" architectures but also the "x86"
4408 # ones (they are used when building for the simulator).
4409 'conditions': [
4410 ['target_subarch=="arm32"', {
4411 'VALID_ARCHS': ['armv7', 'i386'],
4412 }],
4413 ['target_subarch=="arm64"', {
4414 'VALID_ARCHS': ['arm64', 'x86_64'],
4415 }],
4416 ['target_subarch=="both"', {
4417 'VALID_ARCHS': ['arm64', 'armv7', 'x86_64', 'i386'],
4418 }],
4419 ],
4367 }, 4420 },
4368 'target_conditions': [ 4421 'target_conditions': [
4369 ['_toolset=="host"', { 4422 ['_toolset=="host"', {
4370 'xcode_settings': { 4423 'xcode_settings': {
4371 'SDKROOT': 'macosx<(mac_sdk)', # -isysroot 4424 'SDKROOT': 'macosx<(mac_sdk)', # -isysroot
4372 'MACOSX_DEPLOYMENT_TARGET': '<(mac_deployment_target)', 4425 'MACOSX_DEPLOYMENT_TARGET': '<(mac_deployment_target)',
4426 'VALID_ARCHS': [
4427 'x86_64',
4428 ],
4373 'ARCHS': [ 4429 'ARCHS': [
4374 'x86_64' 4430 'x86_64',
4375 ], 4431 ],
4376 }, 4432 },
4377 }], 4433 }],
4378 ['_toolset=="target"', { 4434 ['_toolset=="target"', {
4379 'xcode_settings': { 4435 'xcode_settings': {
4380 # This section should be for overriding host settings. But, 4436 # This section should be for overriding host settings. But,
4381 # since we can't negate the iphone deployment target above, we 4437 # since we can't negate the iphone deployment target above, we
4382 # instead set it here for target only. 4438 # instead set it here for target only.
4383 'IPHONEOS_DEPLOYMENT_TARGET': '<(ios_deployment_target)', 4439 'IPHONEOS_DEPLOYMENT_TARGET': '<(ios_deployment_target)',
4440 'ARCHS': ['$(ARCHS_STANDARD_INCLUDING_64_BIT)'],
4384 }, 4441 },
4385 }], 4442 }],
4386 ['_type=="executable"', { 4443 ['_type=="executable"', {
4387 'configurations': { 4444 'configurations': {
4388 'Release_Base': { 4445 'Release_Base': {
4389 'xcode_settings': { 4446 'xcode_settings': {
4390 'DEPLOYMENT_POSTPROCESSING': 'YES', 4447 'DEPLOYMENT_POSTPROCESSING': 'YES',
4391 'STRIP_INSTALLED_PRODUCT': 'YES', 4448 'STRIP_INSTALLED_PRODUCT': 'YES',
4392 }, 4449 },
4393 }, 4450 },
(...skipping 376 matching lines...) Expand 10 before | Expand all | Expand 10 after
4770 # Don't warn about the "typedef 'foo' locally defined but not used" 4827 # Don't warn about the "typedef 'foo' locally defined but not used"
4771 # for gcc 4.8. 4828 # for gcc 4.8.
4772 # TODO: remove this flag once all builds work. See crbug.com/227506 4829 # TODO: remove this flag once all builds work. See crbug.com/227506
4773 ['gcc_version>=48', { 4830 ['gcc_version>=48', {
4774 'target_defaults': { 4831 'target_defaults': {
4775 'cflags': [ 4832 'cflags': [
4776 '-Wno-unused-local-typedefs', 4833 '-Wno-unused-local-typedefs',
4777 ], 4834 ],
4778 }, 4835 },
4779 }], 4836 }],
4780 ['clang==1 and OS!="win"', { 4837 ['clang==1 and ((OS!="mac" and OS!="ios") or clang_xcode==0) '
4838 'and OS!="win"', {
4781 'make_global_settings': [ 4839 'make_global_settings': [
4782 ['CC', '<(make_clang_dir)/bin/clang'], 4840 ['CC', '<(make_clang_dir)/bin/clang'],
4783 ['CXX', '<(make_clang_dir)/bin/clang++'], 4841 ['CXX', '<(make_clang_dir)/bin/clang++'],
4784 ['CC.host', '$(CC)'], 4842 ['CC.host', '$(CC)'],
4785 ['CXX.host', '$(CXX)'], 4843 ['CXX.host', '$(CXX)'],
4786 ], 4844 ],
4787 }], 4845 }],
4788 ['clang==1 and OS=="win"', { 4846 ['clang==1 and OS=="win"', {
4789 'make_global_settings': [ 4847 'make_global_settings': [
4790 # On Windows, gyp's ninja generator only looks at CC. 4848 # On Windows, gyp's ninja generator only looks at CC.
(...skipping 15 matching lines...) Expand all
4806 ['CC', '<(sysroot)/../bin/mipsel-linux-gnu-gcc'], 4864 ['CC', '<(sysroot)/../bin/mipsel-linux-gnu-gcc'],
4807 ['CXX', '<(sysroot)/../bin/mipsel-linux-gnu-g++'], 4865 ['CXX', '<(sysroot)/../bin/mipsel-linux-gnu-g++'],
4808 ['CC.host', '<!(which gcc)'], 4866 ['CC.host', '<!(which gcc)'],
4809 ['CXX.host', '<!(which g++)'], 4867 ['CXX.host', '<!(which g++)'],
4810 ], 4868 ],
4811 }], 4869 }],
4812 4870
4813 # TODO(yyanagisawa): supports GENERATOR==make 4871 # TODO(yyanagisawa): supports GENERATOR==make
4814 # make generator doesn't support CC_wrapper without CC 4872 # make generator doesn't support CC_wrapper without CC
4815 # in make_global_settings yet. 4873 # in make_global_settings yet.
4816 ['use_goma==1 and ("<(GENERATOR)"=="ninja" or clang==1)', { 4874 ['use_goma==1 and ((OS!="mac" and OS!="ios") or clang_xcode==0) and '
4875 '("<(GENERATOR)"=="ninja" or clang==1)', {
4817 'make_global_settings': [ 4876 'make_global_settings': [
4818 ['CC_wrapper', '<(gomadir)/gomacc'], 4877 ['CC_wrapper', '<(gomadir)/gomacc'],
4819 ['CXX_wrapper', '<(gomadir)/gomacc'], 4878 ['CXX_wrapper', '<(gomadir)/gomacc'],
4820 ['CC.host_wrapper', '<(gomadir)/gomacc'], 4879 ['CC.host_wrapper', '<(gomadir)/gomacc'],
4821 ['CXX.host_wrapper', '<(gomadir)/gomacc'], 4880 ['CXX.host_wrapper', '<(gomadir)/gomacc'],
4822 ], 4881 ],
4823 }], 4882 }],
4824 ], 4883 ],
4825 'xcode_settings': { 4884 'xcode_settings': {
4826 # DON'T ADD ANYTHING NEW TO THIS BLOCK UNLESS YOU REALLY REALLY NEED IT! 4885 # DON'T ADD ANYTHING NEW TO THIS BLOCK UNLESS YOU REALLY REALLY NEED IT!
(...skipping 27 matching lines...) Expand all
4854 }], 4913 }],
4855 ], 4914 ],
4856 }, { 4915 }, {
4857 'SDKROOT': '<(ios_sdk_path)', # -isysroot 4916 'SDKROOT': '<(ios_sdk_path)', # -isysroot
4858 }], 4917 }],
4859 ], 4918 ],
4860 }], 4919 }],
4861 ['OS=="ios"', { 4920 ['OS=="ios"', {
4862 # Target both iPhone and iPad. 4921 # Target both iPhone and iPad.
4863 'TARGETED_DEVICE_FAMILY': '1,2', 4922 'TARGETED_DEVICE_FAMILY': '1,2',
4864 'VALID_ARCHS': 'armv7 i386',
4865 }, { # OS!="ios" 4923 }, { # OS!="ios"
4866 'conditions': [ 4924 'conditions': [
4867 ['target_arch=="x64"', { 4925 ['target_arch=="x64"', {
4868 'ARCHS': [ 4926 'ARCHS': [
4869 'x86_64' 4927 'x86_64'
4870 ], 4928 ],
4871 }], 4929 }],
4872 ['target_arch=="ia32"', { 4930 ['target_arch=="ia32"', {
4873 'ARCHS': [ 4931 'ARCHS': [
4874 'i386' 4932 'i386'
(...skipping 10 matching lines...) Expand all
4885 # settings in target dicts. SYMROOT is a special case, because many other 4943 # settings in target dicts. SYMROOT is a special case, because many other
4886 # Xcode variables depend on it, including variables such as 4944 # Xcode variables depend on it, including variables such as
4887 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something 4945 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something
4888 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the 4946 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the
4889 # files to appear (when present) in the UI as actual files and not red 4947 # files to appear (when present) in the UI as actual files and not red
4890 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, 4948 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR,
4891 # and therefore SYMROOT, needs to be set at the project level. 4949 # and therefore SYMROOT, needs to be set at the project level.
4892 'SYMROOT': '<(DEPTH)/xcodebuild', 4950 'SYMROOT': '<(DEPTH)/xcodebuild',
4893 }, 4951 },
4894 } 4952 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698