forked from jensstigaard/grandiose
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbinding.gyp
executable file
·74 lines (74 loc) · 2.04 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
{
"targets": [
{
"target_name": "grandiose",
"sources": [
"src/grandiose_util.cc",
"src/grandiose_find.cc",
"src/grandiose_send.cc",
"src/grandiose_send_video.cc",
"src/grandiose_receive.cc",
"src/grandiose.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)"
]
}
]
},
}]
],
# "copies": [{
# "destination": "build/Release",
# "files": [
# "lib/mac_x64/libndi.4.dylib"
# ]
# }]
}],
['OS=="linux"', {
'conditions': [
['target_arch=="x86" or target_arch=="x64"', {
"libraries": ['-L/lib/x86_64-linux-gnu', '-lndi']
}]
]
}]
]
}
]
}