-
Notifications
You must be signed in to change notification settings - Fork 31
/
binding.gyp
148 lines (141 loc) · 4.01 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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
{
'target_defaults': {
'default_configuration': 'Debug',
'configurations': {
'Debug': {
'defines': [ 'DEBUG', '_DEBUG' ],
'msvs_settings': {
'VCCLCompilerTool': {
'RuntimeLibrary': 1, # static debug
},
},
},
'Release': {
'defines': [ 'NDEBUG' ],
'msvs_settings': {
'VCCLCompilerTool': {
'RuntimeLibrary': 0, # static release
},
},
}
},
'msvs_settings': {
'VCLinkerTool': {
'GenerateDebugInformation': 'true',
},
},
'include_dirs': [
'usr/include',
'usr/include/dvbtee',
'usr/include/dvbpsi',
'libdvbtee',
'libdvbtee/decode',
'libdvbtee/decode/table',
'libdvbtee/decode/descriptor',
'../libdvbtee'
],
'defines': [
'PIC',
'_FILE_OFFSET_BITS=64',
'_LARGEFILE_SOURCE',
'FORCE_DECODER_LINKAGE'
],
},
'targets': [
# libdvbtee_parser
{
'target_name': 'dvbtee_parser',
'product_prefix': 'lib',
'type': 'static_library',
'sources': [
'libdvbtee/atsctext.cpp',
# 'libdvbtee/channels.cpp',
# 'libdvbtee/curlhttpget.cpp',
'libdvbtee/decode.cpp',
# 'libdvbtee/demux.cpp',
# 'libdvbtee/dvb-vb2.cpp',
# 'libdvbtee/feed.cpp',
'libdvbtee/functions.cpp',
# 'libdvbtee/hdhr_tuner.cpp',
# 'libdvbtee/hlsfeed.cpp',
# 'libdvbtee/linuxtv_tuner.cpp',
# 'libdvbtee/listen.cpp',
'libdvbtee/log.cpp',
# 'libdvbtee/output.cpp',
'libdvbtee/parse.cpp',
# 'libdvbtee/rbuf.cpp',
'libdvbtee/stats.cpp',
# 'libdvbtee/tune.cpp',
'libdvbtee/value/value.cpp',
'libdvbtee/value/object.cpp',
'libdvbtee/value/array.cpp',
'libdvbtee/value/utf8strip.cpp',
'libdvbtee/decode/decoder.cpp',
'libdvbtee/decode/table/table.cpp',
'libdvbtee/decode/descriptor/descriptor.cpp',
'libdvbtee/decode/table/tabl_00.cpp',
'libdvbtee/decode/table/tabl_02.cpp',
'libdvbtee/decode/table/tabl_40.cpp',
'libdvbtee/decode/table/tabl_42.cpp',
'libdvbtee/decode/table/tabl_4e.cpp',
'libdvbtee/decode/table/tabl_70.cpp',
'libdvbtee/decode/table/tabl_c7.cpp',
'libdvbtee/decode/table/tabl_c8.cpp',
'libdvbtee/decode/table/tabl_cb.cpp',
'libdvbtee/decode/table/tabl_cc.cpp',
'libdvbtee/decode/table/tabl_cd.cpp',
'libdvbtee/decode/descriptor/desc_0a.cpp',
'libdvbtee/decode/descriptor/desc_48.cpp',
'libdvbtee/decode/descriptor/desc_4d.cpp',
'libdvbtee/decode/descriptor/desc_4e.cpp',
'libdvbtee/decode/descriptor/desc_62.cpp',
'libdvbtee/decode/descriptor/desc_83.cpp',
'libdvbtee/decode/descriptor/desc_81.cpp',
'libdvbtee/decode/descriptor/desc_86.cpp',
'libdvbtee/decode/descriptor/desc_a0.cpp',
'libdvbtee/decode/descriptor/desc_a1.cpp',
],
"dependencies": [
'deps/libdvbpsi.gyp:dvbpsi'
],
'conditions': [
['OS=="mac"',
{
'defines': [
'USE_WSTRING_CONVERT'
],
'link_settings': {
'libraries': [
'-liconv'
]
},
'xcode_settings': {
'MACOSX_DEPLOYMENT_TARGET': '10.7',
'CLANG_CXX_LIBRARY': 'libc++',
'OTHER_LDFLAGS': [
'-L/opt/local/lib'
],
'WARNING_CFLAGS': [
'-Wno-unused-variable',
'-Wno-deprecated-declarations'
],
'GCC_ENABLE_CPP_RTTI': '-frtti'
}
}
]
],
'cflags_cc!': [
'-fno-rtti',
'-Wformat-overflow',
'-Wunused-variable',
'-Wdeprecated-declarations'
],
'cflags_cc+': [
'-frtti',
'-Wno-format-overflow',
'-Wno-unused-variable',
'-Wno-deprecated-declarations'
],
},
]
}