forked from blackbeam/poppler-simple
-
Notifications
You must be signed in to change notification settings - Fork 0
/
binding.gyp
41 lines (41 loc) · 1.29 KB
/
binding.gyp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
{
"variables": {
"major_version": "<!(node -pe 'v=process.versions.node.split(\".\"); v[0];')",
"minor_version": "<!(node -pe 'v=process.versions.node.split(\".\"); v[1];')",
"micro_version": "<!(node -pe 'v=process.versions.node.split(\".\"); v[2];')"
},
"targets": [
{
"target_name": "poppler",
"sources": [
"src/poppler.cc",
"src/NodePopplerDocument.cc",
"src/NodePopplerPage.cc",
"src/iconv_string.cc",
"src/MemoryStream.cc"
],
"libraries": [
"<!@(pkg-config --libs poppler)"
],
"cflags": [
"<!@(pkg-config --cflags poppler)"
],
"defines": [
"NODE_VERSION_MAJOR=<(major_version)",
"NODE_VERSION_MINOR=<(minor_version)",
"NODE_VERSION_MICRO=<(micro_version)"
],
"xcode_settings": {
"OTHER_CFLAGS": [
"<!@(pkg-config --cflags poppler)"
],
"OTHER_LDFLAGS": [
"-liconv"
]
},
"include_dirs": [
"<!(node -e \"require('nan')\")"
]
}
]
}