mirror of
https://github.com/lovell/sharp.git
synced 2025-07-09 18:40:16 +02:00
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:
commit
3cefa6f2bf
@ -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)']
|
||||||
|
}]
|
||||||
]
|
]
|
||||||
}]
|
}]
|
||||||
],
|
],
|
||||||
|
Loading…
x
Reference in New Issue
Block a user