diff --git a/source/Steamworks_gml/extensions/steamworks/steamworks_linux/build_linux64.sh b/source/Steamworks_gml/extensions/steamworks/steamworks_linux/build_linux64.sh index 8350fa7..a17ae50 100644 --- a/source/Steamworks_gml/extensions/steamworks/steamworks_linux/build_linux64.sh +++ b/source/Steamworks_gml/extensions/steamworks/steamworks_linux/build_linux64.sh @@ -12,15 +12,15 @@ echo Steam RT? "$YYSTEAMRT" if "$YYCOMPILER" -m64 \ -Wno-invalid-offsetof \ -std=c++17 \ - ../Steamworks_cpp/*.cpp \ - ../Steamworks_cpp/GMLSteam/steam_*.cpp \ + Steamworks_gml/extensions/steamworks/steamworks_cpp/*.cpp \ + Steamworks_gml/extensions/steamworks/steamworks_cpp/GMLSteam/steam_*.cpp \ -Wl,-rpath,assets/ -fPIC \ - -L../../../../Steamworks_sdk/redistributable_bin/linux64 \ + -LSteamworks_sdk/redistributable_bin/linux64 \ -lsteam_api \ - -I../../../../Steamworks_sdk/public/steam \ - -I../../../../Steamworks_vs/Steamworks/GMLSteam/ \ - -I../Steamworks_cpp/ \ - -shared -o ../Steamworks.so; + -ISteamworks_sdk/public/steam \ + -ISteamworks_gml/extensions/steamworks/steamworks_cpp/GMLSteam/ \ + -ISteamworks_gml/extensions/steamworks/steamworks_cpp/ \ + -shared -o Steamworks_gml/extensions/steamworks/Steamworks.so; then echo "BUILD SUCCESS"; else diff --git a/source/Steamworks_gml/extensions/steamworks/steamworks_linux/slr_build_linux64.sh b/source/Steamworks_gml/extensions/steamworks/steamworks_linux/slr_build_linux64.sh index 3d4aea0..5417408 100644 --- a/source/Steamworks_gml/extensions/steamworks/steamworks_linux/slr_build_linux64.sh +++ b/source/Steamworks_gml/extensions/steamworks/steamworks_linux/slr_build_linux64.sh @@ -1,14 +1,14 @@ #!/bin/bash # This script will run the original build script in a Steam Linux Runtime environment # You are free to change these: -BUILD_DIR="$PWD" +BUILD_DIR="$PWD/../../../../" STEAMRT_SDK_DIR="/opt/steam-runtime" # Do the magic echo Build dir: "$BUILD_DIR" echo SteamRT SDK dir: "$STEAMRT_SDK_DIR" echo Starting build... cd "$BUILD_DIR" -unshare -mUprf sh -c 'mount -o bind "$1" "$2/tmp" && chroot "$2" sh -c "cd /tmp && chmod a+x -R . && export YYSTEAMRT=1 && ./build_linux64.sh"' -- "$BUILD_DIR" "$STEAMRT_SDK_DIR" +unshare -mUprf sh -c 'mount -o bind "$1" "$2/tmp" && chroot "$2" sh -c "cd /tmp && chmod a+x -R . && export YYSTEAMRT=1 && Steamworks_gml/extensions/steamworks/steamworks_linux/build_linux64.sh"' -- "$BUILD_DIR" "$STEAMRT_SDK_DIR" echo Exit code is $?