-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbinding.gyp
71 lines (71 loc) · 2.67 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
{
"targets": [
{
"target_name": "fasttext",
"sources": [
"vendor/fasttext/src/args.cc",
"vendor/fasttext/src/args.h",
"vendor/fasttext/src/dictionary.cc",
"vendor/fasttext/src/dictionary.h",
"vendor/fasttext/src/fasttext.cc",
"vendor/fasttext/src/fasttext.h",
"vendor/fasttext/src/matrix.cc",
"vendor/fasttext/src/matrix.h",
"vendor/fasttext/src/model.cc",
"vendor/fasttext/src/model.h",
"vendor/fasttext/src/productquantizer.cc",
"vendor/fasttext/src/productquantizer.h",
"vendor/fasttext/src/qmatrix.cc",
"vendor/fasttext/src/qmatrix.h",
"vendor/fasttext/src/real.h",
"vendor/fasttext/src/utils.cc",
"vendor/fasttext/src/utils.h",
"vendor/fasttext/src/vector.cc",
"vendor/fasttext/src/vector.h",
"src/classifier.h",
"src/classifierWorker.cc",
"src/query.h",
"src/nnWorker.cc",
"src/wrapper.cc",
"src/fasttext.cc"
],
"include_dirs": ["<!(node -e \"require('nan')\")"],
"cflags": [
"-std=c++11",
"-pthread",
"-Wsign-compare",
"-fexceptions",
"-O0"
],
"conditions": [
[ 'OS!="win"', {
"cflags+": [ "-std=c++11", "-fexceptions" ],
"cflags_c+": [ "-std=c++11", "-fexceptions" ],
"cflags_cc+": [ "-std=c++11", "-fexceptions" ],
}],
[ 'OS=="mac"', {
"cflags+": [ "-stdlib=libc++" ],
"xcode_settings": {
"OTHER_CPLUSPLUSFLAGS" : [ "-std=c++11", "-stdlib=libc++", "-pthread" ],
"OTHER_LDFLAGS": [ "-stdlib=libc++" ],
"MACOSX_DEPLOYMENT_TARGET": "10.7",
"GCC_ENABLE_CPP_EXCEPTIONS": "YES",
"CLANG_CXX_LANGUAGE_STANDARD":"c++11",
"CLANG_CXX_LIBRARY": "libc++"
},
}]
]
},
{
"target_name": "action_after_build",
"type": "none",
"dependencies": [ "<(module_name)" ],
"copies": [
{
"files": [ "<(PRODUCT_DIR)/<(module_name).node" ],
"destination": "<(module_path)"
}
]
}
]
}