aboutsummaryrefslogtreecommitdiff
path: root/BUILD.md
diff options
context:
space:
mode:
authorCyn <70904206+itscynxx@users.noreply.github.com>2023-09-14 14:11:59 -0500
committerGitHub <noreply@github.com>2023-09-14 21:11:59 +0200
commita27368df36fc47e67cfe0876ae4d75de066efded (patch)
treef72e949856c6d8932929e619a479be363676c368 /BUILD.md
parent07e76e3a8e2738dbb7a1d5a6aeaa908a838f5a02 (diff)
downloadNorthstarLauncher-a27368df36fc47e67cfe0876ae4d75de066efded.tar.gz
NorthstarLauncher-a27368df36fc47e67cfe0876ae4d75de066efded.zip
Linux build instructions in `BUILD.md` (#531)
Adds Linux build instructions and corresponding Docker file.
Diffstat (limited to 'BUILD.md')
-rw-r--r--BUILD.md10
1 files changed, 10 insertions, 0 deletions
diff --git a/BUILD.md b/BUILD.md
index b44817f2..06dc1fb9 100644
--- a/BUILD.md
+++ b/BUILD.md
@@ -3,6 +3,7 @@ The following steps will allow you to compile your own NorthstarLauncher executa
*This guide assumes you have already installed Northstar as shown in [this page](https://r2northstar.gitbook.io/r2northstar-wiki/installing-northstar/basic-setup)*
+## Windows
### Steps
1. **Install Git** from [this link](https://git-scm.com)
2. **Clone** the [R2Northstar/NorthstarLauncher](https://github.com/R2Northstar/NorthstarLauncher) repo with submodules using this command `git clone --recurse-submodules https://github.com/R2Northstar/NorthstarLauncher.git`
@@ -39,3 +40,12 @@ Developers who can work a command line may be interested in using [Visual Studio
- Run `cmake . -G "Ninja"` to generate build files.
- Run `cmake --build .` to build the project.
+
+## Linux
+### Steps
+1. Clone the GitHub repo
+2. Use `cd` to navigate to the cloned repo's directory
+3. Then, run the following commands in order:
+* `docker build --rm -t northstar-build-fedora .`
+* `docker run --rm -it -e CC=cl -e CXX=cl --mount type=bind,source="$(pwd)",destination=/build northstar-build-fedora cmake . -DCMAKE_BUILD_TYPE=Release -DCMAKE_SYSTEM_NAME=Windows -G "Ninja"`
+* `docker run --rm -it -e CC=cl -e CXX=cl --mount type=bind,source="$(pwd)",destination=/build northstar-build-fedora cmake --build .`