forked from mathiask88/node-snap7
-
Notifications
You must be signed in to change notification settings - Fork 0
/
binding.gyp
61 lines (61 loc) · 1.88 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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
{
"targets": [{
"target_name": "node_snap7",
"include_dirs": [
"<!(node -e \"require('nan')\")",
"./src"
],
"sources": [
"./src/node_snap7.cpp",
"./src/node_snap7_client.cpp",
"./src/snap7.cpp"
],
"conditions": [
["OS=='win'", {
"libraries": ["-lws2_32.lib", "-lwinmm.lib"],
"msvs_settings": {
"VCCLCompilerTool": {
"AdditionalOptions": ["/EHsc"]
}
}
}]
],
"dependencies": [
"snap7"
]
}, {
"target_name": "snap7",
"type": "static_library",
"include_dirs": [
"./deps/snap7/src/sys",
"./deps/snap7/src/core",
"./deps/snap7/src/lib"
],
"sources": [
"./deps/snap7/src/sys/snap_msgsock.cpp",
"./deps/snap7/src/sys/snap_sysutils.cpp",
"./deps/snap7/src/sys/snap_tcpsrvr.cpp",
"./deps/snap7/src/sys/snap_threads.cpp",
"./deps/snap7/src/core/s7_client.cpp",
"./deps/snap7/src/core/s7_isotcp.cpp",
"./deps/snap7/src/core/s7_partner.cpp",
"./deps/snap7/src/core/s7_peer.cpp",
"./deps/snap7/src/core/s7_server.cpp",
"./deps/snap7/src/core/s7_text.cpp",
"./deps/snap7/src/core/s7_micro_client.cpp",
"./deps/snap7/src/lib/snap7_libmain.cpp"
],
"conditions": [
["OS=='linux'", {
"cflags_cc": ["-O3", "-fPIC", "-pedantic", "-fexceptions"]
}],
["OS=='win'", {
"msvs_settings": {
"VCCLCompilerTool": {
"AdditionalOptions": ["/EHsc"]
}
}
}]
]
}]
}