Skip to content

Commit

Permalink
Updated Linux compilation scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
Francisco Dias committed May 21, 2024
1 parent 8fdd696 commit c2f58b0
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
@@ -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 $?

0 comments on commit c2f58b0

Please sign in to comment.