diff options
author | Henrik Gaßmann <henrik@gassmann.onl> | 2016-04-21 23:23:49 +0200 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2016-04-21 23:23:49 +0200 |
commit | 5d8093e7d561749b092c7cc4862d932b7e8e7061 (patch) | |
tree | 8cf8b101b15e9f6bb8d23d79daabd630bdb09eac /winbuild/MakefileBuild.vc | |
parent | 14c9b70caea8f3765bea9b546d8b833e07e72a2a (diff) | |
download | curl-5d8093e7d561749b092c7cc4862d932b7e8e7061.tar.gz |
winbuild: add mbedtls support
Add WITH_MBEDTLS option. Make WITH_SSL, WITH_MBEDTLS and ENABLE_WINSSL
options mutual exclusive.
Closes #606
Diffstat (limited to 'winbuild/MakefileBuild.vc')
-rw-r--r-- | winbuild/MakefileBuild.vc | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/winbuild/MakefileBuild.vc b/winbuild/MakefileBuild.vc index d631204fe..ee584a6fd 100644 --- a/winbuild/MakefileBuild.vc +++ b/winbuild/MakefileBuild.vc @@ -5,7 +5,7 @@ # | (__| |_| | _ <| |___
# \___|\___/|_| \_\_____|
#
-# Copyright (C) 1999 - 2015, Daniel Stenberg, <daniel@haxx.se>, et al.
+# Copyright (C) 1999 - 2016, Daniel Stenberg, <daniel@haxx.se>, et al.
#
# This software is licensed as described in the file COPYING, which
# you should have received as part of this distribution. The terms
@@ -121,6 +121,14 @@ SSL = static SSL_CFLAGS = /DUSE_OPENSSL /I"$(DEVEL_INCLUDE)/openssl"
!ENDIF
+!IF "$(WITH_MBEDTLS)"=="dll" || "$(WITH_MBEDTLS)"=="static"
+USE_MBEDTLS = true
+MBEDTLS = $(WITH_MBEDTLS)
+MBEDTLS_CFLAGS = /DUSE_MBEDTLS
+MBEDTLS_LIBS = mbedtls.lib mbedcrypto.lib mbedx509.lib
+!ENDIF
+
+
!IF "$(WITH_CARES)"=="dll"
!IF "$(DEBUG)"=="yes"
CARES_LIBS = caresd.lib
@@ -318,6 +326,11 @@ CFLAGS = $(CFLAGS) $(SSL_CFLAGS) LFLAGS = $(LFLAGS) $(SSL_LFLAGS) $(SSL_LIBS)
!ENDIF
+!IF "$(USE_MBEDTLS)"=="true"
+CFLAGS = $(CFLAGS) $(MBEDTLS_CFLAGS)
+LFLAGS = $(LFLAGS) $(MBEDTLS_LFLAGS) $(MBEDTLS_LIBS)
+!ENDIF
+
!IF "$(USE_CARES)"=="true"
CFLAGS = $(CFLAGS) $(CARES_CFLAGS)
LFLAGS = $(LFLAGS) $(CARES_LFLAGS) $(CARES_LIBS)
|