Add insurgency support
This commit is contained in:
+6
-4
@@ -1,18 +1,16 @@
|
|||||||
language: cpp
|
language: cpp
|
||||||
|
|
||||||
branches:
|
branches:
|
||||||
only:
|
only:
|
||||||
- master
|
- master
|
||||||
except:
|
except:
|
||||||
- /^(?i:release)-.*$/
|
- /^(?i:release)-.*$/
|
||||||
env:
|
|
||||||
global:
|
|
||||||
- DEPS_DIR=${HOME}/deps
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
include:
|
include:
|
||||||
- name: Windows
|
- name: Windows
|
||||||
os: windows
|
os: windows
|
||||||
python: 3.8
|
python: 3.7
|
||||||
before_install:
|
before_install:
|
||||||
- choco install python --version=3.8.2
|
- choco install python --version=3.8.2
|
||||||
- export PATH="/c/Python38:/c/Python38/Scripts:$PATH"
|
- export PATH="/c/Python38:/c/Python38/Scripts:$PATH"
|
||||||
@@ -34,17 +32,21 @@ jobs:
|
|||||||
script:
|
script:
|
||||||
- ./build.sh
|
- ./build.sh
|
||||||
|
|
||||||
|
|
||||||
before_deploy:
|
before_deploy:
|
||||||
- git config --local user.name "Kxnrl"
|
- git config --local user.name "Kxnrl"
|
||||||
- git config --local user.email "[email protected]"
|
- git config --local user.email "[email protected]"
|
||||||
- export TRAVIS_TAG=release-$TRAVIS_OS_NAME-$TRAVIS_BUILD_NUMBER
|
- export TRAVIS_TAG=release-$TRAVIS_OS_NAME-$TRAVIS_BUILD_NUMBER
|
||||||
- git tag $TRAVIS_TAG
|
- git tag $TRAVIS_TAG
|
||||||
|
|
||||||
deploy:
|
deploy:
|
||||||
provider: releases
|
provider: releases
|
||||||
api_key: $token
|
api_key: $token
|
||||||
file:
|
file:
|
||||||
- build/package/addons/sourcemod/extensions/TransmitManager.ext.2.csgo.dll
|
- build/package/addons/sourcemod/extensions/TransmitManager.ext.2.csgo.dll
|
||||||
- build/package/addons/sourcemod/extensions/TransmitManager.ext.2.csgo.so
|
- build/package/addons/sourcemod/extensions/TransmitManager.ext.2.csgo.so
|
||||||
|
- build/package/addons/sourcemod/extensions/TransmitManager.ext.2.insurgency.dll
|
||||||
|
- build/package/addons/sourcemod/extensions/TransmitManager.ext.2.insurgency.so
|
||||||
- build/package/addons/sourcemod/scripting/include/TransmitManager.inc
|
- build/package/addons/sourcemod/scripting/include/TransmitManager.inc
|
||||||
on:
|
on:
|
||||||
repo: Kxnrl/sm-ext-TransmitManager
|
repo: Kxnrl/sm-ext-TransmitManager
|
||||||
|
|||||||
@@ -184,6 +184,7 @@ class ExtensionConfig(object):
|
|||||||
'-Wno-non-virtual-dtor',
|
'-Wno-non-virtual-dtor',
|
||||||
'-Wno-overloaded-virtual',
|
'-Wno-overloaded-virtual',
|
||||||
'-fvisibility-inlines-hidden',
|
'-fvisibility-inlines-hidden',
|
||||||
|
'-fpermissive',
|
||||||
]
|
]
|
||||||
cxx.linkflags += ['-m32']
|
cxx.linkflags += ['-m32']
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,10 @@
|
|||||||
set EXT_DIR="%cd%"
|
echo "Set environment"
|
||||||
|
set EXT_DIR=%cd%
|
||||||
|
set DEP_DIR=%EXT_DIR%\build-windows
|
||||||
set VCVARSALL="C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Auxiliary\Build\vcvarsall.bat"
|
set VCVARSALL="C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Auxiliary\Build\vcvarsall.bat"
|
||||||
|
mkdir "%DEP_DIR%"
|
||||||
|
|
||||||
|
cd %DEP_DIR%
|
||||||
|
|
||||||
if "%VSCMD_VER%"=="" (
|
if "%VSCMD_VER%"=="" (
|
||||||
set MAKE=
|
set MAKE=
|
||||||
@@ -8,15 +13,45 @@ if "%VSCMD_VER%"=="" (
|
|||||||
call %VCVARSALL% x86
|
call %VCVARSALL% x86
|
||||||
)
|
)
|
||||||
|
|
||||||
git clone https://github.com/alliedmodders/metamod-source --branch "%MMBRANCH%" --single-branch "%EXT_DIR%/mmsource-%MMBRANCH%"
|
:: Install ambuild
|
||||||
git clone https://github.com/alliedmodders/hl2sdk --branch csgo --single-branch "%EXT_DIR%/hl2sdk-csgo"
|
echo "Install ambuild"
|
||||||
git clone https://github.com/alliedmodders/sourcemod --recursive --branch "%SMBRANCH%" --single-branch "%EXT_DIR%/sourcemod-%SMBRANCH%"
|
git clone https://github.com/alliedmodders/ambuild
|
||||||
|
pushd ambuild
|
||||||
mkdir "%EXT_DIR%/build"
|
python setup.py install
|
||||||
pushd "%EXT_DIR%/build"
|
|
||||||
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
|
|
||||||
popd
|
popd
|
||||||
|
|
||||||
:error
|
:: Getting sourcemod
|
||||||
exit /b %errorlevel%
|
|
||||||
|
echo "Download sourcemod"
|
||||||
|
git clone https://github.com/alliedmodders/sourcemod --recursive --branch %SMBRANCH% --single-branch sourcemod
|
||||||
|
|
||||||
|
pushd sourcemod
|
||||||
|
set SOURCEMOD=%cd%
|
||||||
|
popd
|
||||||
|
|
||||||
|
:: Getting metamod
|
||||||
|
|
||||||
|
echo "Download metamod"
|
||||||
|
git clone https://github.com/alliedmodders/metamod-source --recursive --branch %MMBRANCH% --single-branch metamod
|
||||||
|
|
||||||
|
pushd metamod
|
||||||
|
set METAMOD=%cd%
|
||||||
|
popd
|
||||||
|
|
||||||
|
:: Getting hl2sdk
|
||||||
|
|
||||||
|
echo "Download hl2sdk-csgo"
|
||||||
|
git clone https://github.com/alliedmodders/hl2sdk --recursive --branch csgo --single-branch hl2sdk-csgo
|
||||||
|
echo "Download hl2sdk-insurgency"
|
||||||
|
git clone https://github.com/alliedmodders/hl2sdk --recursive --branch insurgency --single-branch hl2sdk-insurgency
|
||||||
|
|
||||||
|
:: Start build
|
||||||
|
|
||||||
|
echo "Build"
|
||||||
|
cd %EXT_DIR%
|
||||||
|
|
||||||
|
mkdir build
|
||||||
|
pushd build
|
||||||
|
python "%EXT_DIR%/configure.py" --enable-optimize --sm-path "%SOURCEMOD%" --mms-path "%METAMOD%" --hl2sdk-root "%DEP_DIR%" --sdks=csgo,insurgency
|
||||||
|
ambuild || exit /b %errorlevel%
|
||||||
|
popd
|
||||||
|
|||||||
@@ -1,19 +1,30 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
|
sudo apt-get update
|
||||||
|
sudo apt-get install -y gcc-multilib g++-multilib
|
||||||
|
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
EXT_DIR=$(pwd)
|
EXT_DIR=$(pwd)
|
||||||
|
|
||||||
git clone https://github.com/alliedmodders/metamod-source --branch "$MMBRANCH" --single-branch "$EXT_DIR/mmsource-$MMBRANCH"
|
#clone ambuild
|
||||||
git clone https://github.com/alliedmodders/hl2sdk --branch csgo --single-branch "$EXT_DIR/hl2sdk-csgo"
|
echo "Installing ambuild ..."
|
||||||
git clone https://github.com/alliedmodders/sourcemod --recursive --branch "$SMBRANCH" --single-branch "$EXT_DIR/sourcemod-$SMBRANCH"
|
git clone https://github.com/alliedmodders/ambuild $HOME/ambuild
|
||||||
|
pushd $HOME/ambuild
|
||||||
|
sudo python setup.py install
|
||||||
|
popd
|
||||||
|
|
||||||
|
#clone sourcemod / metamod / hl2sdk
|
||||||
|
echo "Installing Sourcemod/Metamod/HL2SDK ..."
|
||||||
|
git clone https://github.com/alliedmodders/sourcemod --recursive --branch $SMBRANCH --single-branch "$EXT_DIR/sourcemod"
|
||||||
|
git clone https://github.com/alliedmodders/metamod-source --recursive --branch $MMBRANCH --single-branch "$EXT_DIR/metamod"
|
||||||
|
git clone https://github.com/alliedmodders/hl2sdk --recursive --branch csgo --single-branch "$EXT_DIR/hl2sdk-csgo"
|
||||||
|
git clone https://github.com/alliedmodders/hl2sdk --recursive --branch insurgency --single-branch "$EXT_DIR/hl2sdk-insurgency"
|
||||||
|
|
||||||
|
#build
|
||||||
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-$MMBRANCH" --sm-path "$EXT_DIR/sourcemod-$SMBRANCH" --hl2sdk-root "$EXT_DIR" -s csgo
|
#CC=clang CXX=clang++
|
||||||
|
python "$EXT_DIR/configure.py" --enable-optimize --sm-path "$EXT_DIR/sourcemod" --mms-path "$EXT_DIR/metamod" --hl2sdk-root "$EXT_DIR" --sdks=csgo,insurgency
|
||||||
ambuild
|
ambuild
|
||||||
|
|
||||||
# might be optional
|
|
||||||
strip package/addons/sourcemod/extensions/TransmitManager.ext.2.csgo.so
|
|
||||||
|
|
||||||
popd
|
popd
|
||||||
Reference in New Issue
Block a user