You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1.6 KiB
1.6 KiB
Build Instructions
Dependencies
- Boost 1.66+ (asio, system, date_time)
- OpenSSL (for HTTPS, optional)
- Zlib (for GZIP compression, optional)
- Googletest/gtest (for automation and unit tests, optional)
- CMake
OpenSSL and Zlib are optional since they could be disabled. See the build options below. Googletest is also optional unless you want to build the automation and unit tests.
Build Options
The following CMake options determine how you build the projects. They are quite self-explanatory.
option(WEBCC_ENABLE_AUTOTEST "Build automation test?" OFF)
option(WEBCC_ENABLE_UNITTEST "Build unit test?" OFF)
option(WEBCC_ENABLE_EXAMPLES "Build examples?" OFF)
set(WEBCC_ENABLE_LOG 1 CACHE STRING "Enable logging? (1:Yes, 0:No)")
set(WEBCC_LOG_LEVEL 2 CACHE STRING "Log level (0:VERB, 1:INFO, 2:USER, 3:WARN or 4:ERRO)")
set(WEBCC_ENABLE_SSL 0 CACHE STRING "Enable SSL/HTTPS (need OpenSSL)? (1:Yes, 0:No)")
set(WEBCC_ENABLE_GZIP 0 CACHE STRING "Enable gzip compression (need Zlib)? (1:Yes, 0:No)")
WEBCC_ENABLE_AUTOTEST
Automation test based on real servers (mostly httpbin.org).
WEBCC_ENABLE_LOG
and WEBCC_LOG_LEVEL
These two options define how logging behaves. See Logging for more details.
WEBCC_ENABLE_SSL
For HTTPS support (need OpenSSL).
WEBCC_ENABLE_GZIP
For GZIP compression support (need Zlib).