-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathbinding.gyp
executable file
·80 lines (80 loc) · 2.35 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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
{
"targets": [
{
"target_name": "ndi_mtx",
"sources": [
"src_c/ndi_mtx.cc",
],
"include_dirs": [ "include" ],
'conditions': [
['OS=="win"', {
"link_settings": {
"libraries": [ "Processing.NDI.Lib.x64.lib" ],
"library_dirs": [ "lib/win_x64" ]
},
"copies": [
{
"destination": "build/Release",
"files": [
"lib/win_x64/Processing.NDI.Lib.x64.dll"
]
}
]},
],
['OS=="mac"', {
'conditions': [
['target_arch=="x64"', {
'xcode_settings': {
'OTHER_CPLUSPLUSFLAGS': [
'-std=c++11',
'-stdlib=libc++',
'-fexceptions'
],
'OTHER_LDFLAGS': [
"-Wl,-rpath,<@(module_root_dir)/build/Release"
]
},
"link_settings": {
"libraries": [
"<(module_root_dir)/build/Release/libndi.4.dylib"
],
"copies": [
{
"destination": "build/Release/",
"files": [
"<!@(ls -1 lib/mac_x64/libndi.4.dylib)"
]
}
]
},
}]
]}
],
['OS=="linux"', {
'conditions': [
['target_arch=="x86" or target_arch=="x64"', {
"link_settings": {
"libraries": [
"<(module_root_dir)/build/Release/libndi.so.3.8.0",
"<(module_root_dir)/build/Release/libndi.so.3",
"<(module_root_dir)/build/Release/libndi.so"
],
"library_dirs": [ "lib/x86_64-linux-gnu" ]
},
"copies": [
{
"destination": "build/Release",
"files": [
"lib/x86_64-linux-gnu/libndi.so.3.8.0",
"lib/x86_64-linux-gnu/libndi.so.3",
"lib/x86_64-linux-gnu/libndi.so"
]
}
]
}]
]
}]
]
}
]
}