|
3 | 3 | { |
4 | 4 | 'target_name': 'zmq', |
5 | 5 | 'sources': [ 'binding.cc' ], |
6 | | - 'include_dirs' : [ |
7 | | - "<!(node -e \"require('nan')\")" |
8 | | - ], |
| 6 | + 'include_dirs' : ["<!(node -e \"require('nan')\")"], |
| 7 | + 'cflags!': ['-fno-exceptions'], |
| 8 | + 'cflags_cc!': ['-fno-exceptions'], |
9 | 9 | 'conditions': [ |
10 | 10 | ['OS=="win"', { |
11 | | - 'win_delay_load_hook': 'true', |
| 11 | + 'msbuild_toolset': 'v120', |
| 12 | + 'defines': ['ZMQ_STATIC'], |
12 | 13 | 'include_dirs': ['windows/include'], |
13 | | - 'link_settings': { |
14 | | - 'libraries': [ |
15 | | - 'Delayimp.lib', |
16 | | - ], |
17 | | - 'conditions': [ |
18 | | - ['target_arch=="ia32"', { |
19 | | - 'libraries': [ |
20 | | - '<(PRODUCT_DIR)/../../windows/lib/x86/libzmq-v100-mt-4_0_4.lib', |
21 | | - ] |
22 | | - },{ |
23 | | - 'libraries': [ |
24 | | - '<(PRODUCT_DIR)/../../windows/lib/x64/libzmq-v100-mt-4_0_4.lib', |
25 | | - ] |
26 | | - }] |
27 | | - ], |
28 | | - }, |
29 | | - 'msvs_settings': { |
30 | | - 'VCLinkerTool': { |
31 | | - 'DelayLoadDLLs': ['libzmq-v100-mt-4_0_4.dll'] |
32 | | - } |
33 | | - }, |
34 | | - }, { |
35 | | - 'libraries': [ '<(PRODUCT_DIR)/../../zmq/lib/libzmq.a' ], |
36 | | - 'include_dirs': [ '<(PRODUCT_DIR)/../../zmq/include' ], |
37 | | - 'cflags!': ['-fno-exceptions'], |
38 | | - 'cflags_cc!': ['-fno-exceptions'], |
| 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 | + }] |
| 26 | + ], |
39 | 27 | }], |
40 | 28 | ['OS=="mac" or OS=="solaris"', { |
41 | 29 | 'xcode_settings': { |
42 | 30 | 'GCC_ENABLE_CPP_EXCEPTIONS': 'YES', |
43 | 31 | 'MACOSX_DEPLOYMENT_TARGET': '10.6', |
44 | 32 | }, |
45 | 33 | 'libraries': [ '<(PRODUCT_DIR)/../../zmq/lib/libzmq.a' ], |
| 34 | + 'include_dirs': [ '<(PRODUCT_DIR)/../../zmq/include' ], |
46 | 35 | }], |
47 | 36 | ['OS=="openbsd" or OS=="freebsd"', { |
48 | 37 | }], |
49 | 38 | ['OS=="linux"', { |
50 | 39 | 'libraries': [ '<(PRODUCT_DIR)/../../zmq/lib/libzmq.a' ], |
| 40 | + 'include_dirs': [ '<(PRODUCT_DIR)/../../zmq/include' ], |
51 | 41 | }], |
52 | 42 | ] |
53 | 43 | } |
|
0 commit comments