Cocktail Frank
5a39c3fa82
- Include steam_api_flat.h alongside steam_api.h because of incompatibility between MinGW (used by this project) and MSVC (used by Valve to build the Steam API DLL). - Add call for shutting down the Steam API - Move Steam API headers into a subfolder, steam/steam_api.h - Add STEAM_ENABLED preprocessor macro - Add support for the STEAM flag to the Windows build target for the test program. - Add a new case to the test program specifically for testing Steam initialization.
29 lines
868 B
Bash
29 lines
868 B
Bash
#!/usr/bin/env sh
|
|
|
|
#
|
|
# Install the Steam SDK to framework expected locations. The user must provide their own copy of the SDK ZIP archive.
|
|
#
|
|
# The SDK can also be installed manually using the instructions in the Extensions section of README.md.
|
|
#
|
|
# This is expected to be run from the root of the project. It will create `lib/steam/` and extract the headers and
|
|
# libraries there.
|
|
#
|
|
# Requires rsync.
|
|
#
|
|
# To uninstall, delete the $DEST folder.
|
|
#
|
|
|
|
if [ -n "$1" ]
|
|
then
|
|
TMP="steamworks"
|
|
DEST="lib/steam"
|
|
mkdir -p "$DEST/include" "$DEST/lib"
|
|
unzip -d "$TMP" "$1"
|
|
rsync -ar "$TMP/sdk/public/steam" "$DEST/include/"
|
|
rsync -ar "$TMP/sdk/redistributable_bin/" "$DEST/lib/"
|
|
UNIQ=$(date +%N | sha1sum | cut -f1 -d' ')
|
|
mv "$TMP" /tmp/"${TMP}_$UNIQ"
|
|
else
|
|
echo 'Must provide SDK zip. For example: "install_steam.sh ~/steamworks_sdk_160.zip"'
|
|
fi
|