TrustedCA-Win2k => TrustedCA
[metze/wireshark/wip.git] / CMakeOptions.txt
1 # Build options for use by CMake
2
3 option(BUILD_wireshark     "Build Wireshark" ON)
4 option(BUILD_tshark        "Build tshark" ON)
5 option(BUILD_tfshark       "Build tfshark" OFF)
6 option(BUILD_rawshark      "Build rawshark" ON)
7 option(BUILD_dumpcap       "Build dumpcap" ON)
8 option(BUILD_text2pcap     "Build text2pcap" ON)
9 option(BUILD_mergecap      "Build mergecap" ON)
10 option(BUILD_reordercap    "Build reordercap" ON)
11 option(BUILD_editcap       "Build editcap" ON)
12 option(BUILD_capinfos      "Build capinfos" ON)
13 option(BUILD_captype       "Build captype" ON)
14 option(BUILD_randpkt       "Build randpkt" ON)
15 option(BUILD_dftest        "Build dftest" ON)
16 option(BUILD_corbaidl2wrs  "Build corbaidl2wrs" OFF)
17 option(BUILD_dcerpcidl2wrs "Build dcerpcidl2wrs" ON)
18 option(BUILD_xxx2deb       "Build xxx2deb" OFF)
19
20 option(BUILD_androiddump   "Build androiddump" ON)
21 option(BUILD_sshdump       "Build sshdump" ON)
22 option(BUILD_ciscodump     "Build ciscodump" ON)
23 option(BUILD_dpauxmon      "Build dpauxmon" ON)
24 option(BUILD_randpktdump   "Build randpktdump" ON)
25 if(CMAKE_SYSTEM_NAME STREQUAL "Linux")
26         option(BUILD_sdjournal   "Build sdjournal" ON)
27 else()
28         option(BUILD_sdjournal   "Build sdjournal" OFF)
29 endif()
30 option(BUILD_udpdump       "Build udpdump" ON)
31
32 option(BUILD_sharkd        "Build sharkd" ON)
33 if(WIN32)
34         option(BUILD_fuzzshark     "Build fuzzshark" OFF)
35 else()
36         option(BUILD_fuzzshark     "Build fuzzshark" ON)
37 endif()
38 option(BUILD_mmdbresolve   "Build MaxMind DB resolver" ON)
39
40 option(DISABLE_WERROR    "Do not treat warnings as errors" OFF)
41 option(DISABLE_FRAME_LARGER_THAN_WARNING "Disable warning if the size of a function frame is large" OFF)
42 option(EXTCAP_ANDROIDDUMP_LIBPCAP    "Build androiddump using libpcap" OFF)
43 option(ENABLE_EXTRA_COMPILER_WARNINGS "Do additional compiler warnings (disables -Werror)" OFF)
44 option(ENABLE_CODE_ANALYSIS "Enable the compiler's static analyzer if possible" OFF)
45 option(ENABLE_ASAN "Enable AddressSanitizer (ASAN) for debugging (degrades performance)" OFF)
46 option(ENABLE_TSAN "Enable ThreadSanitizer (TSan) for debugging" OFF)
47 option(ENABLE_UBSAN "Enable UndefinedBehaviorSanitizer (UBSan) for debugging" OFF)
48 option(ENABLE_FUZZER "Enable libFuzzer instrumentation for use with fuzzshark" OFF)
49 option(ENABLE_CHECKHF_CONFLICT "Enable hf conflict check for debugging (start-up may be slower)" OFF)
50 option(ENABLE_CCACHE "Speed up compiling and linking using ccache if possible" OFF)
51
52 option(ENABLE_PCAP       "Enable libpcap support (required for capturing)" ON)
53 #
54 # AirPcap support is available only on Windows.  It might be nice to have it
55 # check whether the AirPcap SDK is available, and turn AirPcap support on
56 # only if it is.
57 #
58 if(WIN32)
59         option(ENABLE_AIRPCAP    "Enable AirPcap support" ON)
60 endif()
61 option(ENABLE_STATIC            "Build Wireshark libraries statically" OFF)
62 option(ENABLE_PLUGINS           "Build with plugins" ON)
63 option(ENABLE_PLUGIN_IFDEMO     "Build with plugin interface demo" OFF)
64 option(ENABLE_PCAP_NG_DEFAULT   "Enable pcapng as default file format" ON)
65
66 option(ENABLE_ZLIB       "Build with zlib compression support" ON)
67 option(ENABLE_LZ4        "Build with LZ4 compression support" ON)
68 option(ENABLE_SNAPPY     "Build with Snappy compression support" ON)
69 option(ENABLE_NGHTTP2    "Build with HTTP/2 header decompression support" ON)
70 option(ENABLE_LUA        "Build with Lua dissector support" ON)
71 option(ENABLE_SMI        "Build with libsmi snmp support" ON)
72 option(ENABLE_GNUTLS     "Build with RSA decryption support" ON)
73 if(WIN32)
74         option(ENABLE_WINSPARKLE "Enable WinSparkle support" ON)
75 endif()
76 if (NOT WIN32)
77         option(ENABLE_CAP        "Build with Posix capabilities support" ON)
78 endif()
79 option(ENABLE_CARES      "Build with c-ares support" ON)
80 if(UNIX)
81         # Libnl is Linux-specific.
82         if(CMAKE_SYSTEM_NAME STREQUAL "Linux")
83                 set(_enable_libnl ON)
84         endif()
85         option(ENABLE_NETLINK    "Build with libnl support" ${_enable_libnl})
86 endif()
87 option(ENABLE_KERBEROS   "Build with Kerberos support" ON)
88 option(ENABLE_SBC        "Build with SBC Codec support in RTP Player" ON)
89 option(ENABLE_SPANDSP    "Build with G.722/G.726 codecs support in RTP Player" ON)
90 option(ENABLE_BCG729     "Build with G.729 codec support in RTP Player" ON)
91 option(ENABLE_LIBXML2    "Build with libxml2 support" ON)
92
93 # How to install
94 set(DUMPCAP_INSTALL_OPTION   "normal" CACHE STRING "Permissions to install")
95 set_property(CACHE DUMPCAP_INSTALL_OPTION PROPERTY STRINGS "normal" "suid" "capabilities")
96
97 if(UNIX)
98         option(ENABLE_DUMPCAP_GROUP "Install dumpcap with group ownership and permissions (default \"wireshark\")" OFF)
99         set(DUMPCAP_INSTALL_GROUP "wireshark" CACHE STRING "Group name for dumpcap (must exist)")
100 endif()
101
102 if(APPLE)
103         option(ENABLE_APPLICATION_BUNDLE "Build a macOS application bundle (Wireshark.app)" ON)
104 endif()