Skip to content

Commit b70c88f

Browse files
Paul VarachePaul Varache
authored andcommitted
Add windows prebuilt
1 parent 8333804 commit b70c88f

3 files changed

Lines changed: 24 additions & 7 deletions

File tree

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
11
node_modules
22
build/
3+
prebuilds
4+
lib/grt.lib

binding.gyp

Lines changed: 18 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,25 +6,38 @@
66
"sources": [ "NativeExtension.cc", "src/NodeTimeSeriesClassificationData.cc", "src/NodeDTW.cc" ],
77
"include_dirs" : [
88
"<!(node -e \"require('nan')\")",
9-
"./include"
9+
"./include",
1010
],
1111
"conditions": [
1212
['OS=="mac"',
1313
{
1414
"libraries": [
1515
"<!(pwd)/lib/libgrt.a"
1616
],
17-
"xcode_settings": { "GCC_ENABLE_CPP_EXCEPTIONS": "YES", "GCC_ENABLE_CPP_RTTI": "YES", },
17+
"xcode_settings": {
18+
"GCC_ENABLE_CPP_EXCEPTIONS": "YES",
19+
"GCC_ENABLE_CPP_RTTI": "YES",
20+
},
1821
}
1922
],
2023
['OS=="win"',
2124
{
2225
"libraries": [
23-
""
24-
]
26+
"<!(cd)/lib/grt.lib",
27+
],
28+
"msvs_settings": {
29+
"VCCLCompilerTool": {
30+
"RuntimeTypeInfo": 'true',
31+
'RuntimeLibrary': 'false',
32+
"AdditionalOptions": [
33+
"/D NOMINMAX",
34+
"/D GRT_STATIC_LIB",
35+
],
36+
},
37+
}
2538
}
2639
]
2740
]
2841
}
2942
],
30-
}
43+
}

package.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,17 @@
1010
"scripts": {
1111
"configure": "node-gyp configure",
1212
"build": "node-gyp build",
13-
"test": "mocha"
13+
"test": "mocha",
14+
"install": "prebuild-install || node-gyp rebuild"
1415
},
1516
"devDependencies": {
1617
"mocha": "^2.2.5"
1718
},
1819
"dependencies": {
1920
"bindings": "^1.2.1",
2021
"nan": "^2.0.5",
21-
"node-gyp": "^3.6.2"
22+
"node-gyp": "^3.6.2",
23+
"prebuild-install": "^2.5.0"
2224
},
2325
"repository": {
2426
"type": "git",

0 commit comments

Comments
 (0)