aboutsummaryrefslogtreecommitdiff
path: root/cmake
AgeCommit message (Collapse)Author
2021-11-09Controllers: Refactor input code into new subdirGarrett Brown
2021-11-06[cmake] fix vdpau/glx build with multiple window systemsLukas Rusak
2021-11-06[cmake] glx: remove unneeded imported targetLukas Rusak
2021-11-06[cmake] glx: find glx library instead of glLukas 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-11-01Fix "*-EXECUTABLE_NOTFOUND" if absolute path to file specifiedVasyl Gello
Fixes broken handling of WITH_* CMake configuration options: * find_program expects directory in PATHS and HINTS while WITH_* option is an absolute path to file. * PATHS in find_program is the last resort option which declares hardcoded guesses utilized after all cached paths, then directories specified by HINTS. This commit splits the full pathname to directory and filename then "searches" the filename in the directory, confirming file exists there and is executable. 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-26[auto][addons] devkit script update (26/10/2021 16:26:03)Alwin Esch
This commit automatic generated by script 'xbmc/addons/kodi-dev-kit/tools/code-generator.py'. Used call options: {'force': False, 'debug': False, 'commit': True} Generate cmake parts... [26/10/2021 16:26:01] Generate CMakeLists.txt files in xbmc/addons/kodi-dev-kit/include/kodi dirs: See below [26/10/2021 16:26:01] - Check xbmc/addons/kodi-dev-kit/include/kodi/CMakeLists.txt: Updated [26/10/2021 16:26:01] - Check xbmc/addons/kodi-dev-kit/include/kodi/addon-instance/CMakeLists.txt: Updated [26/10/2021 16:26:01] - Check xbmc/addons/kodi-dev-kit/include/kodi/addon-instance/inputstream/CMakeLists.txt: Updated [26/10/2021 16:26:01] - Check xbmc/addons/kodi-dev-kit/include/kodi/addon-instance/peripheral/CMakeLists.txt: Updated [26/10/2021 16:26:01] - Check xbmc/addons/kodi-dev-kit/include/kodi/addon-instance/pvr/CMakeLists.txt: Updated [26/10/2021 16:26:01] - Check xbmc/addons/kodi-dev-kit/include/kodi/c-api/CMakeLists.txt: Updated [26/10/2021 16:26:01] - Check xbmc/addons/kodi-dev-kit/include/kodi/c-api/addon-instance/CMakeLists.txt: Updated [26/10/2021 16:26:01] - Check xbmc/addons/kodi-dev-kit/include/kodi/c-api/addon-instance/inputstream/CMakeLists.txt: Updated [26/10/2021 16:26:01] - Check xbmc/addons/kodi-dev-kit/include/kodi/c-api/addon-instance/pvr/CMakeLists.txt: Updated [26/10/2021 16:26:01] - Check xbmc/addons/kodi-dev-kit/include/kodi/c-api/gui/CMakeLists.txt: Updated [26/10/2021 16:26:01] - Check xbmc/addons/kodi-dev-kit/include/kodi/c-api/gui/controls/CMakeLists.txt: Updated [26/10/2021 16:26:01] - Check xbmc/addons/kodi-dev-kit/include/kodi/c-api/gui/dialogs/CMakeLists.txt: Updated [26/10/2021 16:26:01] - Check xbmc/addons/kodi-dev-kit/include/kodi/c-api/gui/input/CMakeLists.txt: Updated [26/10/2021 16:26:01] - Check xbmc/addons/kodi-dev-kit/include/kodi/c-api/platform/CMakeLists.txt: Created new [26/10/2021 16:26:01] - Check xbmc/addons/kodi-dev-kit/include/kodi/c-api/platform/android/CMakeLists.txt: (Contains limited OS header: android) Created new [26/10/2021 16:26:01] - Check xbmc/addons/kodi-dev-kit/include/kodi/gui/CMakeLists.txt: Updated [26/10/2021 16:26:01] - Check xbmc/addons/kodi-dev-kit/include/kodi/gui/controls/CMakeLists.txt: Updated [26/10/2021 16:26:01] - Check xbmc/addons/kodi-dev-kit/include/kodi/gui/dialogs/CMakeLists.txt: Updated [26/10/2021 16:26:01] - Check xbmc/addons/kodi-dev-kit/include/kodi/gui/gl/CMakeLists.txt: Updated [26/10/2021 16:26:01] - Check xbmc/addons/kodi-dev-kit/include/kodi/gui/input/CMakeLists.txt: Updated [26/10/2021 16:26:01] - Check xbmc/addons/kodi-dev-kit/include/kodi/platform/CMakeLists.txt: Created new [26/10/2021 16:26:01] - Check xbmc/addons/kodi-dev-kit/include/kodi/platform/android/CMakeLists.txt: (Contains limited OS header: android) Created new [26/10/2021 16:26:01] - Check xbmc/addons/kodi-dev-kit/include/kodi/tools/CMakeLists.txt: Updated [26/10/2021 16:26:01] Check for cmake/treedata/common/addon_dev_kit.txt: Created new Git update... [26/10/2021 16:26:01] Perfom GIT update check: See below [26/10/2021 16:26:01] - Changed file cmake/treedata/common/addon_dev_kit.txt: Updated [26/10/2021 16:26:01] - Changed file xbmc/addons/kodi-dev-kit/include/kodi/CMakeLists.txt: Updated [26/10/2021 16:26:01] - Changed file xbmc/addons/kodi-dev-kit/include/kodi/addon-instance/CMakeLists.txt: Updated [26/10/2021 16:26:01] - Changed file xbmc/addons/kodi-dev-kit/include/kodi/addon-instance/inputstream/CMakeLists.txt: Updated [26/10/2021 16:26:01] - Changed file xbmc/addons/kodi-dev-kit/include/kodi/addon-instance/peripheral/CMakeLists.txt: Updated [26/10/2021 16:26:01] - Changed file xbmc/addons/kodi-dev-kit/include/kodi/addon-instance/pvr/CMakeLists.txt: Updated [26/10/2021 16:26:01] - Changed file xbmc/addons/kodi-dev-kit/include/kodi/c-api/CMakeLists.txt: Updated [26/10/2021 16:26:01] - Changed file xbmc/addons/kodi-dev-kit/include/kodi/c-api/addon-instance/CMakeLists.txt: Updated [26/10/2021 16:26:01] - Changed file xbmc/addons/kodi-dev-kit/include/kodi/c-api/addon-instance/inputstream/CMakeLists.txt: Updated [26/10/2021 16:26:01] - Changed file xbmc/addons/kodi-dev-kit/include/kodi/c-api/addon-instance/pvr/CMakeLists.txt: Updated [26/10/2021 16:26:01] - Changed file xbmc/addons/kodi-dev-kit/include/kodi/c-api/gui/CMakeLists.txt: Updated [26/10/2021 16:26:01] - Changed file xbmc/addons/kodi-dev-kit/include/kodi/c-api/gui/controls/CMakeLists.txt: Updated [26/10/2021 16:26:01] - Changed file xbmc/addons/kodi-dev-kit/include/kodi/c-api/gui/dialogs/CMakeLists.txt: Updated [26/10/2021 16:26:01] - Changed file xbmc/addons/kodi-dev-kit/include/kodi/c-api/gui/input/CMakeLists.txt: Updated [26/10/2021 16:26:01] - Changed file xbmc/addons/kodi-dev-kit/include/kodi/c-api/platform/CMakeLists.txt: Updated [26/10/2021 16:26:01] - Changed file xbmc/addons/kodi-dev-kit/include/kodi/c-api/platform/android/CMakeLists.txt: Updated [26/10/2021 16:26:01] - Changed file xbmc/addons/kodi-dev-kit/include/kodi/gui/CMakeLists.txt: Updated [26/10/2021 16:26:01] - Changed file xbmc/addons/kodi-dev-kit/include/kodi/gui/controls/CMakeLists.txt: Updated [26/10/2021 16:26:01] - Changed file xbmc/addons/kodi-dev-kit/include/kodi/gui/dialogs/CMakeLists.txt: Updated [26/10/2021 16:26:01] - Changed file xbmc/addons/kodi-dev-kit/include/kodi/gui/gl/CMakeLists.txt: Updated [26/10/2021 16:26:01] - Changed file xbmc/addons/kodi-dev-kit/include/kodi/gui/input/CMakeLists.txt: Updated [26/10/2021 16:26:01] - Changed file xbmc/addons/kodi-dev-kit/include/kodi/platform/CMakeLists.txt: Updated [26/10/2021 16:26:01] - Changed file xbmc/addons/kodi-dev-kit/include/kodi/platform/android/CMakeLists.txt: Updated [26/10/2021 16:26:01] - Changed file xbmc/addons/kodi-dev-kit/include/kodi/tools/CMakeLists.txt: Updated [26/10/2021 16:26:01] Perfom GIT commit:
2021-10-26[addons][binary] add initial autogen script partsAlwin Esch
This introduces the first part of the automated dev kit API update system. The background is to concentrate the manual work in the end only on places which really need hand changes and to do everything else automatically with the script. When the larger system comes in, it is extremely helpful by means of a script, because a lot of changes of the same kind come in when changes are made and then become tedious by hand. This smaller commit comes to present my planned style to a manageable extent and hope is acceptable.
2021-10-26[Subtitles][Webvtt] Implemented WebVTT parserCastagnaIT
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-20Add option to use internal or external kissfftVasyl Gello
By default, ENABLE_INTERNAL_KISSFFT is ON for all architectures. It is immutable on non-Unix systems because 'FindKissFFT.cmake' relies on 'pkg-config' tool not available in Windows and Android. If Kodi built with internal kissfft, the corresponding CMake search module sets kissfft's include directory to the copied location created by 'core_add_subdirs_from_filelist' macro expanded from 'cmake/treedata/common/externals.txt'. If Kodi built with system kissfft, the module detects the presence of header files and solib by 'pkg-config' and disables building the 'xbmc/contrib/kissfft' directory. Signed-off-by: Vasyl Gello <vasek.gello@gmail.com>
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
2021-10-18[cmake] split glu dependency into it's own moduleLukas Rusak
2021-10-18Detect and honor big-endian architecturesVasyl Gello
Fixes #19109 CMake detects the endianness using TestBigEndian.cmake module and adds the -DWORDS_BIGENDIAN=${WORDS_BIGENDIAN} definition to architecture-specific definitions. Signed-off-by: Vasyl Gello <vasek.gello@gmail.com>
2021-10-17Merge pull request #20327 from basilgello/fix-cwiid-cmake-warningVasyl Gello
Fix CMake warning about case-sensitive CWiid
2021-10-16Fix CMake warningVasyl Gello
CMake Warning (dev) at /usr/share/cmake-3.21/Modules/FindPackageHandleStandardArgs.cmake:438 (message): The package name passed to `find_package_handle_standard_args` (CWIID) does not match the name of the calling package (CWiid). This can lead to problems in calling code that expects `find_package` result variables (e.g., `_FOUND`) to follow a certain pattern. Call Stack (most recent call first): cmake/modules/FindCWiid.cmake:28 (find_package_handle_standard_args) cmake/scripts/linux/ExtraTargets.cmake:11 (find_package) CMakeLists.txt:447 (include) This warning is for project developers. Use -Wno-dev to suppress it. -- Found CWIID: /usr/lib/libcwiid.so (found version "0.6.00") CMake Warning (dev) at /usr/share/cmake-3.21/Modules/FindPackageHandleStandardArgs.cmake:438 (message): The package name passed to `find_package_handle_standard_args` (CWIID) does not match the name of the calling package (CWiid). This can lead to problems in calling code that expects `find_package` result variables (e.g., `_FOUND`) to follow a certain pattern. Call Stack (most recent call first): cmake/modules/FindCWiid.cmake:28 (find_package_handle_standard_args) tools/EventClients/Clients/WiiRemote/CMakeLists.txt:4 (find_package) This warning is for project developers. Use -Wno-dev to suppress it. Signed-off-by: Vasyl Gello <vasek.gello@gmail.com>
2021-10-17Merge pull request #20142 from razzeee/add-metainfoKolja Lampe
2021-10-16Use APP_PACKAGE instead of APP_NAME_LCRazze
2021-10-16Merge pull request #20169 from CastagnaIT/subtitles_featuresenen92
[Subtitles] Implemented new subtitle features
2021-10-16Merge pull request #20313 from Paxxi/no_permissivePär Björklund
[Windows] Enable /permissive- compiler option
2021-10-15[Subtitles] Implemented new subtitle featuresCastagnaIT
2021-10-15Fix Kodi with /permissive-Pär Björklund
2021-10-03[pvr] Add support for providers and PVR SysInfo Window updates including ↵phunkyfish
groups and providers
2021-09-30[cmake][osx] Remove uneccessary code from osx macrofuzzard
2021-09-30[cmake][osx] support detection of buildsystem for generated script wrapper ↵fuzzard
Macros There is a variation in a cmake generated project for using ENV vars in a generated shell script. Handle this for both the new/legacy xcode build systems
2021-09-27Merge pull request #20167 from fuzzard/cleanup-pythonfuzzard
cleanup - python related modules
2021-09-26Merge pull request #20149 from lrusak/egl-logging-modsLukas Rusak
linux: improve DRM format and modifier logging
2021-09-25[cmake] allow to override PYTHON_EXECUTABLEJernej Skrabec
If Kodi is being build for distro which has different python version than host, PYTHON_EXECUTABLE must be overriden and point to distro version. Otherwise, eventclients will be installed in wrong location and be thus unusable. Use case: Cross compiling Kodi for LibreELEC
2021-09-24[cmake] remove unused installdata item (script.module.pysqlite)fuzzard
2021-09-23DRMHELPERS: add method to get modifier nameLukas Rusak
2021-09-20[osx][windowing] relocate SDL specific code to an SDL folderfuzzard
relocates SDL implementations to a specific SDL folder
2021-09-20[osx] rename SDLMain.h to XBMCApplication.hfuzzard
Header is generic, and will be used for nswindow based osx app
2021-09-20[osx] relocate SDLMain.mmfuzzard
Relocate SDLMain to explicit SDL folder
2021-09-06[cmake][osx] Partial revert - xcode variable usagefuzzard
I changed this as the "new" build system didnt play nice, but i later added a commit to default to the legacy system with xcode 12 still. Because of that, roll this back to the "default" working code for the Legacy build system.
2021-09-01[cmake][tvos] relocate platform specific definefuzzard
2021-09-01[cmake] remove PLATFORM_DEFINES as superfluousfuzzard
PLATFORM_DEFINES was introduced for the rbpi platform. Currently only ios/tvos use this anymore, however the exact defines that are set are already added into ARCH_DEFINES. Remove PLATFORM_DEFINES as superfluous for our needs at this point in time.
2021-09-01[cmake][darwinembedded] shuffle archdefines aroundfuzzard
2021-09-01[cmake][darwinembedded] move GL warning define to OPENGLES_FOUND checkfuzzard
2021-09-01[osx][windowing] split SDL specific inclusion to SDL_FOUNDfuzzard
2021-09-01[cmake] osx dont explicitly set opengl platform_required_depsfuzzard
2021-09-01[cmake] darwinembedded dont explicitly set opengles as platform_required_depfuzzard
2021-09-01[cmake] remove posix main from generic ArchSetup.cmakefuzzard
2021-08-31[cmake] gbm: EGL is only required when using OpenGL or OpenGLESLukas Rusak
2021-08-31Merge pull request #20046 from fuzzard/macosarm_configurefuzzard
Apple Silicon minors