xbmc/kodi-deps

Name: kodi-deps

Owner: Team Kodi

Description: Build files for windows libs

Created: 2016-07-07 12:42:25.0

Updated: 2018-04-23 19:58:37.0

Pushed: 2018-04-25 18:31:37.0

Homepage:

Size: 618

Language: CMake

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

Kodi Dependencies for Windows (32 and 64 Bit)

How to build already added dependencies
  1. check if you have patch.exe in your PATH
  2. create a build directory
  3. run cmake in it
  4. 64 Bit: cmake -G "Visual Studio 14 Win64" ..
  5. 32 Bit: cmake -G "Visual Studio 14" ..
  6. If you want to build both you need to set PREFIX for at least one as they otherwise get installed in the same directory
  7. open the KodiDependencies Visual Studio Solution
  8. set build mode to RelWithDebInfo
  9. select the dependency, right click build
  10. some dependencies need to be compiled additionally in Debug mode
  11. go to package directory copy the needed dependency folder add version number and arch at the end
  12. pack the folder with 7-Zip
  13. upload it to mirrors and adjust the files in Kodi
How to add a new dependency
  1. open CMakeLists.txt
  2. add the following template and add the missing values
  3. DOWNLOAD_NAME, BUILD_COMMAND is not needed in most cases and can be removed
  4. If the package has dependencies add them at DEPENDS otherwise remove the line For every dependency you need to add %3B%3B${PREFIX}/<DEPENDS-NAME> at the end of CMAKE_INSTALL_PREFIX
  5. If the source code needs to be patched save the patch at patches/<NAME>.diff otherwise remove the line
  6. Additionally cmake arguments can be added after CMAKE_INSTALL_PREFIX
rnalProject_Add(<NAME>
DOWNLOAD_NAME <DOWNLOAD_NAME>
DEPENDS <DEPENDS>
DOWNLOAD_DIR ${CMAKE_SOURCE_DIR}/downloads
URL <URL>
URL_HASH SHA256=<SHA256-HASH>
PATCH_COMMAND ${PATCH} -p1 -i ${CMAKE_SOURCE_DIR}/patches/$(TargetName).diff
BUILD_COMMAND <BUILD-COMMAND>
CMAKE_ARGS
    ${ADDITIONAL_ARGS}
    -DCMAKE_INSTALL_PREFIX:PATH=${INSTALL_PREFIX}

How to bump version for a dependency
  1. open CMakeLists.txt
  2. update the corresponding ExternalProject_Add and patches/<NAME>.diff

This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.