update build scripts

This commit is contained in:
Kyle
2021-10-08 21:26:36 +08:00
parent 1b95cb6fb5
commit 9fdde6bd16
3 changed files with 7 additions and 7 deletions
+1 -1
View File
@@ -413,7 +413,7 @@ class ExtensionConfig(object):
return link return link
linker = make_linker(source_path, output_path) linker = make_linker(source_path, output_path)
compiler.linkflags[0:0] = [compiler.Dep(library, linker)] compiler.postlink.append(compiler.Dep(library, linker))
return binary return binary
+3 -3
View File
@@ -8,13 +8,13 @@ if "%VSCMD_VER%"=="" (
call %VCVARSALL% x86 call %VCVARSALL% x86
) )
git clone https://github.com/alliedmodders/metamod-source --branch "%BRANCH%" --single-branch "%EXT_DIR%/mmsource-%BRANCH%" git clone https://github.com/alliedmodders/metamod-source --branch "%MMBRANCH%" --single-branch "%EXT_DIR%/mmsource-%MMBRANCH%"
git clone https://github.com/alliedmodders/hl2sdk --branch csgo --single-branch "%EXT_DIR%/hl2sdk-csgo" git clone https://github.com/alliedmodders/hl2sdk --branch csgo --single-branch "%EXT_DIR%/hl2sdk-csgo"
git clone https://github.com/alliedmodders/sourcemod --recursive --branch "%BRANCH%" --single-branch "%EXT_DIR%/sourcemod-%BRANCH%" git clone https://github.com/alliedmodders/sourcemod --recursive --branch "%SMBRANCH%" --single-branch "%EXT_DIR%/sourcemod-%SMBRANCH%"
mkdir "%EXT_DIR%/build" mkdir "%EXT_DIR%/build"
pushd "%EXT_DIR%/build" pushd "%EXT_DIR%/build"
python "%EXT_DIR%/configure.py" --enable-optimize --mms-path "%EXT_DIR%/mmsource-%BRANCH%" --sm-path "%EXT_DIR%/sourcemod-%BRANCH%" --hl2sdk-root "%EXT_DIR%" -s csgo || goto error python "%EXT_DIR%/configure.py" --enable-optimize --mms-path "%EXT_DIR%/mmsource-%MMBRANCH%" --sm-path "%EXT_DIR%/sourcemod-%SMBRANCH%" --hl2sdk-root "%EXT_DIR%" -s csgo || goto error
ambuild || goto error ambuild || goto error
popd popd
+3 -3
View File
@@ -4,13 +4,13 @@ set -e
EXT_DIR=$(pwd) EXT_DIR=$(pwd)
git clone https://github.com/alliedmodders/metamod-source --branch "$BRANCH" --single-branch "$EXT_DIR/mmsource-$BRANCH" git clone https://github.com/alliedmodders/metamod-source --branch "$MMBRANCH" --single-branch "$EXT_DIR/mmsource-$MMBRANCH"
git clone https://github.com/alliedmodders/hl2sdk --branch csgo --single-branch "$EXT_DIR/hl2sdk-csgo" git clone https://github.com/alliedmodders/hl2sdk --branch csgo --single-branch "$EXT_DIR/hl2sdk-csgo"
git clone https://github.com/alliedmodders/sourcemod --recursive --branch "$BRANCH" --single-branch "$EXT_DIR/sourcemod-$BRANCH" git clone https://github.com/alliedmodders/sourcemod --recursive --branch "$SMBRANCH" --single-branch "$EXT_DIR/sourcemod-$SMBRANCH"
mkdir -p "$EXT_DIR/build" mkdir -p "$EXT_DIR/build"
pushd "$EXT_DIR/build" pushd "$EXT_DIR/build"
python3 "$EXT_DIR/configure.py" --enable-optimize --mms-path "$EXT_DIR/mmsource-$BRANCH" --sm-path "$EXT_DIR/sourcemod-$BRANCH" --hl2sdk-root "$EXT_DIR" -s csgo python3 "$EXT_DIR/configure.py" --enable-optimize --mms-path "$EXT_DIR/mmsource-$MMBRANCH" --sm-path "$EXT_DIR/sourcemod-$SMBRANCH" --hl2sdk-root "$EXT_DIR" -s csgo
ambuild ambuild
# might be optional # might be optional