aboutsummaryrefslogtreecommitdiff
path: root/cmake/scripts
AgeCommit message (Collapse)Author
2022-03-12[cmake] FindSpdlog enable windows ENABLE_INTERNAL_SPDLOG buildfuzzard
2022-03-07[cmake] BUILD_DEP_TARGET append Toolchain when CMAKE_ARGS passedfuzzard
If a toolchain file is provided, pass it along to any internal dep cmake based build systems.
2022-03-07[cmake] BUILD_DEP_TARGET move include and add docinfofuzzard
2022-03-07[cmake] SETUP_BUILD_VARS create MODULE_LIBRARY/INCLUDE_DIR/VER variablesfuzzard
2022-03-07[cmake] ModuleHelper read BYPRODUCT from VERSION filesfuzzard
2022-03-07[cmake] create macro to handle module externalproject_add calls for internal ↵fuzzard
deps refactor out usage of externalproject_add to a macro for internal dep building
2022-03-02[cmake] introduce module download macrofuzzard
Macro will factor out repetitive code for internal dependency builds
2022-02-28[cmake] linux: refactor linker selectionwsnipex
2022-02-27[cmake] add mold linker supportwsnipex
2022-02-12Add support for ppc64le in ArchSetup.cmakeThomas Fitzsimmons
2022-02-06Merge pull request #20947 from lrusak/cppcheck-updatesLukas Rusak
[cmake] improve cppcheck behaviour for CI
2022-02-03[cmake] cppcheck: add suppression xml to remove unwanted foldersLukas Rusak
2022-02-02[cmake] cppcheck: add rules to help suppress false positivesLukas Rusak
2022-02-02[cmake] cppcheck: remove WORKING_DIRECTORY and folder (we use ↵Lukas Rusak
compile_commands.json)
2022-02-02[cmake] cppcheck: remove conflicting switchesLukas Rusak
2022-02-02[cmake] cppcheck: remove uneeded template switchLukas Rusak
2022-02-01[cmake] remove -Wno-deprecated-copyLukas Rusak
2022-01-24[cmake] add URL_HASH to ExternalProject_add calls in Find modulesfuzzard
Provides a SHA512 hash to our possible "Internal" depends to verify download of tarballs. Implementation currently supports SHA256, SHA512 and any additional cmake supported algo's can be implemented easily. This supports differing supported hash types per dependency if desired, so if a new algo is introduced for a particular dependency, we dont have to mass change all other existing hash types.
2022-01-24[cmake] change ARCHIVE to LIBNAME_ARCHIVEfuzzard
Findlibdvd does 3 dependencies in the single find module. Facilitate this by setting ARCHIVE to be LIBNAME_ARCHIVE instead to allow differentiation for multiple calls in the single Find module.
2022-01-17[cmake] set TARBALLS_DIR for overriding tarball download locationfuzzard
TARBALL_DIR is set in common Archsetup after the load of platform archsetup. This allows platforms to potentially set a default if not provided, otherwise fallback to a default
2022-01-11[cmake] linux: fix extra warning flags when using clangwsnipex
2022-01-08[cmake] create helper to parse VERSION files for dependenciesfuzzard
Cmake helper function to parse a VERSION file from a dependency Helper sets ARCHIVE, XXX_BASE_URL, XXX_VER to parent scope as parsed from VERSION file of module requested. module_name must match tools/depends/target folder name
2021-12-31Merge pull request #20719 from lrusak/werror-changesLukas Rusak
[cmake] add Wextra minus a few warnings
2021-12-29[cmake] remove old static analysis methodsLukas Rusak
2021-12-29[cmake] add targets for cppcheck and clang-tidyLukas Rusak
2021-12-25[cmake] allow building with -Wnon-virtual-dtorLukas Rusak
2021-12-25[cmake] enable -Wextra and disable a few warning that it enablesLukas Rusak
2021-12-20Revert "Revert "Merge pull request #18403 from lrusak/cpp17""Lukas Rusak
This reverts commit bd6818f1975ef4665d2319b482460f64aa4ae277. This also includes a fix for the following: CLog: fix SPDLOG_LEVEL_NAMES to allow compiling Otherwise the following error occurs: xbmc/utils/log.h:12:89: error: ‘constexpr fmt::v8::basic_string_view<Char>::basic_string_view(const Char*) [with Char = char]’ called in a constant expression 12 | #define SPDLOG_LEVEL_NAMES {"TRACE", "DEBUG", "INFO", "WARNING", "ERROR", "FATAL", "OFF"}; | ^ In file included from /usr/include/fmt/format.h:44, from xbmc/utils/StringUtils.h:37, from xbmc/utils/log.h:19, /usr/include/fmt/core.h:460:3: note: ‘constexpr fmt::v8::basic_string_view<Char>::basic_string_view(const Char*) [with Char = char]’ is not usable as a ‘constexpr’ function because: 460 | basic_string_view(const Char* s) : data_(s) { | ^~~~~~~~~~~~~~~~~ /usr/include/fmt/core.h:460:3: error: member ‘fmt::v8::basic_string_view<char>::size_’ must be initialized by mem-initializer in ‘constexpr’ constructor /usr/include/fmt/core.h:439:10: note: declared here 439 | size_t size_; | ^~~~~
2021-12-18Merge pull request #20665 from lrusak/werror-changesLukas Rusak
[cmake] use -Werror for double-promotion, missing-field-initializers, and sign-compare
2021-12-14[cmake] add -Wsign-compare warningLukas Rusak
2021-12-14[cmake] clean up compile optionsLukas Rusak
2021-12-14[cmake] allow specifying compile options for core units onlyLukas Rusak
2021-12-11[cmake] add clang-tidy support for androidRechi
2021-11-30[android] use gradle to sign rather than explicit jarsigner/apksignerfuzzard
2021-11-30[tools/android/packaging] update gradlefuzzard
2021-11-19[tools/depends] android 28.0+ uses d8 instead of dxfuzzard
2021-11-17Fix various typos in docs, user-facing code, and source commentsluz paz
Found via `codespell -q 3 -S *.po,./lib/libUPnP/Neptune -L bloaded,busses,inout,lod,medias,parm`
2021-11-13Merge pull request #20501 from Chicopower/uwpxboxaddonspythonfixthexai
Fix issue 20421 - UWP Xbox Python add-ons permission error
2021-11-12Install KodiConfig.cmake to arch-specific pathVasyl Gello
Hugh Cole-Baker reported the issue with incorrect placement of KodiConfig.cmake (that contains architecture-dependent paths) into arch-independent /usr/share/kodi/cmake as Debian Bug #999482: https://bugs.debian.org/999482 The fix also needs changing the PPA packaging filed in a separate PR. Signed-off-by: Vasyl Gello <vasek.gello@gmail.com>
2021-11-11Fix issue 20421 - UWP Xbox Python add-ons permission errorChicopower
2021-11-06[cmake] fix vdpau/glx build with multiple window systemsLukas Rusak
2021-11-03Split TexturePacker executed during build and shippedVasyl Gello
Before this commit, shippable TexturePacker is not built at all if: * the pre-built TexturePacker is supplied by -DWITH_TEXTUREPACKER * build is KODI_DEPENDSBUILD * building for Windows This breaks generation of kodi-tools-texturepacker package on Linux and FreeBSD if cross-compiling. The new commit separates installable and executable TexturePackers. Executable TexturePacker is executed on all platforms, but it can be overriden by a binary specified by KODI_DEPENDSBUILD or WITH_TEXTUREPACKER options on non-depends build. Installable TexturePacker is shipped only on Linux and FreeBSD platforms, and is executed only if the build is not a cross-compilation and the executable TexturePacker not overridden by one of the options above. If external TexturePacker is specified WITH_TEXTUREPACKER but its executable file can not be found, a warning is raised and the module falls back to build internal TexturePacker if it can be executed during the build. Signed-off-by: Vasyl Gello <vasek.gello@gmail.com>
2021-10-29Rename installable TexturePacker and JsonSchemaBuilderVasyl Gello
... to kodi-TexturePacker and kodi-JsonSchemaBuilder. These names are less generic and will less likely cause conflicts in /usr/bin. Signed-off-by: Vasyl Gello <vasek.gello@gmail.com>
2021-10-28Merge pull request #20352 from AlwinEsch/cleanup-bin-addon-cmakeAlwin Esch
[addons][binary] First automation support part
2021-10-20Merge pull request #20294 from lrusak/split-gluLukas Rusak
[cmake] split glu dependency into it's own module
2021-10-21[addons][cmake] Clean up addon header CMakeLists.txtAlwin Esch
Previously, "core_add_library" was used which, once referring to library by name, and on the other hand always had the path as "addons_kodi-dev-kit_include_ *" in it. This adds a new CMake function with which it is done via "core_add_devkit_header". The difference is that this checks on "ENABLE_STATIC_LIBS" and always adds "addons_kodi-dev-kit_include_" as begin. The following background is behind it: - So that the kodi-dev-kit path is not set in its parts (here CMakeLists.txt) and the folder can simply be moved to another location. - The "core_add_devkit_header" could possibly be replaced with another function if kodi-dev-kit were used independently of Kodi. - Better to use with auto scripts The other `if (HEADERS)` has the background if inline cmake calls were integrated into it and HEADERS would be given as empty.
2021-10-20Merge pull request #20345 from aurel32/riscv64Vasyl Gello
[cmake] add support for riscv64 in ArchSetup.cmake
2021-10-20Merge pull request #20331 from basilgello/debian-patchesVasyl Gello
Upstreamed Debian patches
2021-10-19Allow overriding APP_PACKAGEVasyl Gello
Fixes Flatpak manifest issue. Signed-off-by: Vasyl Gello <vasek.gello@gmail.com>
2021-10-19[cmake] add support for riscv64 in ArchSetup.cmakeAurelien Jarno