Do not build quic by default

This commit is contained in:
Alex Hultman
2022-05-05 04:22:34 +02:00
parent ca3ab57cf0
commit dfa9214096
2 changed files with 17 additions and 0 deletions
+5
View File
@@ -11,6 +11,11 @@ ifeq ($(WITH_PROXY),1)
override CXXFLAGS += -DUWS_WITH_PROXY
endif
# WITH_QUIC enables experimental Http3 examples
ifeq ($(WITH_QUIC),1)
override CXXFLAGS += -DLIBUS_USE_QUIC
endif
# WITH_LIBDEFLATE=1 enables fast paths for SHARED_COMPRESSOR and inflation
ifeq ($(WITH_LIBDEFLATE),1)
override CXXFLAGS += -I libdeflate -DUWS_USE_LIBDEFLATE
+12
View File
@@ -1,3 +1,5 @@
#ifdef LIBUS_USE_QUIC
/* Do not rely on this API, it will change */
#include "Http3App.h"
#include <iostream>
@@ -18,3 +20,13 @@ int main() {
std::cout << "Failed to listen on port 3000" << std::endl;
}
#else
#include <stdio.h>
int main() {
printf("Compile with WITH_QUIC=1 WITH_BORINGSSL=1 make in order to build this example\n");
}
#endif