aboutsummaryrefslogtreecommitdiffstats
path: root/CMakeOptions.txt
diff options
context:
space:
mode:
Diffstat (limited to 'CMakeOptions.txt')
-rw-r--r--CMakeOptions.txt29
1 files changed, 25 insertions, 4 deletions
diff --git a/CMakeOptions.txt b/CMakeOptions.txt
index 81a330548f..98c48406af 100644
--- a/CMakeOptions.txt
+++ b/CMakeOptions.txt
@@ -1,6 +1,9 @@
# Build options for use by CMake
option(BUILD_wireshark "Build Wireshark" ON)
+if(BUILD_wireshark)
+ option(USE_qt6 "Use Qt6 instead of Qt5 - WIP, GUI developers only!" OFF)
+endif()
option(BUILD_tshark "Build tshark" ON)
option(BUILD_tfshark "Build tfshark" OFF)
option(BUILD_rawshark "Build rawshark" ON)
@@ -22,6 +25,14 @@ option(BUILD_sshdump "Build sshdump" ON)
option(BUILD_ciscodump "Build ciscodump" ON)
option(BUILD_dpauxmon "Build dpauxmon" ON)
option(BUILD_randpktdump "Build randpktdump" ON)
+if(WIN32 AND NOT MINGW)
+ # XXX - I don't think building etwdump is possible with MinGW-w64 as of
+ # version 9.0 but I would like to be 100% certain.
+ option(BUILD_etwdump "Build etwdump" ON)
+else()
+ option(BUILD_etwdump "Build etwdump" OFF)
+endif()
+
if(CMAKE_SYSTEM_NAME STREQUAL "Linux")
option(BUILD_sdjournal "Build sdjournal" ON)
else()
@@ -38,6 +49,8 @@ endif()
option(BUILD_mmdbresolve "Build MaxMind DB resolver" ON)
option(DISABLE_WERROR "Do not treat warnings as errors" OFF)
+option(DISABLE_DEBUG "Disable debug code" OFF)
+option(DISABLE_ASSERT "Disable assertions" OFF)
option(DISABLE_FRAME_LARGER_THAN_WARNING "Disable warning if the size of a function frame is large" OFF)
option(EXTCAP_ANDROIDDUMP_LIBPCAP "Build androiddump using libpcap" OFF)
option(ENABLE_EXTRA_COMPILER_WARNINGS "Do additional compiler warnings (disables -Werror)" OFF)
@@ -49,10 +62,18 @@ option(ENABLE_FUZZER "Enable libFuzzer instrumentation for use with fuzzshark" O
option(ENABLE_CHECKHF_CONFLICT "Enable hf conflict check for debugging (start-up may be slower)" OFF)
option(ENABLE_CCACHE "Speed up compiling and linking using ccache if possible" OFF)
-if (WIN32)
- option(ENABLE_LTO "Improves performance using Link time Optimization" ON)
+if(CMAKE_GENERATOR STREQUAL "Ninja")
+ option(ENABLE_COMPILER_COLOR_DIAGNOSTICS "Always enable the compiler's color diagnostic output" ON)
else()
- option(ENABLE_LTO "Improves performance using Link time Optimization" OFF)
+ option(ENABLE_COMPILER_COLOR_DIAGNOSTICS "Always enable the compiler's color diagnostic output" OFF)
+endif()
+
+if(CMAKE_VERSION VERSION_GREATER "3.8.99")
+ option(ENABLE_LTO "Use Link Time Optimization (release configuration only)" OFF)
+endif()
+
+if(WIN32)
+ option(ENABLE_VLD "Enable Visual Leak Detect in Debug configuration" OFF)
endif()
option(ENABLE_PCAP "Enable libpcap support (required for capturing)" ON)
@@ -85,7 +106,6 @@ endif()
if (NOT WIN32)
option(ENABLE_CAP "Build with Posix capabilities support" ON)
endif()
-option(ENABLE_CARES "Build with c-ares support" ON)
if(UNIX)
# Libnl is Linux-specific.
if(CMAKE_SYSTEM_NAME STREQUAL "Linux")
@@ -99,6 +119,7 @@ option(ENABLE_SPANDSP "Build with G.722/G.726 codecs support in RTP Player" O
option(ENABLE_BCG729 "Build with G.729 codec support in RTP Player" ON)
option(ENABLE_ILBC "Build with iLBC codec support in RTP Player" ON)
option(ENABLE_LIBXML2 "Build with libxml2 support" ON)
+option(ENABLE_OPUS "Build with opus support" ON)
# How to install
set(DUMPCAP_INSTALL_OPTION "normal" CACHE STRING "Permissions to install")