4 ms·
Yes. Cross-compilation of existing packets has proven to be a nightmare with cmake. I have to override manually CMAKE_C_COMPILER, CMAKE_CXX_COMPILER ... Have
by Ace17 11y ago
Yes.
Cross-compilation of existing packets has proven to be a nightmare with cmake. I have to override manually CMAKE_C_COMPILER, CMAKE_CXX_COMPILER ...
Have a look at zenbuild, which is a toy-project of mine trying to homogeneize the build interface of many FOSS projects.
Each packet get its script (ala PKGBUILD), it can be seen as a list of hacks around the quirks of each project's build system.
Projects using autoconf are a breeze to build:
https://github.com/Ace17/zenbuild/blob/master/zen-libxau.sh https://github.com/Ace17/zenbuild/blob/master/zen-libxau.sh
But projects using cmake are another story:
https://github.com/Ace17/zenbuild/blob/master/zen-x265.sh https://github.com/Ace17/zenbuild/blob/master/zen-x265.sh