2020-07-12 15:14:39 +00:00
|
|
|
{
|
|
|
|
"targets": [
|
|
|
|
{
|
|
|
|
"target_name": "image",
|
2020-07-14 14:53:51 +00:00
|
|
|
"sources": [ "<!@(node -p \"require('fs').readdirSync('./natives').map(f=>'natives/'+f).join(' ')\")" ],
|
2020-09-11 20:22:25 +00:00
|
|
|
"cflags!": [ "-fno-exceptions", "<!(pkg-config --cflags Magick++)" ],
|
|
|
|
"cflags_cc!": [ "-fno-exceptions", "<!(pkg-config --cflags Magick++)" ],
|
2020-07-12 15:14:39 +00:00
|
|
|
"include_dirs": [
|
|
|
|
"<!@(node -p \"require('node-addon-api').include\")",
|
2020-09-12 18:57:25 +00:00
|
|
|
"<!@(pkg-config --cflags-only-I Magick++ | sed 's/^.\{2\}//')"
|
2020-07-12 15:14:39 +00:00
|
|
|
],
|
|
|
|
"libraries": [
|
2020-09-11 20:22:25 +00:00
|
|
|
"<!(pkg-config --libs Magick++)",
|
2020-07-12 15:14:39 +00:00
|
|
|
],
|
|
|
|
"defines": ["NAPI_DISABLE_CPP_EXCEPTIONS"]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|