Add --runtime_link=static

This commit is contained in:
vlapo 2015-10-14 11:29:29 +02:00
parent 1b7e3746cc
commit 75d954a6bc

View File

@ -1,6 +1,9 @@
{ {
'targets': [{ 'targets': [{
'target_name': 'sharp', 'target_name': 'sharp',
'variables': {
'runtime_link%':'shared',
},
'sources': [ 'sources': [
'src/common.cc', 'src/common.cc',
'src/metadata.cc', 'src/metadata.cc',
@ -51,6 +54,11 @@
'include_dirs': [ 'include_dirs': [
'<!(PKG_CONFIG_PATH="<(PKG_CONFIG_PATH)" pkg-config --cflags vips glib-2.0)', '<!(PKG_CONFIG_PATH="<(PKG_CONFIG_PATH)" pkg-config --cflags vips glib-2.0)',
'<!(node -e "require(\'nan\')")' '<!(node -e "require(\'nan\')")'
],
'conditions': [
['runtime_link == "static"', {
'libraries': ['<!(PKG_CONFIG_PATH="<(PKG_CONFIG_PATH)" pkg-config --libs vips --static)']
}]
] ]
}] }]
], ],