Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 Loading... | |
| 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 Loading... | |
| 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 arch for iOS, and the sub-arch. The sub-arch can | |
| 226 # be either "arm32", "arm64" or "both" (meaning a fat binary). | |
| 227 # TODO(sdefresne): change the default from "arm32" to "both" for | |
| 228 # "target_subarch" once http://crbug.com/339477 is fixed. | |
| 229 ['OS=="ios"', { | |
| 230 'target_arch%': 'arm', | |
| 231 'target_subarch%': 'arm32', | |
| 232 }], | |
| 223 ], | 233 ], |
| 224 }, | 234 }, |
| 225 | 235 |
| 226 # Copy conditionally-set variables out one scope. | 236 # Copy conditionally-set variables out one scope. |
| 227 'chromeos%': '<(chromeos)', | 237 'chromeos%': '<(chromeos)', |
| 228 'host_arch%': '<(host_arch)', | 238 'host_arch%': '<(host_arch)', |
| 229 'target_arch%': '<(target_arch)', | 239 'target_arch%': '<(target_arch)', |
| 240 'target_subarch%': '<(target_subarch)', | |
| 230 'toolkit_views%': '<(toolkit_views)', | 241 'toolkit_views%': '<(toolkit_views)', |
| 231 'toolkit_uses_gtk%': '<(toolkit_uses_gtk)', | 242 'toolkit_uses_gtk%': '<(toolkit_uses_gtk)', |
| 232 'desktop_linux%': '<(desktop_linux)', | 243 'desktop_linux%': '<(desktop_linux)', |
| 233 'use_aura%': '<(use_aura)', | 244 'use_aura%': '<(use_aura)', |
| 234 'use_ash%': '<(use_ash)', | 245 'use_ash%': '<(use_ash)', |
| 235 'use_cras%': '<(use_cras)', | 246 'use_cras%': '<(use_cras)', |
| 236 'use_ozone%': '<(use_ozone)', | 247 'use_ozone%': '<(use_ozone)', |
| 237 'use_ozone_evdev%': '<(use_ozone_evdev)', | 248 'use_ozone_evdev%': '<(use_ozone_evdev)', |
| 238 'use_clipboard_aurax11%': '<(use_clipboard_aurax11)', | 249 'use_clipboard_aurax11%': '<(use_clipboard_aurax11)', |
| 239 'embedded%': '<(embedded)', | 250 'embedded%': '<(embedded)', |
| (...skipping 619 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 859 # keys will be used instead. | 870 # keys will be used instead. |
| 860 'google_api_key%': '', | 871 'google_api_key%': '', |
| 861 'google_default_client_id%': '', | 872 'google_default_client_id%': '', |
| 862 'google_default_client_secret%': '', | 873 'google_default_client_secret%': '', |
| 863 }, | 874 }, |
| 864 | 875 |
| 865 # Copy conditionally-set variables out one scope. | 876 # Copy conditionally-set variables out one scope. |
| 866 'branding%': '<(branding)', | 877 'branding%': '<(branding)', |
| 867 'buildtype%': '<(buildtype)', | 878 'buildtype%': '<(buildtype)', |
| 868 'target_arch%': '<(target_arch)', | 879 'target_arch%': '<(target_arch)', |
| 880 'target_subarch%': '<(target_subarch)', | |
| 869 'host_arch%': '<(host_arch)', | 881 'host_arch%': '<(host_arch)', |
| 870 'toolkit_views%': '<(toolkit_views)', | 882 'toolkit_views%': '<(toolkit_views)', |
| 871 'ui_compositor_image_transport%': '<(ui_compositor_image_transport)', | 883 'ui_compositor_image_transport%': '<(ui_compositor_image_transport)', |
| 872 'use_aura%': '<(use_aura)', | 884 'use_aura%': '<(use_aura)', |
| 873 'use_ash%': '<(use_ash)', | 885 'use_ash%': '<(use_ash)', |
| 874 'use_cras%': '<(use_cras)', | 886 'use_cras%': '<(use_cras)', |
| 875 'use_openssl%': '<(use_openssl)', | 887 'use_openssl%': '<(use_openssl)', |
| 876 'use_nss%': '<(use_nss)', | 888 'use_nss%': '<(use_nss)', |
| 877 'use_udev%': '<(use_udev)', | 889 'use_udev%': '<(use_udev)', |
| 878 'os_bsd%': '<(os_bsd)', | 890 'os_bsd%': '<(os_bsd)', |
| (...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1075 # is some third party code that takes a long time to fix/roll. So, this | 1087 # 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 | 1088 # flag allows us to have warnings as errors in general to prevent |
| 1077 # regressions in most modules, while working on the bits that are | 1089 # regressions in most modules, while working on the bits that are |
| 1078 # remaining. | 1090 # remaining. |
| 1079 'win_third_party_warn_as_error%': 'true', | 1091 'win_third_party_warn_as_error%': 'true', |
| 1080 | 1092 |
| 1081 # Clang stuff. | 1093 # Clang stuff. |
| 1082 'clang%': '<(clang)', | 1094 'clang%': '<(clang)', |
| 1083 'make_clang_dir%': 'third_party/llvm-build/Release+Asserts', | 1095 'make_clang_dir%': 'third_party/llvm-build/Release+Asserts', |
| 1084 | 1096 |
| 1097 # Control which version of clang to use when 'clang' is set to 1 when | |
| 1098 # building for iOS (Apple has not yet open-sourced support for "arm64" | |
| 1099 # so when building for that 'target_arch' we have to use clang shipped | |
| 1100 # with Xcode that does not supports some flags). | |
| 1101 # TODO(sdefresne): remove this once http://crbug.com/341453 is fixed. | |
| 1102 'clang_xcode%': 0, | |
| 1103 | |
| 1085 # These two variables can be set in GYP_DEFINES while running | 1104 # These two variables can be set in GYP_DEFINES while running |
| 1086 # |gclient runhooks| to let clang run a plugin in every compilation. | 1105 # |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. | 1106 # Only has an effect if 'clang=1' is in GYP_DEFINES as well. |
| 1088 # Example: | 1107 # Example: |
| 1089 # GYP_DEFINES='clang=1 clang_load=/abs/path/to/libPrintFunctionNames.dyl ib clang_add_plugin=print-fns' gclient runhooks | 1108 # GYP_DEFINES='clang=1 clang_load=/abs/path/to/libPrintFunctionNames.dyl ib clang_add_plugin=print-fns' gclient runhooks |
| 1090 | 1109 |
| 1091 'clang_load%': '', | 1110 'clang_load%': '', |
| 1092 'clang_add_plugin%': '', | 1111 'clang_add_plugin%': '', |
| 1093 | 1112 |
| 1094 # Tell ld64 to write map files describing binary layout. Useful | 1113 # Tell ld64 to write map files describing binary layout. Useful |
| (...skipping 624 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1719 '-t', 'ios', | 1738 '-t', 'ios', |
| 1720 # iOS uses a whitelist to filter resources. | 1739 # iOS uses a whitelist to filter resources. |
| 1721 '-w', '<(DEPTH)/build/ios/grit_whitelist.txt' | 1740 '-w', '<(DEPTH)/build/ios/grit_whitelist.txt' |
| 1722 ], | 1741 ], |
| 1723 | 1742 |
| 1724 # Enable clang and host builds when generating with ninja-ios. | 1743 # Enable clang and host builds when generating with ninja-ios. |
| 1725 'conditions': [ | 1744 'conditions': [ |
| 1726 ['"<(GENERATOR)"=="ninja"', { | 1745 ['"<(GENERATOR)"=="ninja"', { |
| 1727 'clang%': 1, | 1746 'clang%': 1, |
| 1728 'host_os%': "mac", | 1747 'host_os%': "mac", |
| 1729 }] | 1748 }], |
| 1749 # Apple has not upstreamed the support for "arm64" yet, so when | |
| 1750 # building for "arm64" or "both", we need to use the clang that | |
| 1751 # is provided with Xcode. | |
| 1752 ['target_subarch!="arm32"', { | |
| 1753 'clang_xcode%': 1, | |
| 1754 }], | |
| 1730 ], | 1755 ], |
| 1731 }], | 1756 }], |
| 1732 ['enable_extensions==1', { | 1757 ['enable_extensions==1', { |
| 1733 'grit_defines': ['-D', 'enable_extensions'], | 1758 'grit_defines': ['-D', 'enable_extensions'], |
| 1734 }], | 1759 }], |
| 1735 ['enable_plugins!=0', { | 1760 ['enable_plugins!=0', { |
| 1736 'grit_defines': ['-D', 'enable_plugins'], | 1761 'grit_defines': ['-D', 'enable_plugins'], |
| 1737 }], | 1762 }], |
| 1738 ['enable_printing!=0', { | 1763 ['enable_printing!=0', { |
| 1739 'grit_defines': ['-D', 'enable_printing'], | 1764 'grit_defines': ['-D', 'enable_printing'], |
| (...skipping 2282 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 4022 # pattern. | 4047 # pattern. |
| 4023 '-Wno-missing-field-initializers', | 4048 '-Wno-missing-field-initializers', |
| 4024 ], | 4049 ], |
| 4025 'conditions': [ | 4050 'conditions': [ |
| 4026 ['chromium_mac_pch', {'GCC_PRECOMPILE_PREFIX_HEADER': 'YES'}, | 4051 ['chromium_mac_pch', {'GCC_PRECOMPILE_PREFIX_HEADER': 'YES'}, |
| 4027 {'GCC_PRECOMPILE_PREFIX_HEADER': 'NO'} | 4052 {'GCC_PRECOMPILE_PREFIX_HEADER': 'NO'} |
| 4028 ], | 4053 ], |
| 4029 # Note that the prebuilt Clang binaries should not be used for iOS | 4054 # Note that the prebuilt Clang binaries should not be used for iOS |
| 4030 # development except for ASan builds. | 4055 # development except for ASan builds. |
| 4031 ['clang==1', { | 4056 ['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 | 4057 # gnu++11 instead of c++11 is needed because some code uses |
| 4036 # typeof() (a GNU extension). | 4058 # typeof() (a GNU extension). |
| 4037 # TODO(thakis): Eventually switch this to c++11 instead of | 4059 # TODO(thakis): Eventually switch this to c++11 instead of |
| 4038 # gnu++11 (once typeof can be removed, which is blocked on c++11 | 4060 # gnu++11 (once typeof can be removed, which is blocked on c++11 |
| 4039 # being available everywhere). | 4061 # being available everywhere). |
| 4040 'CLANG_CXX_LANGUAGE_STANDARD': 'gnu++11', # -std=gnu++11 | 4062 'CLANG_CXX_LANGUAGE_STANDARD': 'gnu++11', # -std=gnu++11 |
| 4041 # Warn if automatic synthesis is triggered with | 4063 # Warn if automatic synthesis is triggered with |
| 4042 # the -Wobjc-missing-property-synthesis flag. | 4064 # the -Wobjc-missing-property-synthesis flag. |
| 4043 'CLANG_WARN_OBJC_MISSING_PROPERTY_SYNTHESIS': 'YES', | 4065 'CLANG_WARN_OBJC_MISSING_PROPERTY_SYNTHESIS': 'YES', |
| 4044 'GCC_VERSION': 'com.apple.compilers.llvm.clang.1_0', | 4066 'GCC_VERSION': 'com.apple.compilers.llvm.clang.1_0', |
| (...skipping 14 matching lines...) Expand all Loading... | |
| 4059 # which we no longer use. Check if it makes sense to remove | 4081 # which we no longer use. Check if it makes sense to remove |
| 4060 # this as well. http://crbug.com/316352 | 4082 # this as well. http://crbug.com/316352 |
| 4061 '-Wno-unneeded-internal-declaration', | 4083 '-Wno-unneeded-internal-declaration', |
| 4062 | 4084 |
| 4063 # Warns on switches on enums that cover all enum values but | 4085 # Warns on switches on enums that cover all enum values but |
| 4064 # also contain a default: branch. Chrome is full of that. | 4086 # also contain a default: branch. Chrome is full of that. |
| 4065 '-Wno-covered-switch-default', | 4087 '-Wno-covered-switch-default', |
| 4066 | 4088 |
| 4067 # Warns when a const char[] is converted to bool. | 4089 # Warns when a const char[] is converted to bool. |
| 4068 '-Wstring-conversion', | 4090 '-Wstring-conversion', |
| 4091 ], | |
| 4069 | 4092 |
| 4070 # Clang considers the `register` keyword as deprecated, but e.g. | 4093 'conditions': [ |
| 4071 # code generated by flex (used in angle) contains that keyword. | 4094 ['clang_xcode==0', { |
| 4072 # http://crbug.com/255186 | 4095 'CC': '$(SOURCE_ROOT)/<(clang_dir)/clang', |
| 4073 '-Wno-deprecated-register', | 4096 'LDPLUSPLUS': '$(SOURCE_ROOT)/<(clang_dir)/clang++', |
| 4097 | |
| 4098 'WARNING_CFLAGS': [ | |
| 4099 # Clang considers the `register` keyword as deprecated, but | |
| 4100 # e.g. code generated by flex (used in angle) contains that | |
| 4101 # keyword. http://crbug.com/255186 | |
| 4102 '-Wno-deprecated-register', | |
|
Mark Mentovai
2014/02/10 14:50:02
Is this in here because the clang that ships with
sdefresne
2014/02/10 15:04:09
Yes, it does complain:
$ clang++ -Wno-deprecated-
Mark Mentovai
2014/02/10 15:05:18
Then you should add a quick note to the comment sa
| |
| 4103 ], | |
| 4104 }], | |
| 4074 ], | 4105 ], |
| 4075 }], | 4106 }], |
| 4076 ['clang==1 and clang_use_chrome_plugins==1', { | 4107 ['clang==1 and clang_xcode==0 and clang_use_chrome_plugins==1', { |
| 4077 'OTHER_CFLAGS': [ | 4108 'OTHER_CFLAGS': [ |
| 4078 '<@(clang_chrome_plugins_flags)', | 4109 '<@(clang_chrome_plugins_flags)', |
| 4079 ], | 4110 ], |
| 4080 }], | 4111 }], |
| 4081 ['clang==1 and clang_load!=""', { | 4112 ['clang==1 and clang_xcode==0 and clang_load!=""', { |
| 4082 'OTHER_CFLAGS': [ | 4113 'OTHER_CFLAGS': [ |
| 4083 '-Xclang', '-load', '-Xclang', '<(clang_load)', | 4114 '-Xclang', '-load', '-Xclang', '<(clang_load)', |
| 4084 ], | 4115 ], |
| 4085 }], | 4116 }], |
| 4086 ['clang==1 and clang_add_plugin!=""', { | 4117 ['clang==1 and clang_xcode==0 and clang_add_plugin!=""', { |
| 4087 'OTHER_CFLAGS': [ | 4118 'OTHER_CFLAGS': [ |
| 4088 '-Xclang', '-add-plugin', '-Xclang', '<(clang_add_plugin)', | 4119 '-Xclang', '-add-plugin', '-Xclang', '<(clang_add_plugin)', |
| 4089 ], | 4120 ], |
| 4090 }], | 4121 }], |
| 4091 ['clang==1 and "<(GENERATOR)"=="ninja"', { | 4122 ['clang==1 and "<(GENERATOR)"=="ninja"', { |
| 4092 'OTHER_CFLAGS': [ | 4123 'OTHER_CFLAGS': [ |
| 4093 # See http://crbug.com/110262 | 4124 # See http://crbug.com/110262 |
| 4094 '-fcolor-diagnostics', | 4125 '-fcolor-diagnostics', |
| 4095 ], | 4126 ], |
| 4096 }], | 4127 }], |
| (...skipping 260 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 4357 'WARNING_CFLAGS': [ | 4388 'WARNING_CFLAGS': [ |
| 4358 '-Wheader-hygiene', | 4389 '-Wheader-hygiene', |
| 4359 # Don't die on dtoa code that uses a char as an array index. | 4390 # 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. | 4391 # This is required solely for base/third_party/dmg_fp/dtoa.cc. |
| 4361 '-Wno-char-subscripts', | 4392 '-Wno-char-subscripts', |
| 4362 # See comment in the mac clang section above for this flag. | 4393 # See comment in the mac clang section above for this flag. |
| 4363 '-Wno-unneeded-internal-declaration', | 4394 '-Wno-unneeded-internal-declaration', |
| 4364 # Match OS X clang C++11 warning settings. | 4395 # Match OS X clang C++11 warning settings. |
| 4365 '-Wno-c++11-narrowing', | 4396 '-Wno-c++11-narrowing', |
| 4366 ], | 4397 ], |
| 4398 | |
| 4399 # Limit the valid architectures depending on "target_subarch". | |
| 4400 # This need to include the "arm" architectures but also the "x86" | |
| 4401 # ones (they are used when building for the simulator). | |
| 4402 'conditions': [ | |
| 4403 ['target_subarch=="arm32"', { | |
| 4404 'VALID_ARCHS': ['armv7', 'i386'], | |
| 4405 }], | |
| 4406 ['target_subarch=="arm64"', { | |
| 4407 'VALID_ARCHS': ['arm64', 'x86_64'], | |
| 4408 }], | |
| 4409 ['target_subarch=="both"', { | |
| 4410 'VALID_ARCHS': ['arm64', 'armv7', 'x86_64', 'i386'], | |
| 4411 }], | |
| 4412 ], | |
| 4367 }, | 4413 }, |
| 4368 'target_conditions': [ | 4414 'target_conditions': [ |
| 4369 ['_toolset=="host"', { | 4415 ['_toolset=="host"', { |
| 4370 'xcode_settings': { | 4416 'xcode_settings': { |
| 4371 'SDKROOT': 'macosx<(mac_sdk)', # -isysroot | 4417 'SDKROOT': 'macosx<(mac_sdk)', # -isysroot |
| 4372 'MACOSX_DEPLOYMENT_TARGET': '<(mac_deployment_target)', | 4418 'MACOSX_DEPLOYMENT_TARGET': '<(mac_deployment_target)', |
| 4419 'VALID_ARCHS': [ | |
| 4420 'x86_64', | |
| 4421 ], | |
| 4373 'ARCHS': [ | 4422 'ARCHS': [ |
| 4374 'x86_64' | 4423 'x86_64', |
| 4375 ], | 4424 ], |
| 4376 }, | 4425 }, |
| 4377 }], | 4426 }], |
| 4378 ['_toolset=="target"', { | 4427 ['_toolset=="target"', { |
| 4379 'xcode_settings': { | 4428 'xcode_settings': { |
| 4380 # This section should be for overriding host settings. But, | 4429 # This section should be for overriding host settings. But, |
| 4381 # since we can't negate the iphone deployment target above, we | 4430 # since we can't negate the iphone deployment target above, we |
| 4382 # instead set it here for target only. | 4431 # instead set it here for target only. |
| 4383 'IPHONEOS_DEPLOYMENT_TARGET': '<(ios_deployment_target)', | 4432 'IPHONEOS_DEPLOYMENT_TARGET': '<(ios_deployment_target)', |
| 4433 'ARCHS': ['$(ARCHS_STANDARD_INCLUDING_64_BIT)'], | |
| 4384 }, | 4434 }, |
| 4385 }], | 4435 }], |
| 4386 ['_type=="executable"', { | 4436 ['_type=="executable"', { |
| 4387 'configurations': { | 4437 'configurations': { |
| 4388 'Release_Base': { | 4438 'Release_Base': { |
| 4389 'xcode_settings': { | 4439 'xcode_settings': { |
| 4390 'DEPLOYMENT_POSTPROCESSING': 'YES', | 4440 'DEPLOYMENT_POSTPROCESSING': 'YES', |
| 4391 'STRIP_INSTALLED_PRODUCT': 'YES', | 4441 'STRIP_INSTALLED_PRODUCT': 'YES', |
| 4392 }, | 4442 }, |
| 4393 }, | 4443 }, |
| (...skipping 376 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 4770 # Don't warn about the "typedef 'foo' locally defined but not used" | 4820 # Don't warn about the "typedef 'foo' locally defined but not used" |
| 4771 # for gcc 4.8. | 4821 # for gcc 4.8. |
| 4772 # TODO: remove this flag once all builds work. See crbug.com/227506 | 4822 # TODO: remove this flag once all builds work. See crbug.com/227506 |
| 4773 ['gcc_version>=48', { | 4823 ['gcc_version>=48', { |
| 4774 'target_defaults': { | 4824 'target_defaults': { |
| 4775 'cflags': [ | 4825 'cflags': [ |
| 4776 '-Wno-unused-local-typedefs', | 4826 '-Wno-unused-local-typedefs', |
| 4777 ], | 4827 ], |
| 4778 }, | 4828 }, |
| 4779 }], | 4829 }], |
| 4780 ['clang==1 and OS!="win"', { | 4830 ['clang==1 and clang_xcode==0 and OS!="win"', { |
|
Mark Mentovai
2014/02/10 14:50:02
Seeing clang_xcode here makes it seem like that’s
sdefresne
2014/02/10 15:04:09
Done.
| |
| 4781 'make_global_settings': [ | 4831 'make_global_settings': [ |
| 4782 ['CC', '<(make_clang_dir)/bin/clang'], | 4832 ['CC', '<(make_clang_dir)/bin/clang'], |
| 4783 ['CXX', '<(make_clang_dir)/bin/clang++'], | 4833 ['CXX', '<(make_clang_dir)/bin/clang++'], |
| 4784 ['CC.host', '$(CC)'], | 4834 ['CC.host', '$(CC)'], |
| 4785 ['CXX.host', '$(CXX)'], | 4835 ['CXX.host', '$(CXX)'], |
| 4786 ], | 4836 ], |
| 4787 }], | 4837 }], |
| 4788 ['clang==1 and OS=="win"', { | 4838 ['clang==1 and OS=="win"', { |
| 4789 'make_global_settings': [ | 4839 'make_global_settings': [ |
| 4790 # On Windows, gyp's ninja generator only looks at CC. | 4840 # On Windows, gyp's ninja generator only looks at CC. |
| (...skipping 15 matching lines...) Expand all Loading... | |
| 4806 ['CC', '<(sysroot)/../bin/mipsel-linux-gnu-gcc'], | 4856 ['CC', '<(sysroot)/../bin/mipsel-linux-gnu-gcc'], |
| 4807 ['CXX', '<(sysroot)/../bin/mipsel-linux-gnu-g++'], | 4857 ['CXX', '<(sysroot)/../bin/mipsel-linux-gnu-g++'], |
| 4808 ['CC.host', '<!(which gcc)'], | 4858 ['CC.host', '<!(which gcc)'], |
| 4809 ['CXX.host', '<!(which g++)'], | 4859 ['CXX.host', '<!(which g++)'], |
| 4810 ], | 4860 ], |
| 4811 }], | 4861 }], |
| 4812 | 4862 |
| 4813 # TODO(yyanagisawa): supports GENERATOR==make | 4863 # TODO(yyanagisawa): supports GENERATOR==make |
| 4814 # make generator doesn't support CC_wrapper without CC | 4864 # make generator doesn't support CC_wrapper without CC |
| 4815 # in make_global_settings yet. | 4865 # in make_global_settings yet. |
| 4816 ['use_goma==1 and ("<(GENERATOR)"=="ninja" or clang==1)', { | 4866 ['use_goma==1 and clang_xcode==0 and ' |
|
Mark Mentovai
2014/02/10 14:50:02
Same.
sdefresne
2014/02/10 15:04:09
Done.
| |
| 4867 '("<(GENERATOR)"=="ninja" or clang==1)', { | |
| 4817 'make_global_settings': [ | 4868 'make_global_settings': [ |
| 4818 ['CC_wrapper', '<(gomadir)/gomacc'], | 4869 ['CC_wrapper', '<(gomadir)/gomacc'], |
| 4819 ['CXX_wrapper', '<(gomadir)/gomacc'], | 4870 ['CXX_wrapper', '<(gomadir)/gomacc'], |
| 4820 ['CC.host_wrapper', '<(gomadir)/gomacc'], | 4871 ['CC.host_wrapper', '<(gomadir)/gomacc'], |
| 4821 ['CXX.host_wrapper', '<(gomadir)/gomacc'], | 4872 ['CXX.host_wrapper', '<(gomadir)/gomacc'], |
| 4822 ], | 4873 ], |
| 4823 }], | 4874 }], |
| 4824 ], | 4875 ], |
| 4825 'xcode_settings': { | 4876 'xcode_settings': { |
| 4826 # DON'T ADD ANYTHING NEW TO THIS BLOCK UNLESS YOU REALLY REALLY NEED IT! | 4877 # DON'T ADD ANYTHING NEW TO THIS BLOCK UNLESS YOU REALLY REALLY NEED IT! |
| (...skipping 27 matching lines...) Expand all Loading... | |
| 4854 }], | 4905 }], |
| 4855 ], | 4906 ], |
| 4856 }, { | 4907 }, { |
| 4857 'SDKROOT': '<(ios_sdk_path)', # -isysroot | 4908 'SDKROOT': '<(ios_sdk_path)', # -isysroot |
| 4858 }], | 4909 }], |
| 4859 ], | 4910 ], |
| 4860 }], | 4911 }], |
| 4861 ['OS=="ios"', { | 4912 ['OS=="ios"', { |
| 4862 # Target both iPhone and iPad. | 4913 # Target both iPhone and iPad. |
| 4863 'TARGETED_DEVICE_FAMILY': '1,2', | 4914 'TARGETED_DEVICE_FAMILY': '1,2', |
| 4864 'VALID_ARCHS': 'armv7 i386', | |
| 4865 }, { # OS!="ios" | 4915 }, { # OS!="ios" |
| 4866 'conditions': [ | 4916 'conditions': [ |
| 4867 ['target_arch=="x64"', { | 4917 ['target_arch=="x64"', { |
| 4868 'ARCHS': [ | 4918 'ARCHS': [ |
| 4869 'x86_64' | 4919 'x86_64' |
| 4870 ], | 4920 ], |
| 4871 }], | 4921 }], |
| 4872 ['target_arch=="ia32"', { | 4922 ['target_arch=="ia32"', { |
| 4873 'ARCHS': [ | 4923 'ARCHS': [ |
| 4874 'i386' | 4924 'i386' |
| (...skipping 10 matching lines...) Expand all Loading... | |
| 4885 # settings in target dicts. SYMROOT is a special case, because many other | 4935 # settings in target dicts. SYMROOT is a special case, because many other |
| 4886 # Xcode variables depend on it, including variables such as | 4936 # Xcode variables depend on it, including variables such as |
| 4887 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something | 4937 # 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 | 4938 # 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 | 4939 # 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, | 4940 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, |
| 4891 # and therefore SYMROOT, needs to be set at the project level. | 4941 # and therefore SYMROOT, needs to be set at the project level. |
| 4892 'SYMROOT': '<(DEPTH)/xcodebuild', | 4942 'SYMROOT': '<(DEPTH)/xcodebuild', |
| 4893 }, | 4943 }, |
| 4894 } | 4944 } |
| OLD | NEW |