commit
a4aaff040e
4 changed files with 50 additions and 0 deletions
@ -0,0 +1,2 @@ |
|||||
|
soundlib/ |
||||
|
tf2items/ |
||||
@ -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"] |
||||
@ -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/ ./ |
||||
@ -0,0 +1,4 @@ |
|||||
|
services: |
||||
|
sm_ext_builder_v13_off: |
||||
|
container_name: sm_ext_build_v13_off |
||||
|
build: ./ |
||||
Loading…
Reference in new issue