Allow node-gyp configure --sharp-cxx11=1 (#456)

Can also be set in .npmrc.
Closes: #442
This commit is contained in:
Jérémy Lal 2016-06-08 18:42:46 +02:00 committed by Lovell Fuller
parent 4f3262c328
commit 39040fb9a0

View File

@ -51,6 +51,7 @@
],
# Nested variables "pattern" borrowed from http://src.chromium.org/viewvc/chrome/trunk/src/build/common.gypi
'variables': {
'sharp-cxx11%': '0',
'variables': {
'variables': {
'conditions': [
@ -92,7 +93,7 @@
'src/utilities.cc'
],
'defines': [
'_GLIBCXX_USE_CXX11_ABI=0',
'_GLIBCXX_USE_CXX11_ABI=<(sharp-cxx11)',
'_ALLOW_KEYWORD_MACROS'
],
'include_dirs': [