aboutsummaryrefslogtreecommitdiff
path: root/cmake/scripts
AgeCommit message (Collapse)Author
2022-08-03Merge pull request #21669 from basilgello/unpin-local-tarballsVasyl Gello
2022-08-02CMake:‌ Allow overriding the hashsums of local tarballVasyl Gello
The local tarballs specified via custom MODULE_URL can be different from what is pinned in 'tools/depends/target/*/*-VERSION' files. This manifested during preparation of 20.0 Alpha 2 build in Debian where libdvd* tarballs are custom. Now specifying MODULE_HASH along with MODULE_URL works as expected. Signed-off-by: Vasyl Gello <vasek.gello@gmail.com>
2022-07-13Merge pull request #21666 from bkuhls/cross_host_can_execute_targetWolfgang Schupp
[cmake] Allow specifying HOST_CAN_EXECUTE_TARGET
2022-07-12[cmake] Allow specifying HOST_CAN_EXECUTE_TARGETBernd Kuhls
Executing the target binary will not work when cross-compiling to a uClibc-based target on a glibc-based host. https://github.com/xbmc/xbmc/commit/b9a0c7b1f402613e96876ccfec316831801352bd broke cross-compiling in this case: -- Found Python3: /home/buildroot/buildroot/output/per-package/kodi/host/x86_64-buildroot-linux-uclibc/sysroot/usr/include/python3.10 (found suitable exact version "3.10.5") found components: Development Development.Module Development.Embed -- Could NOT find Python3 (missing: Interpreter) (Required is exact version "3.10") Reason given by package: Interpreter: Cannot run the interpreter "/home/buildroot/buildroot/output/per-package/kodi/host/x86_64-buildroot-linux-uclibc/sysroot/usr/bin/python3.10" $ file /home/buildroot/buildroot/output/per-package/kodi/host/x86_64-buildroot-linux-uclibc/sysroot/usr/bin/python3.10 /home/buildroot/buildroot/output/per-package/kodi/host/x86_64-buildroot-linux-uclibc/sysroot/usr/bin/python3.10: ELF 64-bit LSB pie executable, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib/ld64-uClibc.so.0, not stripped This patch allows to force -DHOST_CAN_EXECUTE_TARGET=FALSE to avoid executing the target version of python3 although the host version was set in configure options: -DPYTHON_EXECUTABLE=/home/buildroot/buildroot/output/per-package/kodi/host/bin/python3.10 $ file /home/buildroot/buildroot/output/per-package/kodi/host/bin/python3.10 /home/buildroot/buildroot/output/per-package/kodi/host/bin/python3.10: ELF 64-bit LSB pie executable, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, BuildID[sha1]=0502eef4c126feb4162aea6d36f321387f2a58fc, for GNU/Linux 3.2.0, with debug_info, not stripped
2022-07-11[cmake] fix blacklisted files regexenen92
2022-06-27[cmake] EFFECTIVE_PLATFORM_NAME workaround no longer neededfuzzard
EFFECTIVE_PLATFORM_NAME platform functions with current tools/depends cmake version 3.21.3. The workaround actually causes cmake targets to be incorrectly applied and generated, so remove.
2022-06-25[cmakebuildsys] disable xcode legacy buildsystemfuzzard
2022-06-25[cmake] modulehelper set default generator for VS/xcode externalproject_add ↵fuzzard
calls
2022-06-25[cmake] modulehelper safety variable cleanupfuzzard
2022-06-22[cmake] modulehelper create macro to unset generic build variablesfuzzard
2022-06-21[cmake] standardise on DEPENDS_PATH for all platformsfuzzard
windows used a different name, so bring it inline with other platforms
2022-06-19[cmake] refactor module helpers function/macrosfuzzard
generalise functions/macros further to more easily accommodate the difference between a native and a target lib/tool and the relevant source locations extract download/url steps from externalproject_add to allow override of in-tree source step. update comments
2022-06-17[cmake] split flatbuffers buildtool (flatc) and target headers find modulesfuzzard
2022-06-17[cmake] modulehelpers allow setting GENERATOR for externalproject_add callfuzzard
2022-06-17[cmake] windows create NATIVEPREFIX variablefuzzard
2022-06-17[cmake] modulehelpers extend more overrides of variablesfuzzard
2022-06-17[cmake] move host tool find modules to buildtools folder - Nasmfuzzard
2022-06-17[cmake] modulehelper create generate_patchcommand functionfuzzard
refactor patch handling to deal with windows/unix differences and find patch module
2022-06-02[cmake] refactor BUILD_DEP_TARGET to utilise generator expressionsfuzzard
2022-06-02[cmake] pass cmake_prefix_path through to internaldep build functionfuzzard
Prepend depends_path to cmake_prefix_path for find_package/program/etc calls to search our depends_path first Pass through cmake_prefix_path to internal build functions for cmake based build systems
2022-06-02[cmake] Remove default DEBUG_POSTFIX for ArchSetupfuzzard
remove arch based DEBUG_POSTFIX. turns out we are better to have the individual lib builds to define a postfix when appropriate.
2022-06-02[cmake] BUILD_DEP_TARGET set BYPRODUCT for cmake based buildsfuzzard
Required to make ninja play nice when using ENABLE_INTERNAL_<LIB>
2022-05-25[cmake] ENABLE_INTERNAL_TAGLIB to build taglib internallyfuzzard
2022-05-25Merge pull request #21436 from fuzzard/cmake_findpatchfuzzard
[cmake] Flesh out FindPatch module for windows use
2022-05-25[cmake] fixup buildtype after #21043fuzzard
set default postfix for all android libs (similar to apple) if <MODULE>_RELEASE_TYPE is forced, remove the alternative <MODULE>_LIBRARY_<TYPE> build can now handle crossguid -dbg postfix, so allow it.
2022-05-24[cmake] Flesh out FindPatch module for windows usefuzzard
Windows we want to preference git patch, so adapt find module to check specifically for it. Update other find modules importing FindPatch.cmake to actual find_package calls
2022-05-23[cmake] BUILD_DEP_TARGET Provide buildtype for cmake buildfuzzard
Provides build_type to internal build targets that use cmake. Allows a target to override (set <MODULE>_BUILD_TYPE) or to use the projects build type
2022-05-22Merge pull request #21332 from fuzzard/cmake_prefixfuzzard
[cmake] Assorted cmake fixes regarding Find Modules
2022-05-14Merge pull request #21377 from thexai/fix-cmake-patchthexai
[Windows] fix cmake find patch executable (prioritize use Git patch.exe)
2022-05-14[Windows] fix cmake find patch executable (prioritize use Git patch.exe)thexai
2022-05-12[macOS][iOS] Add speech recognition service implementation.Kai Sommerfeld
2022-05-09[Android] Speech to text on search dialog.Kai Sommerfeld
2022-04-30[cmake] refactor CMAKE_INSTALL_PREFIX into BUILD_DEP_TARGET macrofuzzard
set CMAKE_INSTALL_PREFIX in BUILD_DEP_TARGET, and use DEPENDS_PATH for location
2022-04-30[cmake] rename function get_archive_name to get_versionfile_datafuzzard
rename to reflect current usage. Old name was from my initial implementation and it no longer reflects what the function does.
2022-04-30[cmake][android] set prefix to DEPENDS_PATHfuzzard
DEPENDS_PATH is set in toolchain by using --prefix. lets use that as thats where all dependencies built using tools/depends are installed.
2022-04-30[cmake] typo fixup.fuzzard
2022-04-30[Android][CMake] Escape custom_target commandsHuang, Zhaoquan
Android add_custom_target commands are called with VERBATIM option to escape the commands and options. This fixes shell syntax error when PATH contains parentheses.
2022-04-29[cmake] Tools/depends platform toolchain propagate tarball dirfuzzard
for tools/depends platforms, we already set tarball dir as part of the configure script. Lets propagate this into the Toolchain file so we dont have to explicitly set -DTARBALL_DIR for those platforms. The single downside to this, is you cant override the toolchain option. However the reality is, you should override the configure script using --with--tarballs
2022-04-29[cmake][android] cleanup packaging make targets after PR #20599fuzzard
2022-04-29Merge pull request #21321 from taoyouh/fix-path-spacefuzzard
[Android][CMake] Fix custom_target commands when PATH has spaces
2022-04-28[cmake] rename CORE_HOST_IS_TARGET to HOST_CAN_EXECUTE_TARGETfuzzard
We are now in a time where some platforms/archs can execute "foreign" (x86_64) arch code locally (Apple via Rosetta, Windows on arm). Rename CORE_HOST_IS_TARGET to HOST_CAN_EXECUTE_TARGET to allow platforms ArchSetup to set and therefore execute tests if desired.
2022-04-28[Android][CMake] Fix custom_target commands when PATH has spacesHuang, Zhaoquan
Currently, when the PATH environment contains a space, CMake will quote the entire "PATH=/xxx:/xxx" and bash will not recognize this. The patch uses "env" command instead so that the quoted "PATH=/xxx:/xxx" can be recognized.
2022-04-20Merge pull request #21273 from fuzzard/depends_libandroidjnifuzzard
[cmake] build libandroidjni via cmake build
2022-04-18[cmake] build libandroidjni as cmake dependencyfuzzard
dont use tools/depends for libandroidjni. build via cmake find module as a required_platform_dep
2022-04-16[android] remove checks for unused tools aapt/dx/d8/zipalignfuzzard
Usage of the 3 explicit tools is no longer used, and gradle is used for all build steps that were once done explicitly by these tools. No need to keep checks, leave that to gradle internally.
2022-04-13Merge pull request #20506 from basilgello/kodiconfig-cmake-nexusVasyl Gello
Install KodiConfig.cmake to arch-specific path
2022-04-13Merge pull request #20985 from fitzsim/support-ppc64leVasyl Gello
Add support for ppc64le in ArchSetup.cmake
2022-04-02[cmake] extract common CMAKE_INSTALL_LIBDIR to all cmake based internal dep ↵fuzzard
builds
2022-03-24[cmake] BUILD_DEP_TARGET add DEP_BUILDENV to CONFIGURE_COMMAND invocationsfuzzard
Sets environment variables for autoconf based build systems for externalproject_add build of a dependency
2022-03-21[cmake] rework DEBUG_POSTFIX usage in SETUP_BUILD_VARS macrofuzzard