cmake: Do not hide possible options for other platforms
[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)" ON)
5 option(BUILD_tshark        "Build tshark" ON)
6 option(BUILD_tfshark       "Build tfshark" ON)
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(AUTOGEN_dcerpc      "Autogenerate DCE RPC dissectors" OFF)
18 option(AUTOGEN_pidl        "Autogenerate pidl dissectors" OFF)
19
20 option(DISABLE_WERROR    "Do not treat warnings as errors" OFF)
21 option(ENABLE_EXTRA_COMPILER_WARNINGS "Do additional compiler warnings (disables -Werror)" OFF)
22 #
23 # Leave GTK2 the default on Windows, looks better than GTK3
24 #
25 if(WIN32)
26         option(ENABLE_GTK3       "Use GTK3 instead of GTK2 to build wireshark" OFF)
27 else()
28         option(ENABLE_GTK3       "Use GTK3 instead of GTK2 to build wireshark" ON)
29 endif()
30 option(ENABLE_QT5        "Use Qt5 instead of Qt4 to build wireshark" ON)
31 option(ENABLE_PCAP       "Enable libpcap support (required for capturing)" ON)
32 option(WANT_PACKET_EDITOR       "Enable packet editor (experimental)" ON)
33 #
34 # Do not make this the default on UN*X; AirPcap support is available
35 # only on Windows.  It might be nice to have it, on Windows, check
36 # whether the AirPcap SDK is available, and turn AirPcap support on
37 # only if it is.
38 #
39 if(WIN32)
40         option(ENABLE_AIRPCAP    "Enable AirPcap support" ON)
41 else()
42         option(ENABLE_AIRPCAP    "Enable AirPcap support" OFF)
43 endif()
44 # todo
45 option(ENABLE_STATIC     "Build a static version of Wireshark (not yet working)" OFF)
46 option(ENABLE_ECHLD      "Enable echld support" OFF)
47 option(ENABLE_PLUGINS    "Build with plugins" ON)
48 option(ENABLE_EXTCAP     "Build with extcap hooks" ON)
49 option(ENABLE_HTML_GUIDES       "Build HTML User & Developer Guides" OFF)
50 option(ENABLE_PDF_GUIDES        "Build PDF User & Developer Guides" OFF)
51 option(ENABLE_PCAP_NG_DEFAULT   "Enable pcap-ng as default file format" ON)
52
53 option(ENABLE_ADNS       "Build with adns support" ON)
54 option(ENABLE_PORTAUDIO  "Build with PortAudio support" ON)
55 option(ENABLE_ZLIB       "Build with zlib compression support" ON)
56 option(ENABLE_LUA        "Build with Lua dissector support" ON)
57 option(ENABLE_SMI        "Build with libsmi snmp support" ON)
58 option(ENABLE_GNUTLS     "Build with GNU TLS support" ON)
59 option(ENABLE_GCRYPT     "Build with GNU crypto support" ON)
60 option(ENABLE_GEOIP      "Build with GeoIP support" ON)
61 if(WIN32)
62         option(ENABLE_WINSPARKLE "Enable WinSparkle support" ON)
63 else()
64         option(ENABLE_WINSPARKLE "Enable WinSparkle support" OFF)
65 endif()
66 option(ENABLE_CAP        "Build with Posix capabilities support" ON)
67 option(ENABLE_CARES      "Build with c-ares support" ON)
68 if(CMAKE_SYSTEM_NAME STREQUAL "Linux")
69         option(ENABLE_NETLINK    "Build with libnl support" ON)
70 else()
71         option(ENABLE_NETLINK    "Build with libnl support" OFF)
72 endif()
73 # todo Mostly hardcoded
74 option(ENABLE_KERBEROS   "Build with Kerberos support" ON)
75 option(ENABLE_SBC        "Build with SBC Codec support in RTP Player" ON)
76 # How to install
77 set(DUMPCAP_INSTALL_OPTION   "normal" CACHE STRING "Permissions to install")
78 set(DUMPCAP_INST_VALS "normal" "suid" "capabilities")
79 set_property(CACHE DUMPCAP_INSTALL_OPTION PROPERTY STRINGS ${DUMPCAP_INST_VALS})
80 if(APPLE)
81         option(ENABLE_APPLICATION_BUNDLE "Build a Mac OS X application bundle (Wireshark.app)" ON)
82 else()
83         option(ENABLE_APPLICATION_BUNDLE "Build a Mac OS X application bundle (Wireshark.app)" OFF)
84 endif()