aboutsummaryrefslogtreecommitdiffhomepage
path: root/gyp
diff options
context:
space:
mode:
authorGravatar bungeman <bungeman@google.com>2016-02-03 13:06:28 -0800
committerGravatar Commit bot <commit-bot@chromium.org>2016-02-03 13:06:28 -0800
commit1aeac308093892ff2ae42fa228a69260a01b92ff (patch)
tree1cb40a77b4de7bd599c3b34bdb54bdf9eb45e24b /gyp
parent9e9444cad8a9df626eff49ea271ebb4e3a603a20 (diff)
Revert "Factor out xcode c/cpp settings into variables to apply to cmake builds."
This reverts commit 32235eac4b5c625e639757b8247f6e64ce4dc4c8. This change should no longer be necessary now that gyp has been updated. Review URL: https://codereview.chromium.org/1664923002
Diffstat (limited to 'gyp')
-rw-r--r--gyp/common_conditions.gypi55
-rw-r--r--gyp/icu.gyp2
2 files changed, 17 insertions, 40 deletions
diff --git a/gyp/common_conditions.gypi b/gyp/common_conditions.gypi
index 11f98bd28d..859577e1a3 100644
--- a/gyp/common_conditions.gypi
+++ b/gyp/common_conditions.gypi
@@ -476,28 +476,6 @@
[ 'skia_os == "mac"',
{
- 'variables': {
- # Setup some flags that are used below in both the XCode/ninja build as well as the
- # cmake build.
- 'common_c_and_cpp_flags': [
- '-mssse3',
- '-fvisibility=hidden',
- '-fvisibility-inlines-hidden',
- '-Wall',
- '-Wextra',
- '-Winit-self',
- '-Wpointer-arith',
- '-Wsign-compare',
- '-Wno-unused-parameter',
- ],
- 'common_cpp_flags': [
- '-fno-threadsafe-statics',
- '-fno-exceptions',
- '-fno-rtti',
- '-std=c++11',
- '-stdlib=libc++'
- ],
- },
'defines': [ 'SK_BUILD_FOR_MAC' ],
'conditions': [
# ANGLE for mac hits -Wunneeded-internal-declaration if this isn't set.
@@ -531,15 +509,13 @@
'MACOSX_DEPLOYMENT_TARGET': '<(skia_osx_deployment_target)',
}],
[ 'skia_sanitizer', {
+ 'GCC_ENABLE_CPP_RTTI': 'YES', # vptr needs rtti
'OTHER_CFLAGS': [
'-fsanitize=<(skia_sanitizer)', # Turn on sanitizers.
'-fno-sanitize-recover=<(skia_sanitizer)', # Make any failure fatal.
'-fsanitize-blacklist=<(skia_sanitizer_blacklist)', # Compile in our blacklist.
'-include <(skia_sanitizer_blacklist)', # Make every .cpp depend on it.
],
- 'OTHER_CPLUSPLUSFLAGS': [
- '-frtti', # vptr needs rtti
- ],
# We want to pass -fsanitize=... to our final link call,
# but not to libtool. OTHER_LDFLAGS is passed to both.
# To trick GYP into doing what we want, we'll piggyback on
@@ -549,24 +525,25 @@
}],
],
'CLANG_CXX_LIBRARY': 'libc++',
+ 'CLANG_CXX_LANGUAGE_STANDARD': 'c++11',
+ 'GCC_ENABLE_CPP_EXCEPTIONS': 'NO', # -fno-exceptions
+ 'GCC_ENABLE_CPP_RTTI': 'NO', # -fno-rtti
+ 'GCC_THREADSAFE_STATICS': 'NO', # -fno-threadsafe-statics
+ 'GCC_ENABLE_SUPPLEMENTAL_SSE3_INSTRUCTIONS': 'YES', # -mssse3
+ 'GCC_SYMBOLS_PRIVATE_EXTERN': 'NO', # -fvisibility=hidden
+ 'GCC_INLINES_ARE_PRIVATE_EXTERN': 'NO', # -fvisibility-inlines-hidden
'GCC_CW_ASM_SYNTAX': 'NO', # remove -fasm-blocks
'GCC_ENABLE_PASCAL_STRINGS': 'NO', # remove -mpascal-strings
- # Used by XCode and ninja
- 'OTHER_CPLUSPLUSFLAGS': [
- '<@(common_cpp_flags)',
- '<@(common_c_and_cpp_flags)',
- ],
- 'OTHER_CFLAGS': [
- '<@(common_c_and_cpp_flags)',
+ 'WARNING_CFLAGS': [
+ '-Wall',
+ '-Wextra',
+ '-Winit-self',
+ '-Wpointer-arith',
+ '-Wsign-compare',
+
+ '-Wno-unused-parameter',
],
},
- # Used by cmake
- 'cflags': [
- '<@(common_c_and_cpp_flags)',
- ],
- 'cflags_cc': [
- '<@(common_cpp_flags)',
- ],
},
],
diff --git a/gyp/icu.gyp b/gyp/icu.gyp
index 27bd60fa16..5142b77ed6 100644
--- a/gyp/icu.gyp
+++ b/gyp/icu.gyp
@@ -120,7 +120,7 @@
'skia_os == "mac"', {
'sources': [ '<(icu_directory)/mac/icudtl_dat.S', ],
'xcode_settings': {
- 'OTHER_CPLUSPLUSFLAGS': [ '-frtti' ],
+ 'GCC_ENABLE_CPP_RTTI': 'YES', # -frtti
'WARNING_CFLAGS': [ '-w' ],
},
}