New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Enable relocatable linux builds #3247
Conversation
| @@ -147,6 +147,8 @@ std::string GetBundleDirectory(); | |||
|
|
|||
| #ifdef _WIN32 | |||
| std::string &GetExeDirectory(); | |||
| #else | |||
| std::string &GetExeDirectory(); | |||
| #endif | |||
This comment was marked as off-topic.
This comment was marked as off-topic.
Sorry, something went wrong.
|
@dolphin-emu-bot rebuild I believe you could squash a few of those commits, but other than that I guess its ready. |
- 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
| # Add an option to build relocatable binaries on Linux | ||
| # The Sys folder will need to be copied to the Binaries folder. | ||
| if(UNIX) | ||
| add_definitions(-DLINUX_LOCAL_DEV=0) |
This comment was marked as off-topic.
This comment was marked as off-topic.
Sorry, something went wrong.
This comment was marked as off-topic.
This comment was marked as off-topic.
Sorry, something went wrong.
This comment was marked as off-topic.
This comment was marked as off-topic.
Sorry, something went wrong.
This comment was marked as off-topic.
This comment was marked as off-topic.
Sorry, something went wrong.
This comment was marked as off-topic.
This comment was marked as off-topic.
Sorry, something went wrong.
This comment was marked as off-topic.
This comment was marked as off-topic.
Sorry, something went wrong.
This comment was marked as off-topic.
This comment was marked as off-topic.
Sorry, something went wrong.
|
LGTM |
Enable relocatable linux builds
This patch allows to build Dolphin on Linux so that it will look for the "Sys" folder where the executable is located, making it possible to run it from anywhere in the filesystem.
For this functionality to work, the LINUX_LOCAL_DEV flag has to be set, otherwise it will keep the default behavior.