Skip to content

Commit

Permalink
winbuild: add ENABLE_WEBSOCKETS option
Browse files Browse the repository at this point in the history
Closes #13232
  • Loading branch information
MonkeybreadSoftware authored and bagder committed Apr 17, 2024
1 parent 7afb0e1 commit eb4fe6c
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 0 deletions.
10 changes: 10 additions & 0 deletions winbuild/Makefile.vc
Expand Up @@ -116,6 +116,16 @@ ENABLE_OPENSSL_AUTO_LOAD_CONFIG = true
ENABLE_OPENSSL_AUTO_LOAD_CONFIG = false
!ENDIF

!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
3 changes: 3 additions & 0 deletions winbuild/MakefileBuild.vc
Expand Up @@ -141,6 +141,9 @@ SSL_CFLAGS = $(SSL_CFLAGS) /DCURL_DISABLE_OPENSSL_AUTO_LOAD_CONFIG
!ENDIF
!ENDIF

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

!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

0 comments on commit eb4fe6c

Please sign in to comment.