2010-05-15 20:41:53 +00:00
|
|
|
# Build options for use by CMake
|
|
|
|
|
2013-07-23 19:50:52 +00:00
|
|
|
option(BUILD_wireshark "Build the GTK+-GUI version of Wireshark" ON)
|
2013-10-10 17:28:50 +00:00
|
|
|
option(BUILD_qtshark "Build the Qt-GUI version of Wireshark" ON)
|
2010-05-15 20:41:53 +00:00
|
|
|
option(BUILD_tshark "Build tshark" ON)
|
2014-01-08 04:35:28 +00:00
|
|
|
option(BUILD_tfshark "Build tfshark" ON)
|
2010-05-15 20:41:53 +00:00
|
|
|
option(BUILD_rawshark "Build rawshark" ON)
|
|
|
|
option(BUILD_dumpcap "Build dumpcap" ON)
|
|
|
|
option(BUILD_text2pcap "Build text2pcap" ON)
|
|
|
|
option(BUILD_mergecap "Build mergecap" ON)
|
2012-09-24 10:23:20 +00:00
|
|
|
option(BUILD_reordercap "Build reordercap" ON)
|
2010-05-15 20:41:53 +00:00
|
|
|
option(BUILD_editcap "Build editcap" ON)
|
|
|
|
option(BUILD_capinfos "Build capinfos" ON)
|
|
|
|
option(BUILD_randpkt "Build randpkt" ON)
|
|
|
|
option(BUILD_dftest "Build dftest" ON)
|
2013-07-23 19:50:52 +00:00
|
|
|
option(AUTOGEN_dcerpc "Autogenerate DCE RPC dissectors" OFF)
|
2010-05-15 20:41:53 +00:00
|
|
|
option(AUTOGEN_pidl "Autogenerate pidl dissectors" OFF)
|
|
|
|
|
2014-04-20 23:54:21 +00:00
|
|
|
option(DISABLE_WERROR "Do not treat warnings as errors" OFF)
|
|
|
|
option(ENABLE_EXTRA_COMPILER_WARNINGS "Do additional compiler warnings (disables -Werror)" OFF)
|
2014-04-26 22:18:19 +00:00
|
|
|
#
|
|
|
|
# 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()
|
2013-10-10 17:28:50 +00:00
|
|
|
option(ENABLE_QT5 "Use Qt5 instead of Qt4 to build qtshark" ON)
|
2011-08-30 11:44:21 +00:00
|
|
|
option(ENABLE_PCAP "Enable libpcap support (required for capturing)" ON)
|
2013-11-07 20:32:41 +00:00
|
|
|
option(WANT_PACKET_EDITOR "Enable packet editor (experimental)" ON)
|
2011-07-12 17:19:17 +00:00
|
|
|
#
|
|
|
|
# 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.
|
|
|
|
#
|
2013-10-10 20:35:32 +00:00
|
|
|
if(WIN32)
|
|
|
|
option(ENABLE_AIRPCAP "Enable AirPcap support" ON)
|
|
|
|
else()
|
|
|
|
option(ENABLE_AIRPCAP "Enable AirPcap support" OFF)
|
|
|
|
endif()
|
2010-05-15 20:41:53 +00:00
|
|
|
# todo
|
|
|
|
option(ENABLE_STATIC "Build a static version of Wireshark (not yet working)" OFF)
|
2013-07-21 18:10:30 +00:00
|
|
|
option(ENABLE_ECHLD "Enable echld support" OFF)
|
2010-05-15 20:41:53 +00:00
|
|
|
option(ENABLE_PLUGINS "Build with plugins" ON)
|
2010-05-15 21:40:25 +00:00
|
|
|
option(ENABLE_GUIDES "Build Guides" OFF)
|
2011-06-17 22:57:02 +00:00
|
|
|
option(ENABLE_PCAP_NG_DEFAULT "Enable pcap-ng as default file format" ON)
|
2010-05-15 20:41:53 +00:00
|
|
|
|
|
|
|
option(ENABLE_ADNS "Build with adns support" ON)
|
2014-06-18 19:25:12 +00:00
|
|
|
option(ENABLE_PORTAUDIO "Build with PortAudio support" ON)
|
2010-05-15 20:41:53 +00:00
|
|
|
option(ENABLE_ZLIB "Build with zlib compression support" ON)
|
2013-07-23 19:50:52 +00:00
|
|
|
option(ENABLE_LUA "Build with Lua dissector support" ON)
|
|
|
|
option(ENABLE_SMI "Build with libsmi snmp support" ON)
|
2010-09-23 09:08:50 +00:00
|
|
|
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)
|
2014-06-18 19:25:12 +00:00
|
|
|
option(ENABLE_CAP "Build with Posix capabilities support" ON)
|
2013-07-23 19:50:52 +00:00
|
|
|
option(ENABLE_CARES "Build with c-ares support" ON)
|
2014-05-05 18:22:25 +00:00
|
|
|
if(CMAKE_SYSTEM_NAME STREQUAL "Linux")
|
|
|
|
option(ENABLE_NETLINK "Build with libnl support" ON)
|
|
|
|
endif()
|
2010-05-15 20:41:53 +00:00
|
|
|
# todo Mostly hardcoded
|
2010-09-23 09:08:50 +00:00
|
|
|
option(ENABLE_KERBEROS "Build with Kerberos support" ON)
|
2014-06-18 19:25:12 +00:00
|
|
|
option(ENABLE_SBC "Build with SBC Codec support in RTP Player" ON)
|
2014-01-19 00:48:22 +00:00
|
|
|
# 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})
|
|
|
|
|