Implement relocatable builds on Linux

- Change the path of the Sys folder to the executable's location
- Add LINUX_LOCAL_DEV flag to use relocatable version on Linux
- Add CMake definition for relocatable build
This commit is contained in:
Mathieu Comandon
2015-11-07 10:50:47 -08:00
parent 973118511a
commit f2ae1a2545
4 changed files with 20 additions and 6 deletions

View File

@ -32,7 +32,7 @@
#endif
// Shared data dirs (Sys and shared User for Linux)
#ifdef _WIN32
#if defined(_WIN32) || defined(LINUX_LOCAL_DEV)
#define SYSDATA_DIR "Sys"
#elif defined __APPLE__
#define SYSDATA_DIR "Contents/Resources/Sys"