This repository has been archived by the owner on May 29, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
binding.gyp
77 lines (76 loc) · 2.04 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
{
"targets": [
{
"target_name": "hfst-ospell",
"sources": [
"lib/tinyxml2/tinyxml2.cpp",
"lib/hfst-ospell/ospell.cc",
"lib/hfst-ospell/ZHfstOspeller.cc",
"lib/hfst-ospell/hfst-ol.cc",
"lib/hfst-ospell/ZHfstOspellerXmlMetadata.cc",
"src/addon.cc",
"src/spellchecker.cc",
],
'defines': [
'HAVE_DLFCN_H=1',
'HAVE_GETOPT_H=1',
'HAVE_INTTYPES_H=1',
'HAVE_LIBARCHIVE=1',
'HAVE_MALLOC=1',
'HAVE_MEMORY_H=1',
'HAVE_STDINT_H=1',
'HAVE_STDLIB_H=1',
'HAVE_STRINGS_H=1',
'HAVE_STRING_H=1',
'HAVE_STRNDUP=1',
'HAVE_SYS_STAT_H=1',
'HAVE_SYS_TYPES_H=1',
'HAVE_TINYXML2=1',
'HAVE_UNISTD_H=1',
'PACKAGE="hfstospell"',
'PACKAGE_BUGREPORT="hfst-bugs@helsinki.fi"',
'PACKAGE_NAME="hfstospell"',
'PACKAGE_STRING="hfstospell 0.4.1"',
'PACKAGE_TARNAME="hfstospell"',
'PACKAGE_URL="http://hfst.sf.net"',
'PACKAGE_VERSION="0.4.1"',
'STDC_HEADERS=1',
'VERSION="0.4.1"',
'ZHFST_EXTRACT_TO_MEM=1',
],
"include_dirs" : [
"<!(node -e \"require('nan')\")",
"lib/tinyxml2",
"lib/hfst-ospell",
],
"xcode_settings": {
"OTHER_CFLAGS": [
"-Wall", "-std=c++11",
"<!(pkg-config --cflags libarchive)",
],
},
"cflags": [
"-Wall", "-std=c++11",
"<!(pkg-config --cflags libarchive)",
],
"link_settings": {
"libraries": [
"<!(pkg-config --libs libarchive)",
],
},
# Enable exceptions
'cflags!': [ '-fno-exceptions' ],
'cflags_cc!': [ '-fno-exceptions' ],
'conditions': [
['OS=="mac"', {
'xcode_settings': {
'GCC_ENABLE_CPP_EXCEPTIONS': 'YES',
'CLANG_CXX_LANGUAGE_STANDARD':'c++11',
'CLANG_CXX_LIBRARY': 'libc++',
'MACOSX_DEPLOYMENT_TARGET': '10.7'
}
}]
]
}
]
}