-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathbinding.gyp
41 lines (41 loc) · 947 Bytes
/
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
{
"targets": [ {
"target_name": "node-freetds",
"sources": [ "src/node_freetds.cpp" ],
'type': 'loadable_module',
"product_extension": "node",
"conditions": [ [
'OS=="linux"', {
"libraries": [
"$(shell find /usr/lib -type l -name 'libv8.so')",
"$(shell find /usr/lib -type l -name 'libsybdb.so')"
],
"headers": [
"$(shell find /usr/include -type f -name 'v8.h')",
"$(shell find /usr/include -type f -name 'node.h')",
"$(shell find /usr/include -type f -name 'uv.h')",
"$(shell find /usr/include -type f -name 'sqldb.h')",
"$(shell find /usr/include -type f -name 'sybdb.h')"
]
}], [
'OS=="win"', {
"include_dirs": [
"-L.//include",
"-L./node/src"
]
}]
],
"cflags": [
"-g",
"-D_FILE_OFFSET_BITS=64",
"-D_LARGEFILE_SOURCE",
"-Wall"
],
"ldflags": [
"-lpthread",
"-lv8",
"-lsybdb"
]
}
],
}