-
Notifications
You must be signed in to change notification settings - Fork 14
Expand file tree
/
Copy pathmakefile_hardmod.bat
More file actions
34 lines (27 loc) · 1.07 KB
/
makefile_hardmod.bat
File metadata and controls
34 lines (27 loc) · 1.07 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
@echo off
setlocal
pushd %~dp0
REM Makefile for building only the rotoblin.smx file.
REM If you need to create a release, run the create_release script instead.
set "PLUGIN_SRC_DIR=sources"
set "PLUGIN_NAME=hardmod"
set "BUILD_DEST_DIR=build"
set "RELEASE_DIR=build\"
set "SPCOMP=bin\sourcepawn\spcomp.exe"
echo --------------------------------------------
echo Building %PLUGIN_NAME%.sp ...
echo --------------------------------------------
if not exist %BUILD_DEST_DIR% (
mkdir %BUILD_DEST_DIR%
)
copy %PLUGIN_SRC_DIR%\hardmod\defines_stats.inc %PLUGIN_SRC_DIR%\hardmod\defines.inc
"%SPCOMP%" -D%PLUGIN_SRC_DIR% "%PLUGIN_NAME%.sp"
move /Y "%PLUGIN_SRC_DIR%\%PLUGIN_NAME%.smx" "%RELEASE_DIR%\hardmod.smx"
copy %PLUGIN_SRC_DIR%\hardmod\defines_nostats.inc %PLUGIN_SRC_DIR%\hardmod\defines.inc
"%SPCOMP%" -D%PLUGIN_SRC_DIR% "%PLUGIN_NAME%.sp"
move /Y "%PLUGIN_SRC_DIR%\%PLUGIN_NAME%.smx" "%RELEASE_DIR%\hardmod_nostats.smx"
echo --------------------------------------------
echo Built %PLUGIN_NAME%.sp as %RELEASE_NAME%.smx
echo --------------------------------------------
popd
endlocal