GithubHelp home page GithubHelp logo

kodi-deps's Introduction

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
    • 64 Bit: cmake -G "Visual Studio 14 Win64" ..
    • 32 Bit: cmake -G "Visual Studio 14" ..
    • If you want to build both you need to set PREFIX for at least one as they otherwise get installed in the same directory
  4. open the KodiDependencies Visual Studio Solution
  5. set build mode to RelWithDebInfo
  6. select the dependency, right click build
  7. some dependencies need to be compiled additionally in Debug mode
  8. go to package directory copy the needed dependency folder add version number and arch at the end
  9. pack the folder with 7-Zip
  10. 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
    • DOWNLOAD_NAME, BUILD_COMMAND is not needed in most cases and can be removed
    • 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>/${KODI_PATH} at the end of CMAKE_INSTALL_PREFIX
    • If the source code needs to be patched save the patch at patches/<NAME>.diff otherwise remove the line
    • Additionally cmake arguments can be added after CMAKE_INSTALL_PREFIX
ExternalProject_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

kodi-deps's People

Contributors

ace20022 avatar paxxi avatar rechi avatar

Watchers

 avatar  avatar

Forkers

koying

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.