mirror of
https://gitee.com/openharmony/third_party_nghttp2
synced 2024-11-27 18:10:47 +00:00
72b71a6ba3
This change adds the CMake option; ENABLE_STATIC_CRT Build libnghttp2 against the MS LIBCMT[d] This avoids linking to msvcrt.lib for binaries to compile (/MT[d]) and link against the static C Runtime libcrt.lib, and avoiding the msvcrt[d].dll dependency. Signed-off-by: William A Rowe Jr <wrowe@pivotal.io> Signed-off-by: Yechiel Kalmenson <ykalmenson@pivotal.io>
31 lines
1.3 KiB
CMake
31 lines
1.3 KiB
CMake
# Features that can be enabled for cmake (see CMakeLists.txt)
|
|
|
|
option(ENABLE_WERROR "Turn on compile time warnings")
|
|
option(ENABLE_DEBUG "Turn on debug output")
|
|
option(ENABLE_THREADS "Turn on threading in apps" ON)
|
|
option(ENABLE_APP "Build applications (nghttp, nghttpd, nghttpx and h2load)"
|
|
${ENABLE_APP_DEFAULT})
|
|
option(ENABLE_HPACK_TOOLS "Build HPACK tools"
|
|
${ENABLE_HPACK_TOOLS_DEFAULT})
|
|
option(ENABLE_ASIO_LIB "Build C++ libnghttp2_asio library")
|
|
option(ENABLE_EXAMPLES "Build examples"
|
|
${ENABLE_EXAMPLES_DEFAULT})
|
|
option(ENABLE_PYTHON_BINDINGS "Build Python bindings"
|
|
${ENABLE_PYTHON_BINDINGS_DEFAULT})
|
|
option(ENABLE_FAILMALLOC "Build failmalloc test program" ON)
|
|
option(ENABLE_LIB_ONLY "Build libnghttp2 only. This is a short hand for -DENABLE_APP=0 -DENABLE_EXAMPLES=0 -DENABLE_HPACK_TOOLS=0 -DENABLE_PYTHON_BINDINGS=0")
|
|
option(ENABLE_STATIC_LIB "Build libnghttp2 in static mode also")
|
|
option(ENABLE_SHARED_LIB "Build libnghttp2 as a shared library" ON)
|
|
option(ENABLE_STATIC_CRT "Build libnghttp2 against the MS LIBCMT[d]")
|
|
|
|
option(WITH_LIBXML2 "Use libxml2"
|
|
${WITH_LIBXML2_DEFAULT})
|
|
option(WITH_JEMALLOC "Use jemalloc"
|
|
${WITH_JEMALLOC_DEFAULT})
|
|
option(WITH_SPDYLAY "Use spdylay"
|
|
${WITH_SPDYLAY_DEFAULT})
|
|
option(WITH_MRUBY "Use mruby")
|
|
option(WITH_NEVERBLEED "Use neverbleed")
|
|
|
|
# vim: ft=cmake:
|