summaryrefslogtreecommitdiffstats
path: root/crypto/crypto.gyp
diff options
context:
space:
mode:
Diffstat (limited to 'crypto/crypto.gyp')
-rw-r--r--crypto/crypto.gyp8
1 files changed, 5 insertions, 3 deletions
diff --git a/crypto/crypto.gyp b/crypto/crypto.gyp
index a6df806..53a41ef5 100644
--- a/crypto/crypto.gyp
+++ b/crypto/crypto.gyp
@@ -9,7 +9,6 @@
'targets': [
{
'target_name': 'crypto',
- 'type': '<(component)',
'product_name': 'crcrypto', # Avoid colliding with OpenSSL's libcrypto
'dependencies': [
'../base/base.gyp:base',
@@ -68,13 +67,16 @@
'../third_party/nss/nss.gyp:nss',
],
}],
- [ 'OS != "win"', {
+ [ 'OS == "win"', {
+ 'type': '<(component)',
+ }, { # else OS != "win"
+ 'type': 'static_library',
'sources!': [
'capi_util.h',
'capi_util.cc',
],
}],
- [ 'component == "shared_library"', {
+ [ 'OS == "win" and component == "shared_library"', {
'defines': [
'CRYPTO_DLL',
'CRYPTO_IMPLEMENTATION',