0
0
mirror of https://github.com/libretro/Lakka-LibreELEC.git synced 2024-12-05 02:06:57 +00:00
Lakka-LibreELEC/packages/mediacenter/kodi/patches/kodi-999.20-headers-only.patch
2023-03-10 17:59:27 +01:00

45 lines
1.5 KiB
Diff

--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -47,6 +47,7 @@ include(CMakeDependentOption)
include(cmake/scripts/common/DependencyOptions.cmake)
# general
+option(HEADERS_ONLY "Skip building" OFF)
option(VERBOSE "Enable verbose output?" OFF)
option(ENABLE_CLANGTIDY "Enable clang-tidy support?" OFF)
option(ENABLE_CPPCHECK "Enable cppcheck support?" OFF)
@@ -107,6 +108,7 @@ endif()
core_find_git_rev(APP_SCMID FULL)
+if(NOT HEADERS_ONLY)
# Dynamically loaded libraries built with the project
add_custom_target(${APP_NAME_LC}-libraries)
set(LIBRARY_FILES "" CACHE STRING "" FORCE)
@@ -478,6 +480,7 @@ endif()
if(FFMPEG_CREATE_SHARED_LIBRARY)
set(CMAKE_CXX_CREATE_SHARED_LIBRARY "${FFMPEG_CREATE_SHARED_LIBRARY}")
endif()
+endif()
# Platform specific additional extra targets
if(EXISTS ${CMAKE_SOURCE_DIR}/cmake/scripts/${CORE_SYSTEM_NAME}/ExtraTargets.cmake)
--- a/cmake/scripts/linux/Install.cmake
+++ b/cmake/scripts/linux/Install.cmake
@@ -51,6 +51,7 @@ configure_file(${CMAKE_SOURCE_DIR}/tools
configure_file(${CMAKE_SOURCE_DIR}/tools/Linux/kodi.metainfo.xml.in
${CORE_BUILD_DIR}/${APP_PACKAGE}.metainfo.xml @ONLY)
+if(NOT HEADERS_ONLY)
# Install app
install(TARGETS ${APP_NAME_LC}
DESTINATION ${libdir}/${APP_NAME_LC}
@@ -160,6 +161,7 @@ if(INTERNAL_TEXTUREPACKER_INSTALLABLE)
RENAME "${APP_NAME_LC}-TexturePacker"
COMPONENT kodi-tools-texturepacker)
endif()
+endif()
# Install kodi-addon-dev headers
include(${CMAKE_SOURCE_DIR}/xbmc/addons/AddonBindings.cmake)