Skip to content

Commit d2af722

Browse files
committed
Download windows lib from github releases
1 parent 28ecbbe commit d2af722

File tree

7 files changed

+19
-20
lines changed

7 files changed

+19
-20
lines changed

.gitattributes

Lines changed: 0 additions & 1 deletion
This file was deleted.

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,3 +18,4 @@ docs
1818
npm-debug.log
1919
prebuilds
2020
zmq-build.log
21+
windows/lib/libzmq.lib

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ The wonder of binaries begins.
5353
## Installation - Contributors and Development
5454

5555
To set up `zmq-prebuilt` for development, fork this repository and
56-
clone your fork to your system. Be sure you have [`git-lfs`](https://git-lfs.github.com/) installed.
56+
clone your fork to your system.
5757

5858
**Prerequisites for Linux**
5959
- `python` (`v2.7` recommended, `v3.x.x` is not supported)

binding.gyp

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -8,21 +8,13 @@
88
'cflags_cc!': ['-fno-exceptions'],
99
'conditions': [
1010
['OS=="win"', {
11+
'download_lib': '<!(node scripts/download-win-lib 2>&1 > zmq-build.log)',
1112
'msbuild_toolset': 'v140',
1213
'defines': ['ZMQ_STATIC'],
1314
'include_dirs': ['windows/include'],
14-
'conditions': [
15-
['target_arch=="ia32"', {
16-
'libraries': [
17-
'<(PRODUCT_DIR)/../../windows/lib/Win32/libzmq',
18-
'ws2_32.lib',
19-
]
20-
},{
21-
'libraries': [
22-
'<(PRODUCT_DIR)/../../windows/lib/x64/libzmq',
23-
'ws2_32.lib',
24-
]
25-
}]
15+
'libraries': [
16+
'<(PRODUCT_DIR)/../../windows/lib/libzmq',
17+
'ws2_32.lib',
2618
],
2719
}],
2820
['OS=="mac" or OS=="solaris"', {

scripts/download-win-lib.js

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
var download = require('./download').download;
2+
var path = require('path');
3+
var fs = require('fs');
4+
5+
var TAR_URL = 'https://github.com/nteract/zmq-prebuilt/releases/download/win-libzmq-4.1.5-v140/libzmq-' + process.arch + '.lib';
6+
var DIR_NAME = path.join(__dirname, '..', 'windows', 'lib');
7+
var FILE_NAME = path.join(DIR_NAME, 'libzmq.lib');
8+
9+
if (!fs.existsSync(DIR_NAME)) {
10+
fs.mkdirSync(DIR_NAME);
11+
}
12+
13+
download(TAR_URL, FILE_NAME);

windows/lib/Win32/libzmq.lib

Lines changed: 0 additions & 3 deletions
This file was deleted.

windows/lib/x64/libzmq.lib

Lines changed: 0 additions & 3 deletions
This file was deleted.

0 commit comments

Comments
 (0)