Skip to content
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

Merged
merged 2 commits into from Nov 11, 2015
Merged

Enable relocatable linux builds #3247

merged 2 commits into from Nov 11, 2015

Conversation

strycore
Copy link
Contributor

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.

@@ -147,6 +147,8 @@ std::string GetBundleDirectory();

#ifdef _WIN32
std::string &GetExeDirectory();
#else
std::string &GetExeDirectory();
#endif

This comment was marked as off-topic.

@BhaaLseN
Copy link
Member

@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.

This comment was marked as off-topic.

This comment was marked as off-topic.

This comment was marked as off-topic.

This comment was marked as off-topic.

This comment was marked as off-topic.

@degasus
Copy link
Member

degasus commented Nov 11, 2015

LGTM

degasus added a commit that referenced this pull request Nov 11, 2015
Enable relocatable linux builds
@degasus degasus merged commit 8924980 into dolphin-emu:master Nov 11, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
7 participants