From adb0f786a0d58b4cbb0e915cff18563774a6dfb5 Mon Sep 17 00:00:00 2001 From: tschumann Date: Sun, 7 Apr 2024 19:24:58 +1000 Subject: [PATCH] Updated build instructions. --- README.md | 43 ++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 42 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 06f8fef..6836536 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,48 @@ Metamod:Source Metamod:Source - A C++ Plugin Environment and Detour Library for the Source Engine. -Build instructions: See +Build instructions +------------------ + +Make sure ambuild2 is installed: https://github.com/alliedmodders/ambuild + +Clone the repo with submodules: +``` +git clone --recurse-submodules https://github.com/alliedmodders/metamod-source +``` + +Clone the SDK dependencies: +``` +cd .. +metamod-source/support/checkout-deps.sh +cd metamod-source +``` + +Configure the build: +``` +mkdir build +cd build +python ../configure.py +``` + +Build: +``` +ambuild +``` + +You can clone an individual SDK e.g.: +``` +cd .. +metamod-source/support/checkout-deps.sh -s episode1 +cd metamod-source +``` + +You can configure the build for an individual SDK e.g.: +``` +mkdir build +cd build +python ../configure.py --sdks episode1 +``` Stable build snapshots: