diff options
author | 2014-01-20 16:14:02 +0000 | |
---|---|---|
committer | 2014-01-20 16:14:02 +0000 | |
commit | 29f351a86790fc2f996c01b996db9ef032134d90 (patch) | |
tree | 8b155895f56c3e826629159535b799e8c9c92a93 /gyp | |
parent | fde5e264f34977a84bd8a7d1ad8b0160cfb76161 (diff) |
Allow an override of MACOSX_DEPLOYMENT_TARGET, so the user can build against a different SDK if desired.
R=mtklein@google.com, bungeman, mtklein
Review URL: https://codereview.chromium.org/138033018
git-svn-id: http://skia.googlecode.com/svn/trunk@13126 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'gyp')
-rw-r--r-- | gyp/common_conditions.gypi | 8 | ||||
-rw-r--r-- | gyp/common_variables.gypi | 4 |
2 files changed, 9 insertions, 3 deletions
diff --git a/gyp/common_conditions.gypi b/gyp/common_conditions.gypi index f3caddccfe..4db0a40358 100644 --- a/gyp/common_conditions.gypi +++ b/gyp/common_conditions.gypi @@ -348,7 +348,13 @@ }, 'xcode_settings': { 'GCC_SYMBOLS_PRIVATE_EXTERN': 'NO', - 'MACOSX_DEPLOYMENT_TARGET': '10.6', # -mmacos-version-min, passed in environment to ld. + 'conditions': [ + [ 'skia_osx_deployment_target==""', { + 'MACOSX_DEPLOYMENT_TARGET': '10.6', # -mmacos-version-min, passed in environment to ld. + }, { + 'MACOSX_DEPLOYMENT_TARGET': '<(skia_osx_deployment_target)', + }], + ], # 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 39e37e8bc6..ac57b6956a 100644 --- a/gyp/common_variables.gypi +++ b/gyp/common_variables.gypi @@ -95,7 +95,7 @@ 'skia_chrome_utils%': 1, 'skia_directwrite%': 0, 'skia_gpu%': 1, - 'skia_osx_sdkroot%': '', + 'skia_osx_deployment_target%': '', 'skia_profile_enabled%': 0, 'skia_win_debuggers_path%': '', 'skia_shared_lib%': 0, @@ -158,7 +158,7 @@ 'skia_directwrite%': '<(skia_directwrite)', 'skia_gpu%': '<(skia_gpu)', 'skia_win_exceptions%': 0, - 'skia_osx_sdkroot%': '<(skia_osx_sdkroot)', + 'skia_osx_deployment_target%': '<(skia_osx_deployment_target)', 'skia_profile_enabled%': '<(skia_profile_enabled)', 'skia_shared_lib%': '<(skia_shared_lib)', 'skia_opencl%': '<(skia_opencl)', |