Merge pull request #287 from vlapo/master

Add --runtime_link=static option to GYP binding for use with AWS Lambda
This commit is contained in:
Lovell Fuller 2015-10-14 19:22:09 +01:00
commit 3cefa6f2bf

View File

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