Skip to content

Commit

Permalink
Link hadron with an external OpenSSL lib on windows platform.
Browse files Browse the repository at this point in the history
Solved error LNK2001: unresolved external symbol PEM_read_bio_PrivateKey
...
... openssl functions
while building hadron on windows platform.
  • Loading branch information
trgoofi committed Apr 10, 2015
1 parent 84658c2 commit 9d44533
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions electron/hadron/binding.gyp
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,27 @@
'NS_BLOCK_ASSERTIONS'
], # defines
}], # OS=="mac"
['OS=="win"', {
'conditions': [
['target_arch=="x64"', {
'variables': {
'openssl_root%': 'C:/OpenSSL-Win64',
}
},
{
'variables': {
'openssl_root%': 'C:/OpenSSL-Win32',
}
}
], # target_arch=="x64"
], # conditions
'libraries': [
'-l<(openssl_root)/lib/VC/static/libeay32MD.lib',
],
'include_dirs': [
'<(openssl_root)/include',
],
}], # OS=="win"
], # conditions
}
]
Expand Down

0 comments on commit 9d44533

Please sign in to comment.