From e73596fd57eb997c6dcbc766428fdade875341b4 Mon Sep 17 00:00:00 2001 From: TheBrokenRail Date: Thu, 17 Jun 2021 20:54:35 -0400 Subject: [PATCH] Fix Location Of EGL Stub When Using Media Layer Proxy --- docs/INSTALL.md | 2 +- media-layer/stubs/CMakeLists.txt | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/docs/INSTALL.md b/docs/INSTALL.md index 199193226..6d615cca2 100644 --- a/docs/INSTALL.md +++ b/docs/INSTALL.md @@ -10,7 +10,7 @@ minecraft-pi-reborn-_X.Y.Z~_ ### Picking A Variant * ``client``: Client mode, use this if you want to play MCPI -* ``server``: Server mode, use this if you want to host an MCPI server +* ``server``: Server mode, use this if you want to host a dedicated MCPI server ### Picking A Distribution This specifies which version of Debian MCPI-Reborn was built against. Which one you should use depends on your current distribution. If your distribution supports it, you should use ``bullseye`` for better mouse sensitivity. diff --git a/media-layer/stubs/CMakeLists.txt b/media-layer/stubs/CMakeLists.txt index e62dbf216..4066efa0b 100644 --- a/media-layer/stubs/CMakeLists.txt +++ b/media-layer/stubs/CMakeLists.txt @@ -15,7 +15,11 @@ if(BUILD_ARM_COMPONENTS) add_library(EGL SHARED src/EGL.c) target_link_libraries(EGL reborn-headers media-layer-headers) # Install - install(TARGETS EGL DESTINATION "${MCPI_FALLBACK_LIB_DIR}") # Place At The End Of LD_LIBRARY_PATH + if(MCPI_SERVER_MODE OR MCPI_USE_MEDIA_LAYER_PROXY) + install(TARGETS EGL DESTINATION "${MCPI_LIB_DIR}") + else() + install(TARGETS EGL DESTINATION "${MCPI_FALLBACK_LIB_DIR}") # Place At The End Of LD_LIBRARY_PATH + endif() # Install GLESv1_CM Stubs In Server Mode if(MCPI_SERVER_MODE)