-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathbinding.gyp
64 lines (63 loc) · 1.31 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
{
'targets': [{
'target_name': "node_demux",
'sources': [
"node-demux.cc",
"node-videodemux.cc",
"loadworker.cc",
"demuxworker.cc",
"seekworker.cc",
"demuxbaton.cc",
"videoframe.cc"
],
'default_configuration': "Release",
'conditions': [
['OS=="linux"',
{
'include_dirs' : [
"<!(node -e \"require('nan')\")",
"/usr/include/ffmpeg"
],
'libraries': [
"-lavcodec",
"-lavformat",
"-lavutil",
"-lswscale"
],
'cflags': [
"-D__STDC_CONSTANT_MACROS"
]
},
],
['OS=="mac"',
{
'include_dirs' : [
"<!(node -e \"require('nan')\")",
"/usr/local/include"
],
'libraries': [
"-L/usr/local/lib",
"-lavcodec",
"-lavformat",
"-lavutil",
"-lswscale"
]
},
],
['OS=="win"',
{
'include_dirs': [
"<!(node -e \"require('nan')\")",
"C:/Dev/ffmpeg-win64-dev/include"
],
'libraries': [
"C:/Dev/ffmpeg-win64-dev/lib/avcodec.lib",
"C:/Dev/ffmpeg-win64-dev/lib/avformat.lib",
"C:/Dev/ffmpeg-win64-dev/lib/avutil.lib",
"C:/Dev/ffmpeg-win64-dev/lib/swscale.lib"
]
},
]
]
}]
}