forked from rse/grandiose
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbinding.gyp
73 lines (73 loc) · 3.05 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
{
"variables": {
"ndi_dir": "<(module_root_dir)/ndi"
},
"targets": [ {
"target_name": "grandiose",
"sources": [
"src/grandiose_util.cc",
"src/grandiose_find.cc",
"src/grandiose_send.cc",
"src/grandiose_receive.cc",
"src/grandiose_routing.cc",
"src/grandiose.cc"
],
"include_dirs": [ "ndi/include" ],
"conditions":[
[ "OS == 'win' and target_arch == 'ia32'", {
"copies": [ {
"destination": "build/Release",
"files": [ "<(ndi_dir)/lib/win-x86/Processing.NDI.Lib.x86.dll" ]
} ],
"link_settings": {
"libraries": [ "Processing.NDI.Lib.x86.lib" ],
"library_dirs": [ "<(ndi_dir)/lib/win-x86" ]
}
} ],
[ "OS == 'win' and target_arch == 'x64'", {
"copies": [ {
"destination": "build/Release",
"files": [ "<(ndi_dir)/lib/win-x64/Processing.NDI.Lib.x64.dll" ]
} ],
"link_settings": {
"libraries": [ "Processing.NDI.Lib.x64.lib" ],
"library_dirs": [ "<(ndi_dir)/lib/win-x64" ]
}
} ],
[ "OS == 'linux' and target_arch == 'ia32'", {
"copies": [ {
"destination": "build/Release",
"files": [ "<(ndi_dir)/lib/lnx-x86/libndi.so",
"<(ndi_dir)/lib/lnx-x86/libndi.so.5",
"<(ndi_dir)/lib/lnx-x86/libndi.so.5.1.1" ]
} ],
"link_settings": {
"libraries": [ "-Wl,-rpath,'$$ORIGIN'", "-lndi" ],
"library_dirs": [ "<(ndi_dir)/lib/lnx-x86" ]
}
} ],
[ "OS == 'linux' and target_arch == 'x64'", {
"copies": [ {
"destination": "build/Release",
"files": [ "<(ndi_dir)/lib/lnx-x64/libndi.so",
"<(ndi_dir)/lib/lnx-x64/libndi.so.5",
"<(ndi_dir)/lib/lnx-x64/libndi.so.5.1.1" ]
} ],
"link_settings": {
"libraries": [ "-Wl,-rpath,'$$ORIGIN'", "-lndi" ],
"library_dirs": [ "<(ndi_dir)/lib/lnx-x64" ]
}
} ],
[ "OS == 'mac' and (target_arch == 'x64' or target_arch == 'arm64')", {
"copies": [ {
"destination": "build/Release",
"files": [ "<(ndi_dir)/lib/mac/libndi.dylib" ]
} ],
"link_settings": {
"libraries": [ "-Wl,-rpath,@loader_path", "-lndi" ],
"library_dirs": [ "<(ndi_dir)/lib/mac" ]
}
} ]
]
} ]
}