-
Notifications
You must be signed in to change notification settings - Fork 34
/
binding.gyp
49 lines (49 loc) · 1.25 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
{
'targets': [
{
'target_name': 'fann',
'include_dirs': [ "<!(node -e \"require('nan')\")" ],
'direct_dependent_settings': {
'cflags': [
# This next command produces no output but it it will fail
# (and cause GYP to fail) if we don't have a recent enough
# version of this library.
'<!@(pkg-config --atleast-version=2.1.0 fann)',
'<!@(pkg-config --cflags fann)',
],
},
'link_settings': {
'ldflags': [
'<!@(pkg-config --libs-only-L --libs-only-other fann)',
],
# linking against -ldoublefann against of -lfann
'libraries': [
'-ldoublefann',
'<!@(echo -lfann)',
],
'conditions': [
['"always-true"', {'libraries!': ['-lfann']}],
],
},
'sources': [
'src/fann-accs.cc',
'src/fann-arrs.cc',
'src/fann-cascade.cc',
'src/fann-create.cc',
'src/fann-train.cc',
'src/fann-util.cc',
'src/fann.cc'
],
'conditions': [
[ 'OS!="win"', {
'include_dirs': [
'/opt/local/include'
],
'library_dirs': [
'/opt/local/lib'
]
}],
],
}
]
}