Skip to content

Commit

Permalink
fix build on windows (#165)
Browse files Browse the repository at this point in the history
• fixes #164
• direct_dependent_settings for windows
• update appveyor
  • Loading branch information
reqshark authored and nickdesaulniers committed Sep 24, 2016
1 parent 4e2bccf commit 08f6ce4
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# nanomsg for node

[![Build Status](https://travis-ci.org/nickdesaulniers/node-nanomsg.svg?branch=master)](https://travis-ci.org/nickdesaulniers/node-nanomsg) [![Build status](https://ci.appveyor.com/api/projects/status/07j7o9juuktas2uk)](https://ci.appveyor.com/project/tcr/node-nanomsg)
[![Build Status](https://travis-ci.org/nickdesaulniers/node-nanomsg.svg?branch=master)](https://travis-ci.org/nickdesaulniers/node-nanomsg) [![Build status](https://ci.appveyor.com/api/projects/status/og7qumak4khcne8u?svg=true)](https://ci.appveyor.com/project/reqshark/node-nanomsg)

### install:

Expand Down
4 changes: 1 addition & 3 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,5 @@ install:

build_script:
- git submodule update --init
- npm -g install npm@latest
- npm install

platforms:
- x32
15 changes: 15 additions & 0 deletions deps/win.gypi
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,21 @@
'-ladvapi32',
],
},
'direct_dependent_settings': {
# build nanomsg hub with same compiler flags as the library
'defines': [
'_WINDOWS',
'_CRT_SECURE_NO_WARNINGS',
'NN_HAVE_WINDOWS',
'WIN32',
'_WIN32',
'NN_USE_LITERAL_IFADDR',
'NN_SHARED_LIB',
'NN_HAVE_STDINT',
'NN_HAVE_WINSOCK',
'NN_USE_WINSOCK',
],
},
'target_defaults': {
'default_configuration': 'Debug',
'configurations': {
Expand Down

0 comments on commit 08f6ce4

Please sign in to comment.