This repository has been archived by the owner on Jun 25, 2019. It is now read-only.
forked from OptimalBits/navcodec
-
Notifications
You must be signed in to change notification settings - Fork 0
/
binding.gyp
70 lines (70 loc) · 1.43 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
{
"targets": [{
"target_name": "navcodec",
"sources": [
"src/navcodec.cpp",
"src/navcodeccontext.cpp",
"src/navframe.cpp",
"src/navformat.cpp",
"src/navstream.cpp",
"src/navstreamreader.cpp",
"src/navoutformat.cpp",
"src/navpixformat.cpp",
"src/navsws.cpp",
"src/navcodecid.cpp",
"src/navresample.cpp",
"src/navaudiofifo.cpp",
"src/navdictionary.cpp",
"src/navthumbnail.cpp",
"src/relocatemoov.cpp"
],
"conditions": [
['OS=="mac"', {
"cflags" : [
"-g",
"-D__STDC_CONSTANT_MACROS",
"-D_FILE_OFFSET_BITS=64",
"-D_LARGEFILE_SOURCE",
"-O3",
"-Wall"
],
"libraries" : [
"-lavcodec",
"-lavformat",
"-lswscale",
"-lavresample",
"-lavutil"
]
}],
['OS=="linux"', {
"cflags" : [
"-g",
"-D__STDC_CONSTANT_MACROS",
"-D_FILE_OFFSET_BITS=64",
"-D_LARGEFILE_SOURCE",
"-O3",
"-Wall"
],
"libraries" : [
"-lavcodec",
"-lavformat",
"-lswscale",
"-lavresample",
"-lavutil"
]
}],
['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"
]
}]
],
}]
}