CMakeOptions.txt 4.37 KB
Newer Older
1 2
# Build options for use by CMake

3
option(BUILD_wireshark     "Build Wireshark" ON)
Gerald Combs's avatar
Gerald Combs committed
4
option(BUILD_wireshark_gtk "Build Wireshark (GTK+ UI)" OFF)
5 6 7 8 9 10 11 12 13 14 15 16
option(BUILD_tshark        "Build tshark" ON)
option(BUILD_tfshark       "Build tfshark" ON)
option(BUILD_rawshark      "Build rawshark" ON)
option(BUILD_dumpcap       "Build dumpcap" ON)
option(BUILD_text2pcap     "Build text2pcap" ON)
option(BUILD_mergecap      "Build mergecap" ON)
option(BUILD_reordercap    "Build reordercap" ON)
option(BUILD_editcap       "Build editcap" ON)
option(BUILD_capinfos      "Build capinfos" ON)
option(BUILD_captype       "Build captype" ON)
option(BUILD_randpkt       "Build randpkt" ON)
option(BUILD_dftest        "Build dftest" ON)
17
option(BUILD_androiddump   "Build androiddump" ON)
Dario Lombardo's avatar
Dario Lombardo committed
18
option(BUILD_sshdump       "Build sshdump" ON)
Dario Lombardo's avatar
Dario Lombardo committed
19
option(BUILD_ciscodump     "Build ciscodump" ON)
20
option(BUILD_randpktdump   "Build randpktdump" ON)
Dario Lombardo's avatar
Dario Lombardo committed
21
option(BUILD_udpdump       "Build udpdump" ON)
22

23
option(DISABLE_WERROR    "Do not treat warnings as errors" OFF)
24
option(EXTCAP_ANDROIDDUMP_LIBPCAP    "Build androiddump using libpcap" OFF)
25
option(ENABLE_EXTRA_COMPILER_WARNINGS "Do additional compiler warnings (disables -Werror)" OFF)
26
option(ENABLE_CODE_ANALYSIS "Enable the compiler's static analyzer if possible" OFF)
27 28
option(ENABLE_ASAN "Enable AddressSanitizer (ASAN) for debugging (degrades performance)" OFF)
option(ENABLE_CHECKHF_CONFLICT "Enable hf conflict check for debugging (start-up may be slower)" OFF)
29

30 31 32 33 34 35 36 37
#
# Leave GTK2 the default on Windows, looks better than GTK3
#
if(WIN32)
	option(ENABLE_GTK3       "Use GTK3 instead of GTK2 to build wireshark" OFF)
else()
	option(ENABLE_GTK3       "Use GTK3 instead of GTK2 to build wireshark" ON)
endif()
38
option(ENABLE_QT5        "Use Qt5 instead of Qt4 to build wireshark" ON)
39
option(ENABLE_PCAP       "Enable libpcap support (required for capturing)" ON)
40
option(WANT_PACKET_EDITOR	"Enable packet editor (experimental)" ON)
41 42 43 44 45 46
#
# Do not make this the default on UN*X; AirPcap support is available
# only on Windows.  It might be nice to have it, on Windows, check
# whether the AirPcap SDK is available, and turn AirPcap support on
# only if it is.
#
47 48 49 50 51
if(WIN32)
	option(ENABLE_AIRPCAP    "Enable AirPcap support" ON)
else()
	option(ENABLE_AIRPCAP    "Enable AirPcap support" OFF)
endif()
52 53
# todo
option(ENABLE_STATIC     "Build a static version of Wireshark (not yet working)" OFF)
54
option(ENABLE_ECHLD      "Enable echld support" OFF)
55
option(ENABLE_PLUGINS    "Build with plugins" ON)
Roland Knall's avatar
Roland Knall committed
56
option(ENABLE_EXTCAP     "Build with extcap hooks" ON)
57 58
option(ENABLE_HTML_GUIDES       "Build HTML User & Developer Guides" OFF)
option(ENABLE_PDF_GUIDES        "Build PDF User & Developer Guides" OFF)
59
option(ENABLE_CHM_GUIDES        "Build HTML Help User & Developer Guides" OFF)
60
option(ENABLE_PCAP_NG_DEFAULT	"Enable pcap-ng as default file format" ON)
61

62
option(ENABLE_PORTAUDIO  "Build with PortAudio support" ON)
63
option(ENABLE_ZLIB       "Build with zlib compression support" ON)
64 65
option(ENABLE_LZ4        "Build with LZ4 compression support" ON)
option(ENABLE_SNAPPY     "Build with Snappy compression support" ON)
66 67
option(ENABLE_LUA        "Build with Lua dissector support" ON)
option(ENABLE_SMI        "Build with libsmi snmp support" ON)
68 69 70
option(ENABLE_GNUTLS     "Build with GNU TLS support" ON)
option(ENABLE_GCRYPT     "Build with GNU crypto support" ON)
option(ENABLE_GEOIP      "Build with GeoIP support" ON)
71 72 73 74 75
if(WIN32)
	option(ENABLE_WINSPARKLE "Enable WinSparkle support" ON)
else()
	option(ENABLE_WINSPARKLE "Enable WinSparkle support" OFF)
endif()
76
option(ENABLE_CAP        "Build with Posix capabilities support" ON)
77
option(ENABLE_CARES      "Build with c-ares support" ON)
78 79 80
#
# Libnl is Linux-specific.
#
81 82
if(CMAKE_SYSTEM_NAME STREQUAL "Linux")
	option(ENABLE_NETLINK    "Build with libnl support" ON)
83 84
else()
	option(ENABLE_NETLINK    "Build with libnl support" OFF)
85
endif()
86
# todo Mostly hardcoded
87
option(ENABLE_KERBEROS   "Build with Kerberos support" ON)
88
option(ENABLE_SBC        "Build with SBC Codec support in RTP Player" ON)
89 90 91 92
# How to install
set(DUMPCAP_INSTALL_OPTION   "normal" CACHE STRING "Permissions to install")
set(DUMPCAP_INST_VALS "normal" "suid" "capabilities")
set_property(CACHE DUMPCAP_INSTALL_OPTION PROPERTY STRINGS ${DUMPCAP_INST_VALS})
93
if(APPLE)
94
	option(ENABLE_APPLICATION_BUNDLE "Build an OS X application bundle (Wireshark.app)" ON)
95
else()
96
	option(ENABLE_APPLICATION_BUNDLE "Build an OS X application bundle (Wireshark.app)" OFF)
97
endif()