From 68e291094e1995114286b470d6d0d95109e619cf Mon Sep 17 00:00:00 2001 From: Lucas Schwiderski Date: Tue, 28 Nov 2023 12:02:16 +0100 Subject: [PATCH] Update Building the source code --- Building-the-source-code.md | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) diff --git a/Building-the-source-code.md b/Building-the-source-code.md index 29f8691..9778a6a 100644 --- a/Building-the-source-code.md +++ b/Building-the-source-code.md @@ -3,10 +3,23 @@ * [Rust](https://www.rust-lang.org/tools/install) * [Git](https://git-scm.com/) * [CMake](https://cmake.org/) +* [Oodle](Obtaining-the-Oodle-library) -## Build +## Build manually 1. Clone the repository. Make sure to initialize submodules (e.g. `git clone --recurse-submodules`). -2. Acquire the library files as per [[Obtaining the Oodle library](./Obtaining-the-Oodle-library)] for your target operating system and place them into `lib/oodle`. +2. Place the Oodle library files into `lib/oodle`. See the linked page above for how to acquire them. 3. Run `cargo build --release`. -4. Find the executables in `target/release`. \ No newline at end of file +4. Find the executables in `target/release`. + +## Build with Docker + +1. Clone the repository. Make sure to initialize submodules (e.g. `git clone --recurse-submodules`). +2. Place the Oodle library files into `lib/oodle`. See the linked page above for how to acquire them. +3. Build the images with +```sh +# The Linux image also serves as a base for the Windows image +docker build -t dtmt-ci-base-linux -f .ci/image/Dockerfile.linux .ci/image +# Ignore this one, if you build for Linux +docker build -t dtmt-ci-base-msvc -f .ci/image/Dockerfile.msvc .ci/image +``` \ No newline at end of file