summaryrefslogtreecommitdiff
path: root/build/standalone.gypi
diff options
context:
space:
mode:
authorWei Li <weili@chromium.org>2016-02-23 13:44:52 -0800
committerWei Li <weili@chromium.org>2016-02-23 13:44:52 -0800
commit28de044e5d6ab3cb0335ad4e5dd64fdf3376b2eb (patch)
tree06033b7eac37313c047d109ddec71ca7872ea70b /build/standalone.gypi
parent435604d371de48044ae6c1567479b34e0d93e298 (diff)
downloadpdfium-28de044e5d6ab3cb0335ad4e5dd64fdf3376b2eb.tar.xz
Support pdfium compilation with xcode 10.11 and higherchromium/2660chromium/2659chromium/2658
BUG= R=thakis@chromium.org, thestig@chromium.org Review URL: https://codereview.chromium.org/1680943003 .
Diffstat (limited to 'build/standalone.gypi')
-rw-r--r--build/standalone.gypi14
1 files changed, 9 insertions, 5 deletions
diff --git a/build/standalone.gypi b/build/standalone.gypi
index f0ab3a9567..dfd5617683 100644
--- a/build/standalone.gypi
+++ b/build/standalone.gypi
@@ -416,6 +416,15 @@
'xcode_settings': {'OTHER_LDFLAGS': ['-Wl,-search_paths_first']},
}],
], # target_conditions
+ 'variables': {
+ 'mac_sdk_min': '10.10',
+ 'mac_sdk%': '<!(python <(DEPTH)/build/gyp/tools/mac_find_sdk.py <(mac_sdk_min))',
+ },
+ 'xcode_settings': {
+ 'SDKROOT': 'macosx<(mac_sdk)', # -isysroot
+ # See comment in Chromium's common.gypi for why this is needed.
+ 'SYMROOT': '<(DEPTH)/xcodebuild',
+ },
}], # OS=="mac"
['v8_use_external_startup_data==1', {
'defines': [
@@ -432,11 +441,6 @@
}],
],
},
- 'xcode_settings': {
- 'SDKROOT': 'macosx10.10', # -isysroot
- # See comment in Chromium's common.gypi for why this is needed.
- 'SYMROOT': '<(DEPTH)/xcodebuild',
- },
'conditions': [
['OS=="linux" or OS=="mac"', {
'conditions': [