mgerhardy / caveexpress

CaveExpress is a classic 2D platformer with physics-based gameplay and dozens of levels. CavePacker is a Sokoban game.
http://www.caveproductions.org/
Other
144 stars 20 forks source link

COMMON: Macro for a shared PKGDATADIR + project suffix #98

Closed akien-mga closed 8 years ago

akien-mga commented 8 years ago

To package caveexpress, cavepacker and miniracer without having to rebuild the whole engine three times, a CMake option coupled with a C++ macro would be useful so that PKGDATADIR can be defined to /usr/share/games, and the full path to the game's data would be generated at runtime as done in this Debian patch (from @apoleon): https://sources.debian.net/src/caveexpress/2.4%2Bgit20160609-2/debian/patches/dataDir.patch

I'm raising this issue to have your opinion about this instead of providing a patch myself, as you might have an idea about how to make this while fitting your current design.

akien-mga commented 8 years ago

Nevermind, it was already fixed in master with 522b223.