forked from larsiusprime/SteamWrap
-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathsetup.sh
More file actions
executable file
·45 lines (38 loc) · 1.75 KB
/
setup.sh
File metadata and controls
executable file
·45 lines (38 loc) · 1.75 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
#!/bin/bash
function pause(){
read -p "$*"
}
echo "Enter FULL path (no ~, etc) to the Steamworks SDK install folder or sdk folder (no trailing slash):"
read STEAMPATH
echo "Enter FULL path (no ~, etc) to hxcpp root (folder that contains '/include', no trailing slash):"
read HXCPP
STEAMSDK="$STEAMPATH"
if [ -d "$STEAMPATH/sdk/public/steam" ]; then
STEAMSDK="$STEAMPATH/sdk"
fi
if [ ! -d "$STEAMSDK/public/steam" ]; then
echo "Could not find Steamworks headers under '$STEAMSDK/public/steam'."
exit 1
fi
if [ ! -d "$STEAMSDK/redistributable_bin" ]; then
echo "Could not find Steamworks redistributables under '$STEAMSDK/redistributable_bin'."
exit 1
fi
if [ ! -d "$HXCPP/include/hx" ]; then
echo "Could not find hxcpp headers under '$HXCPP/include/hx'."
exit 1
fi
rm -f native/include/steam/*.h
rm -f native/lib/win32/steam_api.dll native/lib/win32/steam_api.lib
rm -f native/lib/win64/steam_api64.dll native/lib/win64/steam_api64.lib
rm -f native/lib/osx64/libsteam_api.dylib
rm -f native/lib/linux32/libsteam_api.so native/lib/linux64/libsteam_api.so
cp "$STEAMSDK"/public/steam/*.h native/include/steam
cp "$STEAMSDK"/redistributable_bin/steam_api.dll native/lib/win32 > /dev/null
cp "$STEAMSDK"/redistributable_bin/steam_api.lib native/lib/win32 > /dev/null
cp "$STEAMSDK"/redistributable_bin/win64/steam_api64.dll native/lib/win64 > /dev/null
cp "$STEAMSDK"/redistributable_bin/win64/steam_api64.lib native/lib/win64 > /dev/null
cp "$STEAMSDK"/redistributable_bin/osx/libsteam_api.dylib native/lib/osx64 > /dev/null
cp "$STEAMSDK"/redistributable_bin/linux32/libsteam_api.so native/lib/linux32 > /dev/null
cp "$STEAMSDK"/redistributable_bin/linux64/libsteam_api.so native/lib/linux64 > /dev/null
cp "$HXCPP"/include/hx/*.h native/include/hx > /dev/null