Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added ENABLE_WEBSOCKETS option for windows builds #13232

Closed
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
12 changes: 12 additions & 0 deletions winbuild/Makefile.vc
Expand Up @@ -116,6 +116,18 @@ ENABLE_OPENSSL_AUTO_LOAD_CONFIG = true
ENABLE_OPENSSL_AUTO_LOAD_CONFIG = false
!ENDIF


bagder marked this conversation as resolved.
Show resolved Hide resolved
!IFNDEF ENABLE_WEBSOCKETS
ENABLE_WEBSOCKETS = false
!ELSEIF "$(ENABLE_WEBSOCKETS)"=="yes"
!UNDEF ENABLE_WEBSOCKETS
ENABLE_WEBSOCKETS = true
!ELSEIF "$(ENABLE_WEBSOCKETS)"=="no"
!UNDEF ENABLE_WEBSOCKETS
ENABLE_WEBSOCKETS = false
!ENDIF


!IFNDEF ENABLE_UNICODE
USE_UNICODE = false
!ELSEIF "$(ENABLE_UNICODE)"=="yes"
Expand Down
4 changes: 4 additions & 0 deletions winbuild/MakefileBuild.vc
Expand Up @@ -141,6 +141,10 @@ SSL_CFLAGS = $(SSL_CFLAGS) /DCURL_DISABLE_OPENSSL_AUTO_LOAD_CONFIG
!ENDIF
!ENDIF

!IF "$(ENABLE_WEBSOCKETS)"=="true"
CFLAGS = $(CFLAGS) /DUSE_WEBSOCKETS=1
!ENDIF

vszakats marked this conversation as resolved.
Show resolved Hide resolved

!IFDEF NGHTTP2_PATH
NGHTTP2_INC_DIR = $(NGHTTP2_PATH)\include
Expand Down
1 change: 1 addition & 0 deletions winbuild/README.md
Expand Up @@ -101,6 +101,7 @@ where `<options>` is one or many of:
- Enable loading OpenSSL configuration
automatically, defaults to yes
- `ENABLE_UNICODE=<yes/no>` - Enable UNICODE support, defaults to no
- `ENABLE_WEBSOCKETS=<yes/no>` - Enable Web Socket support, defaults to no
- `GEN_PDB=<yes/no>` - Generate External Program Database
(debug symbols for release build)
- `DEBUG=<yes/no>` - Debug builds
Expand Down