From a4aaff040e86a65647cc44d76a332b7d7e30b6be Mon Sep 17 00:00:00 2001 From: gsd Date: Sat, 18 Jul 2026 20:13:48 +0300 Subject: [PATCH] init --- .gitignore | 2 ++ Dockerfile | 24 ++++++++++++++++++++++++ README | 20 ++++++++++++++++++++ docker-compose.yaml | 4 ++++ 4 files changed, 50 insertions(+) create mode 100644 .gitignore create mode 100644 Dockerfile create mode 100644 README create mode 100644 docker-compose.yaml diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..d67f464 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +soundlib/ +tf2items/ diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..db8320d --- /dev/null +++ b/Dockerfile @@ -0,0 +1,24 @@ +FROM ghcr.io/alliedmodders/build-containers/debian11-clang22:latest + +#master or 1.12-dev to choice server api v8 or v9 +RUN git config --global --add safe.directory '*' +RUN git clone --depth 1 --recurse-submodules -j8 --shallow-submodules -b 1.12-dev https://github.com/alliedmodders/metamod-source.git mmsource +RUN git clone --depth 1 --recurse-submodules -j8 --shallow-submodules -b master https://github.com/alliedmodders/sourcemod.git sourcemod + +RUN python3 -m pip install --upgrade git+https://github.com/alliedmodders/ambuild.git +#RUN git clone https://github.com/alliedmodders/ambuild ambuild +RUN /sourcemod/tools/checkout-deps.sh + +ENV CC clang-22 +ENV CXX clang++-22 + +#mkdir build && cd build +# python3 ../configure.py \ +# --sm-path ../sourcemod \ +# --mms-path ../mmsource \ +# --steamworks-path ../SteamworksSDK \ +# --target ${{ matrix.target.arch }} \ +# --version "${{ needs.version.outputs.version }}" \ +# --enable-optimize +# ambuild +ENTRYPOINT ["tail", "-f", "/dev/null"] diff --git a/README b/README new file mode 100644 index 0000000..645d306 --- /dev/null +++ b/README @@ -0,0 +1,20 @@ +Sourcemod Extensions Compiler + +choice master or 1.12-dev branch equals API8 - API9 core +default last master + +run container +git clone ext repo to root, example soundlib +move to /soundlib +create build folder: mkdir build && cd build + +compile commands examples: + +python3 ../configure.py --hl2sdk-root=/ --mms-path=/mmsource --sm-path=/sourcemod --hl2sdk-manifest-path /sourcemod/hl2sdk-manifests --enable-optimize --targets x86_64 --sdks tf2 --no-plugins +python3 ../configure.py --hl2sdk-root=/ --mms-path=/mmsource --sm-path=/sourcemod/ -s present --enable-optimize --targets x86_64 --sdks tf2 +python3 ../configure.py --enable-optimize --targets x86,x86_64 +python3 ../configure.py --hl2sdk-root=/ --mms-path=/mmsource --sm-path=/sourcemod/ -s present --enable-optimize --targets x86,x86_64 --sdks tf2 +ambuild + +move from container to host: +docker cp sm_ext_build_v13_off:/SMExt-TF2Items/build/package/ ./ diff --git a/docker-compose.yaml b/docker-compose.yaml new file mode 100644 index 0000000..ae8f76b --- /dev/null +++ b/docker-compose.yaml @@ -0,0 +1,4 @@ +services: + sm_ext_builder_v13_off: + container_name: sm_ext_build_v13_off + build: ./