-
Notifications
You must be signed in to change notification settings - Fork 11
/
binding.gyp
46 lines (46 loc) · 1 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
{
'variables': {
'julius_ver' : '4.4.2',
'libjulius_path' : 'julius-<(julius_ver)/libjulius',
'libsent_path' : 'julius-<(julius_ver)/libsent',
},
'action': [
'make',
],
'targets': [
{
'target_name' : 'julius',
'sources' : [
'src/julius.cpp',
],
'cflags' : [
'<!@(<(libjulius_path)/libjulius-config --cflags)',
'<!@(<(libsent_path)/libsent-config --cflags)',
'-std=c++11',
],
'include_dirs' : [
'<(libjulius_path)/include',
'<(libsent_path)/include',
],
'link_settings': {
'libraries': [
'-L../<(libjulius_path)',
'-L../<(libsent_path)',
'<!@(<(libjulius_path)/libjulius-config --libs)',
'<!@(<(libsent_path)/libsent-config --libs)',
],
},
'conditions': [
['OS=="mac"', {
'xcode_settings' : {
'OTHER_CFLAGS': [
'<!@(<(libjulius_path)/libjulius-config --cflags)',
'<!@(<(libsent_path)/libsent-config --cflags)',
'-std=c++11',
],
},
}],
],
},
],
}