-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Manual building and environment adjustments
- Loading branch information
Showing
71 changed files
with
101 additions
and
37,706 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,7 @@ | ||
*.pyc | ||
*.pyc | ||
*.dll | ||
*.so | ||
*.dylib | ||
!redist/windows/*.dll | ||
!redist/osx/*.dylib | ||
!redist/linux/*.so |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
@echo off | ||
echo [*] Building SteamworksPy | ||
|
||
:check_arguments | ||
if %1=="" ( | ||
echo [!] Please call this script with your Visual Studio Version as argument! | ||
exit /B 5 | ||
) | ||
goto setup_environment | ||
|
||
:setup_environment | ||
echo [*] Setting up environment | ||
if not exist "C:\Program Files (x86)\Microsoft Visual Studio\%1\BuildTools\Common7\Tools\VsDevCmd.bat" ( | ||
echo [!] Could not find your Visual Studio %1 installation! | ||
exit /B 5 | ||
) | ||
call "C:\Program Files (x86)\Microsoft Visual Studio\%1\BuildTools\Common7\Tools\VsDevCmd.bat" -host_arch=amd64 -arch=amd64 | ||
call "C:\Program Files (x86)\Microsoft Visual Studio\%1\BuildTools\Common7\Tools\VsDevCmd.bat" -test | ||
goto check_for_steamworks | ||
|
||
:steamworks_missing | ||
echo [!] Your environment is not properly set up! | ||
echo [!] Please follow the instructions in SteamworksPy\library\README.md | ||
exit /B 5 | ||
|
||
:check_for_steamworks | ||
dir /b /a "library\sdk\steam\*.h" | >nul findstr "^" && (echo [*] SDK available) || (goto steamworks_missing) | ||
if not exist .\library\sdk\redist\steam_api64.dll ( | ||
goto steamworks_missing | ||
) | ||
if not exist .\library\sdk\redist\steam_api64.lib ( | ||
goto steamworks_missing | ||
) | ||
goto main | ||
|
||
:main | ||
SET dirname=_build_%random% | ||
echo [*] Building in %dirname% | ||
mkdir %dirname% | ||
|
||
echo [*] Copying SteamworksPy.cpp into build root | ||
copy ".\library\SteamworksPy.cpp" ".\%dirname%\SteamworksPy.cpp" | ||
|
||
echo [*] Copying Steamworks redist bins to build root | ||
copy ".\library\sdk\redist\*" ".\%dirname%\" | ||
|
||
echo [*] Linking SteamworksSDK into build root | ||
mklink /J ".\%dirname%\sdk" ".\library\sdk\steam" | ||
|
||
cd %dirname% | ||
|
||
echo [*] Building SteamworksPy.dll | ||
cl.exe /D_USRDLL /D_WINDLL SteamworksPy.cpp steam_api64.lib /link /DLL /OUT:SteamworksPy64.dll | ||
|
||
echo [*] Moving finished library into main repo | ||
move "SteamworksPy64.dll" "..\redist\windows\." | ||
|
||
cd .. | ||
|
||
echo [*] Cleanup | ||
rmdir /S /Q %dirname% |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# Building SteamworksPy | ||
|
||
### Prerequisites | ||
The Steamworks source files are required for building the SteamworksPy libraries and those are only available to | ||
Steamworks account holders. | ||
|
||
A Steamworks account is free and can be registered at https://partner.steamgames.com | ||
|
||
The source files can be downloaded here (log-in required): https://partner.steamgames.com/downloads/steamworks_sdk_147.zip (v1.47) | ||
|
||
Unpack the archive and place the contents of: | ||
- /sdk/public/steam in SteamworksPy/library/sdk/steam | ||
- /sdk/redistributable_bin/%your_os% in SteamworksPy/library/sdk/redist |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.