diff options
author | Jan-E <github@ehrhardt.nl> | 2016-11-25 06:06:14 +0100 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2016-11-25 09:00:54 +0100 |
commit | 65894c98463bcda1fd5f62c572c77de1757686a8 (patch) | |
tree | 17f40d127833e10e21632c582516845b30ce519c /winbuild/MakefileBuild.vc | |
parent | a6618b52508049771c1eb988bebe2f2bcfd9ea33 (diff) | |
download | curl-65894c98463bcda1fd5f62c572c77de1757686a8.tar.gz |
winbuild: add config option ENABLE_NGHTTP2
Closes #1141
Diffstat (limited to 'winbuild/MakefileBuild.vc')
-rw-r--r-- | winbuild/MakefileBuild.vc | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/winbuild/MakefileBuild.vc b/winbuild/MakefileBuild.vc index a410d2464..96ab37ef8 100644 --- a/winbuild/MakefileBuild.vc +++ b/winbuild/MakefileBuild.vc @@ -123,8 +123,22 @@ USE_SSL = true SSL = static
!ENDIF
+!IFNDEF USE_NGHTTP2
+USE_NGHTTP2 = false
+!ENDIF
+
!IFDEF USE_SSL
SSL_CFLAGS = /DUSE_OPENSSL /I"$(DEVEL_INCLUDE)/openssl"
+
+!IF "$(USE_NGHTTP2)"=="yes"
+USE_NGHTTP2 = true
+!ENDIF
+
+!IF "$(USE_NGHTTP2)"=="true"
+SSL_CFLAGS = $(SSL_CFLAGS) /DUSE_NGHTTP2
+SSL_LIBS = $(SSL_LIBS) nghttp2.lib
+!ENDIF
+
!ENDIF
!IF "$(WITH_MBEDTLS)"=="dll" || "$(WITH_MBEDTLS)"=="static"
@@ -416,6 +430,7 @@ package: $(TARGET) $(TARGET): $(LIB_OBJS) $(LIB_DIROBJ) $(DISTDIR)
@echo Using SSL: $(USE_SSL)
+ @echo Using NGHTTP2: $(USE_NGHTTP2)
@echo Using c-ares: $(USE_CARES)
@echo Using SSH2: $(USE_SSH2)
@echo Using ZLIB: $(USE_ZLIB)
|