This repository was archived by the owner on Apr 5, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 25
Expand file tree
/
Copy pathbinding.gyp
More file actions
84 lines (84 loc) · 2.72 KB
/
binding.gyp
File metadata and controls
84 lines (84 loc) · 2.72 KB
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
72
73
74
75
76
77
78
79
80
81
82
83
84
{
'targets': [{
'target_name': 'ssh'
, 'conditions': [
['node_shared_openssl=="false"', {
'include_dirs': [
'<(node_root_dir)/deps/openssl/openssl/include'
]
, 'conditions' : [
['target_arch=="ia32"', {
'include_dirs': [ '<(node_root_dir)/deps/openssl/config/piii' ]
}],
['target_arch=="x64"', {
'include_dirs': [ '<(node_root_dir)/deps/openssl/config/k8' ]
}],
['target_arch=="arm"', {
'include_dirs': [ '<(node_root_dir)/deps/openssl/config/arm' ]
}]
]
}]
, ['OS == "linux"', {
'libraries': [
'-lcrypto'
]
}]
, ['OS == "solaris"', {
}]
, ['OS == "mac"', {
'libraries': [
'-lssl'
, '-lcrypto'
]
, 'xcode_settings': {
'OTHER_CPLUSPLUSFLAGS': ['-std=c++11', '-stdlib=libc++']
, 'GCC_ENABLE_CPP_EXCEPTIONS': 'YES'
, 'MACOSX_DEPLOYMENT_TARGET': '10.8'
}
, 'defines': ['HAVE_NTOHLL']
}]
, ['OS == "win"', {
'conditions': [
# "openssl_root" is the directory on Windows of the OpenSSL files.
# Check the "target_arch" variable to set good default values for
# both 64-bit and 32-bit builds of the module.
['target_arch=="x64"', {
'variables': {
'openssl_root%': 'C:/OpenSSL-Win64'
},
}, {
'variables': {
'openssl_root%': 'C:/OpenSSL-Win32'
},
}],
],
'defines': [
'LIBSSH_STATIC'
]
,
'libraries': [
'-l<(openssl_root)/lib/VC/static/libeay32MD.lib',
'-l<(module_root_dir)/build/$(Configuration)/libssh.lib',
'ws2_32.lib'
],
'include_dirs': [
'<(openssl_root)/include',
],
}]
]
, 'include_dirs' : [
'<!(node -e "require(\'nan\')")'
]
, 'dependencies': [
'<(module_root_dir)/deps/libssh.gyp:libssh'
]
, 'sources': [
'src/nssh.cc'
, 'src/server.cc'
, 'src/session.cc'
, 'src/channel.cc'
, 'src/message.cc'
, 'src/sftp_message.cc'
]
}]
}