Join GitHub today
[cmake] Change the way how shared libraries are built #10130
This is the main prerequisites to make the VS and Xcode projects more usable. I haven't found a better way than getting rid of the static libs per directory and build kodi in one go. My plan is to change
The main change is cbafd20. Even though it contains a few things that are independent, most of the things are somehow connected, so I put it in one commit for simplicity. @hudokkow, @notspiff: Could you review this please?
Tested for Linux, OSX (GNU Makefiles) and Android (GNU Makefiles). More testing needed for Windows (NMake and VS), OSX (Xcode) and Ninja generators.
The PR includes also a few minor changes and improvements. d0befd2 is certainly not the best way to do it, because the addon build system is also CMake based. I've mainly done it now for testing so that I can locally build osx and android packages that contain a few binary addons to see if the libraries still load fine after installation.
3 times, most recently
Jul 19, 2016
Tested on all platforms now. Windows works as well, due to @Paxxi's wdt/depends fixes. If there are no objections, I'll merge it tomorrow.
@hudokkow: as discussed, I've removed the generator expressions for the libs again because we cannot get the relative directories at configure time. That also makes the android bundle target a bit easier again.