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

@ -145,9 +145,7 @@ std::string GetSysDirectory();
std::string GetBundleDirectory();
#endif
#ifdef _WIN32
std::string &GetExeDirectory();
#endif
bool WriteStringToFile(const std::string& str, const std::string& filename);
bool ReadFileToString(const std::string& filename, std::string& str);