2023-10-09 22:50:11 +02:00
git push --all new-origin
2023-10-09 22:49:09 +02:00
There are no real changes to this compared to the version from boss over at https://github.com/srcdslab/sm-ext-accelerator/tree/master
2023-10-09 22:42:06 +02:00
2023-10-09 22:49:09 +02:00
The difference just being some basic environment settings for different paths and disabling some CFLAGS probably not available in clang14.
2023-10-09 22:42:06 +02:00
2023-10-09 22:49:09 +02:00
Unlike boss i prefer building this without having to rely on docker and an entire continous integration workflow.
2023-10-09 22:42:06 +02:00
2023-10-09 22:49:09 +02:00
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
2023-10-09 22:42:06 +02:00
2023-10-09 22:49:09 +02:00
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
2023-10-09 22:42:06 +02:00
2023-10-09 22:49:09 +02:00
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:
2023-10-09 22:42:06 +02:00
2023-10-09 22:49:09 +02:00
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.
2023-10-09 22:42:06 +02:00
2023-10-09 22:49:09 +02:00
step 1:
directory: /home/gameservers/automate/sourcemod\_2023\_accelerator/extensions/sm-ext-accelerator/extension
2023-10-09 22:42:06 +02:00
2023-10-09 22:49:09 +02:00
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
2023-10-09 22:42:06 +02:00
2023-10-09 22:49:09 +02:00
step 2:
directory: /home/gameservers/automate/sourcemod_2023_accelerator/extensions/sm-ext-accelerator/extension/breakpad
2023-10-09 22:42:06 +02:00
2023-10-09 22:49:09 +02:00
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
2024-02-15 18:50:12 +01:00
git am -3 --keep-cr ../../../patches/*.patch
2023-10-09 22:42:06 +02:00
2023-10-09 22:49:09 +02:00
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
2023-10-09 22:42:06 +02:00
2023-10-09 22:49:09 +02:00
the make commands just have to point towards /home/gameservers/automate/sourcemod_2023_accelerator/extensions/sm-ext-accelerator/extension/breakpad/src/src directory
2023-10-09 22:42:06 +02:00
2023-10-09 22:49:09 +02:00
step 3:
directory: /home/gameservers/automate/sourcemod_2023_accelerator/extensions/sm-ext-accelerator/extension
2023-10-09 22:42:06 +02:00
2023-10-09 22:49:09 +02:00
export PATH=$PATH:$PWD/breakpad/build/src/tools/linux/dump_syms/
mkdir build & & cd build
python ../../configure.py --enable-optimize
python ./build.py
2023-10-09 22:42:06 +02:00
2023-10-09 22:49:09 +02:00
The only 3 files where you might have to edit environment variables should be:
AMBuildScript
extension/AMBuilder
test/AMBuilder
2023-10-09 22:42:06 +02:00
2024-08-11 13:42:18 +02:00
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