Go to file
2024-08-11 13:42:18 +02:00
.github/workflows feat: add github ci 2022-09-25 17:24:40 +02:00
buildbot feat: add github ci 2022-09-25 17:24:40 +02:00
extension added changes to environment for unloze build and added README with rough instructions on how to build manually without having to use CI 2023-10-09 22:42:06 +02:00
patches feat: add github ci 2022-09-25 17:24:40 +02:00
test added changes to environment for unloze build and added README with rough instructions on how to build manually without having to use CI 2023-10-09 22:42:06 +02:00
.gitignore feat: add github ci 2022-09-25 17:24:40 +02:00
.travis.yml Get SourceMod version from SourcePawn library 2019-07-26 23:04:27 +01:00
accelerator.autoload Added rest of files needed for install. 2013-05-16 15:19:03 +01:00
accelerator.games.txt Update CS:GO gamedata (#10) 2023-02-04 00:12:23 +00:00
AMBuildScript added changes to environment for unloze build and added README with rough instructions on how to build manually without having to use CI 2023-10-09 22:42:06 +02:00
appveyor.yml Get SourceMod version from SourcePawn library 2019-07-26 23:04:27 +01:00
breakpad.bat Attempt to fix VS2015 compilation 2019-07-25 00:17:00 +01:00
breakpad.sh feat: add github ci 2022-09-25 17:24:40 +02:00
configure.py Initial commit. 2013-05-16 07:18:31 +01:00
product.version Bump version to 2.5.0 2019-07-25 00:18:47 +01:00
README.md updated readme with info about the dbg file. 2024-08-11 13:42:18 +02:00
upload.py Use HTTP to upload to work around Travis issues 2019-01-06 01:36:44 +00:00

git push --all new-origin

There are no real changes to this compared to the version from boss over at https://github.com/srcdslab/sm-ext-accelerator/tree/master

The difference just being some basic environment settings for different paths and disabling some CFLAGS probably not available in clang14.

Unlike boss i prefer building this without having to rely on docker and an entire continous integration workflow.

The following is a rough list of steps to reproduce the build manually. I build it some hours ago so i probably forgot some commands by now. Basically you just have to replicate some build steps from https://github.com/srcdslab/sm-ext-accelerator/blob/master/.github/workflows/ci.yml

echo $SOURCEMOD
this has to return the path to the folder where your intended sourcemod installation is.
export SOURCEMOD=/home/gameservers/automate/sourcemod_2023_accelerator

export CC=clang
export CXX=clang++
export PATH="/usr/lib/jvm/jdk-17/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/local/sbin:/usr/X11/bin:/home/gameservers/.local/bin":/sbin:/bin:

the path is not exactly required like this, generally you just want /home/gameservers/.local/bin: because its where ambuild is installed atm on the OVH machine.

step 1:
directory: /home/gameservers/automate/sourcemod_2023_accelerator/extensions/sm-ext-accelerator/extension

mkdir breakpad && cd breakpad
git clone --recursive --branch=main https://chromium.googlesource.com/chromium/tools/depot_tools.git depot_tools
cd depot_tools
git checkout 08bb5c487f80147a236360ea50f4544890530779

step 2:
directory: /home/gameservers/automate/sourcemod_2023_accelerator/extensions/sm-ext-accelerator/extension/breakpad

cp depot_tools/.vpython3 .
PYTHONDONTWRITEBYTECODE=1 ./depot_tools/vpython3 ./depot_tools/fetch.py --nohooks breakpad
cd src
git config user.name patches
git config user.email patches@localhost
git checkout e3af4457b8355fcf1814e6dfb6073a848b44a282
git am -3 --keep-cr ../../../patches/*.patch

cd ..
mkdir build && cd build
env ac_cv_header_a_out_h=yes ../src/configure --enable-m32 CFLAGS="-Wno-error=deprecated" CXXFLAGS="-Wno-error=deprecated -g -O2 -D_GLIBCXX_USE_CXX11_ABI=0" CPPFLAGS=-m32
make src/tools/linux/dump_syms/dump_syms
make src/client/linux/libbreakpad_client.a
make src/libbreakpad.a src/third_party/libdisasm/libdisasm.a

the make commands just have to point towards /home/gameservers/automate/sourcemod_2023_accelerator/extensions/sm-ext-accelerator/extension/breakpad/src/src directory

step 3:
directory: /home/gameservers/automate/sourcemod_2023_accelerator/extensions/sm-ext-accelerator/extension

export PATH=$PATH:$PWD/breakpad/build/src/tools/linux/dump_syms/
mkdir build && cd build
python ../../configure.py --enable-optimize
python ./build.py

The only 3 files where you might have to edit environment variables should be:
AMBuildScript
extension/AMBuilder
test/AMBuilder

adding accelerator.ext.so.dbg: crazily enough we can just upload accelerator.ext.so.dbg to the extensions folder since we got --add-gnu-debuglink in the AMBuildScript