Skip to content

Commit 89ce724

Browse files
committed
feat: add batch script for workspace initialization
1 parent a29f75d commit 89ce724

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

scripts/setup_workspace.bat

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
@ECHO OFF
2+
3+
SET WORKSPACE_DIR=%CD:\=/%
4+
5+
git clone https://github.com/habecker/PySAMP.git
6+
git clone https://github.com/habecker/sampgdk.git
7+
git clone https://github.com/Zeex/samp-plugin-sdk.git
8+
9+
pip install ply
10+
IF EXIST sampgdk/build (
11+
rmdir /s/q sampgdk/build
12+
)
13+
cd sampgdk
14+
mkdir build
15+
mkdir local
16+
cd build
17+
cmake .. -DSAMP_SDK_ROOT=%WORKSPACE_DIR%/samp-plugin-sdk -DSAMPGDK_STATIC=ON -DSAMPGDK_BUILD_AMALGAMATION=ON -DCMAKE_INSTALL_PREFIX=%WORKSPACE_DIR%/sampgdk/local
18+
cmake --build %WORKSPACE_DIR%/sampgdk/build --config Release
19+
cmake --build %WORKSPACE_DIR%/sampgdk/build --config Release --target install
20+
cd ../..
21+
cd PySAMP
22+
mkdir build
23+
cd build
24+
cmake -DSAMPSDK_DIR=%WORKSPACE_DIR%/samp-plugin-sdk -DSAMPGDK_DIR=%WORKSPACE_DIR%/sampgdk -DCMAKE_PREFIX_PATH="%WORKSPACE_DIR%\sampgdk\local" ../src
25+
cd ../..
26+
27+
%WORKSPACE_DIR%/PySAMP/build/PySAMP.vcxproj

0 commit comments

Comments
 (0)