update build scripts
This commit is contained in:
+1
-1
@@ -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
|
||||||
|
|
||||||
|
|||||||
@@ -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
|
||||||
|
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user