mirror of
https://github.com/lovell/sharp.git
synced 2025-07-12 20:10:13 +02:00
Allow node-gyp configure --sharp-cxx11=1 (#456)
Can also be set in .npmrc. Closes: #442
This commit is contained in:
parent
4f3262c328
commit
39040fb9a0
@ -51,6 +51,7 @@
|
|||||||
],
|
],
|
||||||
# Nested variables "pattern" borrowed from http://src.chromium.org/viewvc/chrome/trunk/src/build/common.gypi
|
# Nested variables "pattern" borrowed from http://src.chromium.org/viewvc/chrome/trunk/src/build/common.gypi
|
||||||
'variables': {
|
'variables': {
|
||||||
|
'sharp-cxx11%': '0',
|
||||||
'variables': {
|
'variables': {
|
||||||
'variables': {
|
'variables': {
|
||||||
'conditions': [
|
'conditions': [
|
||||||
@ -92,7 +93,7 @@
|
|||||||
'src/utilities.cc'
|
'src/utilities.cc'
|
||||||
],
|
],
|
||||||
'defines': [
|
'defines': [
|
||||||
'_GLIBCXX_USE_CXX11_ABI=0',
|
'_GLIBCXX_USE_CXX11_ABI=<(sharp-cxx11)',
|
||||||
'_ALLOW_KEYWORD_MACROS'
|
'_ALLOW_KEYWORD_MACROS'
|
||||||
],
|
],
|
||||||
'include_dirs': [
|
'include_dirs': [
|
||||||
|
Loading…
x
Reference in New Issue
Block a user