aboutsummaryrefslogtreecommitdiffstats
path: root/cmake/modules
AgeCommit message (Collapse)AuthorFilesLines
2023-08-24CMake: improve finding Gcrypt libraryJoakim Karlsson1-4/+18
2023-08-17CMake: Accept any supported Lua version by defaultJoão Valverde1-11/+3
2023-08-16CMake: Update FindLua moduleJoão Valverde2-119/+251
Replace our code with the upstream version, simplified to search only for our supported Lua versions. This allows selecting Lua versions 5.2, 5.2 or "any". The default is 5.2 only because supporting more than one Lua versions is generally the wrong thing to do. Allow falling back to 5.1 *explicitly*
2023-06-10CMake+Windows: Use "x64" instead of "win64"Gerald Combs2-2/+2
Use "x64" to refer to "Windows running on 64-bit Intel processors". Get rid of WIRESHARK_TARGET_PROCESSOR_ARCHITECTURE in favor of WIRESHARK_TARGET_PLATFORM because the latter is shorter.
2023-06-09CMake: Use USE_REPOSITORY with FindWSWinLibs.cmakeJoão Valverde1-3/+3
This CMake module is specific to Wireshark's 3rd party Windows repository so make use the correct variable for that, so this isn't activated in Windows builds that do not use the reppsitory.
2023-05-28CMake: Use "arm64" instead of "win64arm"Gerald Combs2-9/+2
Use "arm64" instead of "win64arm". This lets us simplify some of our CMake logic. Note that we could simplify things further if we used "x64" instead of "win64" in various places.
2023-05-28Windows: Update our iLBC, SBC, and SpanDSP packagesGerald Combs3-3/+6
Upgrade SBC to version 2.0. Add Arm64 packages for all three.
2023-05-27CMake: Try to use FindPython3.cmake againJoão Valverde4-6/+6
Use FindPython3.cmake instead of the deprecated FindPythonInterp.cmake, to make sure we actually find Python3. Don't use the module with MSYS2 because it is buggy and exhibits broken behaviour. Run it earlier in the configuration, just as a precaution, so other indirect calls to find python don't happen earlier.
2023-05-26Revert "CMake: Replace deprecated module FindPythonInterp"João Valverde4-6/+6
This reverts commit d6380e7ae40ec53cbd9119e9527546656f82d660. Turns out we were unwittingly still using FindPythonInterp instead of FindPython3.cmake, via LocatePythonModule.cmake, nd this commit actually enabled FindPython3.cmake. Also turns out FindPython3.cmake is far too clever and very buggy with MSYS2. It will usually not find the correct python binary and fail in many suprising ways, depending on which combination of Python Windows installations is present.
2023-05-26CMake: Remove module LocatePythonModule.cmakeJoão Valverde3-67/+6
This module is unnecessary and frequently causes hard-to-debug issues during CMake's configure run. Nuke it.
2023-05-26CMake: Replace deprecated module FindPythonInterpJoão Valverde5-9/+9
2023-05-26Fedora: Fix cross-compilation with mingw-wpcapJoão Valverde1-3/+9
Fix various issues preventing compilation with Fedora's MinGW WinPcap package.
2023-05-25Allow using host Lemon executableJoão Valverde1-8/+36
Add support for using the host system's lemon binary instead of compiling our own. Many linux distributions include a lemon parser generator package. Using this binary when cross-compiling is much simpler than configuring the build to use the build host toolchain to compile lemon.
2023-05-25CMake: Reformat UseLemon.cmakeJoão Valverde1-32/+33
Replace spaces with tabs and use lower-case CMake names to match our usual style.
2023-05-25CMake: Add "pwsh" as a PowerShell nameJoão Valverde1-1/+3
PowerShell on Linux is installed as "pwsh".
2023-05-21Windows: Update our libssh packages and add Lua for Arm64Gerald Combs1-2/+1
Update libssh to 0.10.5 and add an Arm64 version. Add an Arm64 version of our customized Lua.
2023-05-20Windows: Update our GnuTLS packagesGerald Combs1-1/+3
Use custom-built packages with MSYS2 dependencies and add an Arm64 package. This adds duplicate iconv and intl DLLs; hopefully that won't be an issue.
2023-05-19Windows: Update our libgcrypt packagesGerald Combs1-1/+1
Switch to automatically built packages and add back libgpg-error.
2023-05-18Windows: Upgrade WinSparkle to 0.8.0Gerald Combs1-6/+7
Upgrade to an OpenSSL-less build of 0.8.0 and add Arm64 support.
2023-05-14CMake: Fix our Asciidoctor build dirGerald Combs1-1/+1
Set the build directory based on CMAKE_BINARY_DIR. Fixes #19070
2023-05-14CMake: Use components to install doc guidesJoão Valverde2-34/+1
Use CMake components to install the guides, instead of a custom target and script. We have to inconveniently place the install() command in the top-level CMakeLists.txt file, instead of docbook/CMakeLists.txt, so that we can use cmake --install <builddir> --component UserGuide insead of cmake --install <builddir>/docbook --component UserGuide so that it can be used in the wireshark.spec file without too many contortions.
2023-05-05CMake+tools: Add Visual C++ Arm64 supportGerald Combs1-2/+2
Add support for building for Windows on Arm64 using Visual C++ to the CMake environment. Add our initial batch of packages to win-setup.ps1. Ping #18123
2023-04-10CMake: Fix more PkgConfig invocations with MSYS2João Valverde20-20/+20
2023-04-10MSYS2: Fix detection of GnuTLSJoão Valverde1-1/+1
2023-04-09CMake: Fixups for FindAMRNB moduleJoão Valverde1-5/+5
Ping #18930.
2023-03-22AMRNB: Look for package name using allcapsMartin Mathieson1-1/+1
2023-03-21Add AMR codec supportHarald Welte1-0/+57
2023-02-11Docbook: Reorganize our guide directoriesGerald Combs1-9/+14
Move the top-level user-guide.adoc and developer-guide.adoc to their respective source directores. This is in preparation for a future toolchain revamp. Move the wsug_graphics directory to wsug_src/images and wsdg_graphics directory to wsdg_src/images. Copy common_graphics/* to the each images directory and remove common_graphics. We only have five admonition graphics; duplicating them lets us remove some build config overhead. Rename wsluarm.adoc to wsdg_src/wsdg_lua_support.adoc. Remove a dummy file. Tested visually and by enabling `--failure-level=WARN`.
2023-01-16MSYS2: Add Lua 5.1 support and fix test suite failuresJoão Valverde1-0/+9
2023-01-12CMake: Rename SINSP_PLUGINS to FALCO_PLUGINSGerald Combs1-2/+2
2023-01-11CMake: Specify Falco plugins manually.Gerald Combs1-14/+8
Falco plugins don't yet have a standard installation location, and even when they do we might not want to install all of them. Remove plugin detection from FindSinsp.cmake and note that you should just pass the paths to your plugins in SINSP_PLUGINS.
2023-01-09dfilter: Disable flex debug trace for release buildsJoão Valverde1-1/+1
This omits the flex debug code in the binary if the build type is RelMinSize or Release. It replaces the "%option debug" stanza with the -d command line option, to be able to configure the flex behaviour.
2023-01-01Lemon: Update code and remove cruftJoão Valverde1-1/+8
Remove some unused historical files. Aggressively disable warnings to keep the lemon source pristine and avoid the maintenance burden for lemon itself. Lemon has its own lax policy for warnings that doesn't match our own and they won't accept external patches to remove the warnings, so just ignore them. Lemon is just executed to generate code for the Wireshark build and the minor code issues it has have no influence at runtime. For lemon generated code we selectively disable some linting warnings. Remove patches for lemon and lempar, they are no longer required with these changes to silence warnings.
2022-12-16Windows: Use SpeexDSP binary packageJoão Valverde1-10/+30
Remove bundled code and use vcpkg binary library instead.
2022-11-30asn2wrs: disable line directive by defaultJoakim Karlsson1-0/+4
To debug with line directive build with -DENABLE_DEBUG_A2W=ON flag
2022-11-28CMake: Updates for CMake 3.25 and later on Windows.Gerald Combs4-3/+24
https://cmake.org/cmake/help/latest/release/3.25.html says: "On Windows, when targeting the MSVC ABI, the find_library() command now accepts .a file names after first considering .lib. This is symmetric with existing behavior when targeting the GNU ABI, in which the command accepts .lib file names after first considering .a." If "MSVC" is defined, only search for libsmi-2. This keeps us from finding libsmi.a. Set NO_SYSTEM_ENVIRONMENT_PATH when we're searching for zlib. This keeps us from finding Strawberry Perl's version. Some SpanDSP builds link with LibTIFF, but our Windows version doesn't.
2022-10-10Windows: Fix detection of asciidoctor againJoão Valverde1-0/+3
Scoop uses "asciidoctorj.cmd". The others were added for completeness.
2022-08-19Windows: Upgrade libgcrypt to 1.10.1.Gerald Combs1-4/+7
2022-08-15Falco Bridge: Update to match falcosecurity-libs 0.8.0.Gerald Combs2-106/+138
Update sinsp-span to use the current Falco libs APIs. Update the FindSinsp CMake module to use pkg-config.
2022-07-29Docs: Fix our man page dependencies.Gerald Combs1-0/+10
Dependencies need to be set via add_custom_command.
2022-07-26Add vcpkg-export-20220726-1.Gerald Combs1-1/+1
Add vcpkg-export-20220726-1, which includes Dirent 1.23.2 Gettext 0.21 GLib2 2.72.3 Libffi 3.4 Libiconv 1.17 Liblzma 5.2.5 Libxml2 2.9.14 PCRE 8.45 Zlib 1.2.12 Ping #16265.
2022-07-25CMake: improve finding C-Ares libraryJoakim Karlsson1-3/+16
2022-07-06Rename Logwolf to LograyGerald Combs1-2/+2
Switch to the name "Logray" for the log analyzer. Rays are biological cousins of sharks and more people like the name "Logray" in a completely unscientific survey here. Apologies for any inconvenience this might cause.
2022-04-27Falco Bridge: Fix building on Windows.Gerald Combs1-8/+20
Fix Falco plugin installation in multi-config environments. Fix FindSinsp on Windows. Ignore a couple of warnings for now.
2022-04-25CMake+Logwolf: Populate our Falco plugin directory.Gerald Combs1-7/+20
Create plugins/<version>/falco and copy over the Cloudtrail plugin.
2022-04-21macOS: Require Sparkle 2.Gerald Combs1-2/+4
Remove our Sparkle 1 code. Fixes #18035.
2022-04-18macOS: Add support for Sparkle 2.Gerald Combs1-10/+9
Sparkle 2 deprecated the sharedUpdater singleton, so create our own which uses Sparkle 2's updated API. Ping #18035. Update our CMake version check.
2022-04-04CMake: Finish splitting ADD_PLUGIN_LIBRARY.Gerald Combs1-2/+7
Rename add_plugin_library to add_wireshark_plugin_library and add a backward compatibility wrapper. Make Falco Bridge a Logwolf plugin.
2022-04-04CMake: Add a jsoncpp include path.Gerald Combs1-0/+1
Ubunutu (and presumably Debian) install jsoncpp's include files in /usr/include/jsoncpp/json.
2022-04-04More Logshark to Logwolf renaming.Gerald Combs1-0/+8