diff --git a/gyp/common_conditions.gypi b/gyp/common_conditions.gypi index c63095c33a..934eba9591 100644 --- a/gyp/common_conditions.gypi +++ b/gyp/common_conditions.gypi @@ -181,7 +181,7 @@ 'xcode_settings': { 'GCC_SYMBOLS_PRIVATE_EXTERN': 'NO', 'SYMROOT': '<(DEPTH)/xcodebuild', - 'SDKROOT': 'macosx10.6', + 'SDKROOT': '<(skia_osx_sdkroot)', # trying to get this to work, but it needs clang I think... # 'WARNING_CFLAGS': '-Wexit-time-destructors', 'CLANG_WARN_CXX0X_EXTENSIONS': 'NO', diff --git a/gyp/common_variables.gypi b/gyp/common_variables.gypi index 0031f02873..ee89ca94e0 100644 --- a/gyp/common_variables.gypi +++ b/gyp/common_variables.gypi @@ -78,6 +78,7 @@ 'android_make_apk%': 1, 'skia_nacl%': 0, 'skia_gpu%': 1, + 'skia_osx_sdkroot%': 'macosx10.6', }, # Re-define all variables defined within the level-2 'variables' dict, @@ -94,6 +95,7 @@ 'android_make_apk%': '<(android_make_apk)', 'skia_nacl%': '<(skia_nacl)', 'skia_gpu%': '<(skia_gpu)', + 'skia_osx_sdkroot%': '<(skia_osx_sdkroot)', 'skia_static_initializers%': '<(skia_static_initializers)', # These are referenced by our .gypi files that list files (e.g. core.gypi)