-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbinding.gyp
54 lines (54 loc) · 1.17 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
{
"targets": [{
"target_name": "nodeffms2",
"sources": [
"src/ffms2.cc"
],
"conditions": [
['OS=="mac"', {
"cflags" : [
"-g",
"-D__STDC_CONSTANT_MACROS",
"-D_FILE_OFFSET_BITS=64",
"-D_LARGEFILE_SOURCE",
"-O3",
"-Wall"
"-I${PWD}/build/Release/include"
],
"libraries": [
"-L${PWD}/build/Release/lib",
"-lffms2"
],
'xcode_settings': {
'OTHER_CPLUSPLUSFLAGS' : ['-std=c++11','-stdlib=libc++', "-I${PWD}/build/Release/include", "-I${PWD}/deps/ffms2/include"],
'OTHER_LDFLAGS': ['-stdlib=libc++'],
}
}],
['OS=="linux"', {
"cflags" : [
"-g",
"-D__STDC_CONSTANT_MACROS",
"-D_FILE_OFFSET_BITS=64",
"-D_LARGEFILE_SOURCE",
"-O3",
"-Wall"
],
"libraries" : [
"-lavcodec"
]
}],
['OS=="win"', {
"include_dirs": [
"$(LIBAV_PATH)include"
],
"libraries" : [
"-l$(LIBAV_PATH)avcodec",
"-l$(LIBAV_PATH)avformat",
"-l$(LIBAV_PATH)swscale",
"-l$(LIBAV_PATH)avresample",
"-l$(LIBAV_PATH)avutil"
]
}]
],
}]
}