RADIUS: Remove some shortcuts in how we handle Ascend-Data-Filter
[metze/wireshark/wip.git] / CMakeOptions.txt
1 # Build options for use by CMake
2
3 option(BUILD_wireshark     "Build Wireshark" ON)
4 option(BUILD_wireshark_gtk "Build Wireshark (GTK+ UI)" OFF)
5 option(BUILD_tshark        "Build tshark" ON)
6 option(BUILD_tfshark       "Build tfshark" OFF)
7 option(BUILD_rawshark      "Build rawshark" ON)
8 option(BUILD_dumpcap       "Build dumpcap" ON)
9 option(BUILD_text2pcap     "Build text2pcap" ON)
10 option(BUILD_mergecap      "Build mergecap" ON)
11 option(BUILD_reordercap    "Build reordercap" ON)
12 option(BUILD_editcap       "Build editcap" ON)
13 option(BUILD_capinfos      "Build capinfos" ON)
14 option(BUILD_captype       "Build captype" ON)
15 option(BUILD_randpkt       "Build randpkt" ON)
16 option(BUILD_dftest        "Build dftest" ON)
17 option(BUILD_corbaidl2wrs  "Build corbaidl2wrs" OFF)
18 option(BUILD_dcerpcidl2wrs "Build dcerpcidl2wrs" ON)
19 option(BUILD_xxx2deb       "Build xxx2deb" OFF)
20 option(BUILD_androiddump   "Build androiddump" ON)
21 option(BUILD_sshdump       "Build sshdump" ON)
22 option(BUILD_ciscodump     "Build ciscodump" ON)
23 option(BUILD_randpktdump   "Build randpktdump" ON)
24 option(BUILD_udpdump       "Build udpdump" ON)
25 option(BUILD_sharkd        "Build sharkd" ON)
26
27 option(DISABLE_WERROR    "Do not treat warnings as errors" OFF)
28 option(EXTCAP_ANDROIDDUMP_LIBPCAP    "Build androiddump using libpcap" OFF)
29 option(ENABLE_EXTRA_COMPILER_WARNINGS "Do additional compiler warnings (disables -Werror)" OFF)
30 option(ENABLE_CODE_ANALYSIS "Enable the compiler's static analyzer if possible" OFF)
31 option(ENABLE_ASAN "Enable AddressSanitizer (ASAN) for debugging (degrades performance)" OFF)
32 option(ENABLE_UBSAN "Enable UndefinedBehaviorSanitizer (UBSan) for debugging" OFF)
33 option(ENABLE_CHECKHF_CONFLICT "Enable hf conflict check for debugging (start-up may be slower)" OFF)
34 option(ENABLE_CCACHE "Speed up compiling and linking using ccache if possible" OFF)
35
36 #
37 # Leave GTK2 the default on Windows, looks better than GTK3
38 #
39 if(WIN32)
40         option(ENABLE_GTK3       "Use GTK3 instead of GTK2 to build wireshark" OFF)
41 else()
42         option(ENABLE_GTK3       "Use GTK3 instead of GTK2 to build wireshark" ON)
43 endif()
44 option(ENABLE_QT5        "Use Qt5 instead of Qt4 to build wireshark" ON)
45 option(ENABLE_PCAP       "Enable libpcap support (required for capturing)" ON)
46 option(WANT_PACKET_EDITOR       "Enable packet editor (experimental)" ON)
47 #
48 # Do not make this the default on UN*X; AirPcap support is available
49 # only on Windows.  It might be nice to have it, on Windows, check
50 # whether the AirPcap SDK is available, and turn AirPcap support on
51 # only if it is.
52 #
53 if(WIN32)
54         option(ENABLE_AIRPCAP    "Enable AirPcap support" ON)
55 else()
56         option(ENABLE_AIRPCAP    "Enable AirPcap support" OFF)
57 endif()
58 # todo
59 option(ENABLE_STATIC     "Build a static version of Wireshark (not yet working)" OFF)
60 option(ENABLE_PLUGINS    "Build with plugins" ON)
61 option(ENABLE_PLUGIN_IFDEMO    "Build with plugin interface demo" OFF)
62 option(ENABLE_EXTCAP     "Build with extcap hooks" ON)
63 option(ENABLE_HTML_GUIDES       "Build HTML User & Developer Guides" OFF)
64 option(ENABLE_PDF_GUIDES        "Build PDF User & Developer Guides" OFF)
65 option(ENABLE_CHM_GUIDES        "Build HTML Help User & Developer Guides" OFF)
66 option(ENABLE_PCAP_NG_DEFAULT   "Enable pcap-ng as default file format" ON)
67
68 option(ENABLE_PORTAUDIO  "Build with PortAudio support" ON)
69 option(ENABLE_ZLIB       "Build with zlib compression support" ON)
70 option(ENABLE_LZ4        "Build with LZ4 compression support" ON)
71 option(ENABLE_SNAPPY     "Build with Snappy compression support" ON)
72 option(ENABLE_LUA        "Build with Lua dissector support" ON)
73 option(ENABLE_SMI        "Build with libsmi snmp support" ON)
74 option(ENABLE_GNUTLS     "Build with GNU TLS support" ON)
75 option(ENABLE_GEOIP      "Build with GeoIP support" ON)
76 if(WIN32)
77         option(ENABLE_WINSPARKLE "Enable WinSparkle support" ON)
78 else()
79         option(ENABLE_WINSPARKLE "Enable WinSparkle support" OFF)
80 endif()
81 option(ENABLE_CAP        "Build with Posix capabilities support" ON)
82 option(ENABLE_CARES      "Build with c-ares support" ON)
83 #
84 # Libnl is Linux-specific.
85 #
86 if(CMAKE_SYSTEM_NAME STREQUAL "Linux")
87         option(ENABLE_NETLINK    "Build with libnl support" ON)
88 else()
89         option(ENABLE_NETLINK    "Build with libnl support" OFF)
90 endif()
91 # todo Mostly hardcoded
92 option(ENABLE_KERBEROS   "Build with Kerberos support" ON)
93 option(ENABLE_SBC        "Build with SBC Codec support in RTP Player" ON)
94 option(ENABLE_SPANDSP    "Build with G.722/G.726 codecs support in RTP Player" ON)
95 option(ENABLE_BCG729     "Build with G.729 codec support in RTP Player" ON)
96 option(ENABLE_LIBXML2    "Build with libxml2 support" ON)
97 # How to install
98 set(DUMPCAP_INSTALL_OPTION   "normal" CACHE STRING "Permissions to install")
99 set(DUMPCAP_INST_VALS "normal" "suid" "capabilities")
100 set_property(CACHE DUMPCAP_INSTALL_OPTION PROPERTY STRINGS ${DUMPCAP_INST_VALS})
101 if(APPLE)
102         option(ENABLE_APPLICATION_BUNDLE "Build a macOS application bundle (Wireshark.app)" ON)
103 else()
104         option(ENABLE_APPLICATION_BUNDLE "Build a macOS application bundle (Wireshark.app)" OFF)
105 endif()