From 8296f1c5cd8515050cd97fa1580ab941731a08b1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Simon=20L=C3=BCbe=C3=9F?= Date: Fri, 21 Jul 2023 19:37:50 +0200 Subject: [PATCH] Added NetHostBeef + Start of central preparation scripts --- .gitmodules | 5 ++++- GlitchyEngine/vendor/NetHostBeef | 1 + README.md | 11 +++++++++++ bin/prepare_dev.ps1 | 16 ++++++++++++++++ 4 files changed, 32 insertions(+), 1 deletion(-) create mode 160000 GlitchyEngine/vendor/NetHostBeef create mode 100644 bin/prepare_dev.ps1 diff --git a/.gitmodules b/.gitmodules index fa50ef6..7d3a298 100644 --- a/.gitmodules +++ b/.gitmodules @@ -30,4 +30,7 @@ url = https://github.com/jazzbre/box2d-beef.git [submodule "GlitchyEngine/vendor/Beef.Linq"] path = GlitchyEngine/vendor/Beef.Linq - url = https://github.com/aharabada/Beef.Linq.git \ No newline at end of file + url = https://github.com/aharabada/Beef.Linq.git +[submodule "GlitchyEngine/vendor/NetHostBeef"] + path = GlitchyEngine/vendor/NetHostBeef + url = https://github.com/aharabada/NetHostBeef.git diff --git a/GlitchyEngine/vendor/NetHostBeef b/GlitchyEngine/vendor/NetHostBeef new file mode 160000 index 0000000..aeb0995 --- /dev/null +++ b/GlitchyEngine/vendor/NetHostBeef @@ -0,0 +1 @@ +Subproject commit aeb099576d0b75dbcfbde0d864986fc8bcca13bf diff --git a/README.md b/README.md index a32e61b..da330f6 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,13 @@ # glitchy-engine-beef A complete refocusation, reimagination and reimplementation of the world-renowned "Glitchy Engine" + +# Building + +In order to build this repository you need the following requirements: + +- Windows 10 or newer +- [Beef](https://www.beeflang.org/) (at least 0.43.5) +- Visual Studio 2022 with the Workloads: "Desktop development with C++" and ".NET desktop development" (TODO: I think it's probably possible to just install some standalone stuff, but idk...) +- TODO: I feel like I'm missing something... + +If all of the requirements are met you need to run the following command in powershell (in the root directory of the repository): `./bin/prepare_dev.ps1`. This will run a script that initializes the dependencies. TODO: This script is currently not finished diff --git a/bin/prepare_dev.ps1 b/bin/prepare_dev.ps1 new file mode 100644 index 0000000..6bd7206 --- /dev/null +++ b/bin/prepare_dev.ps1 @@ -0,0 +1,16 @@ +Write-Output "Preparing repository for development..." + +# Change working directory to repository root +Push-Location ($PSScriptRoot + "/..") + +$RootDirectory = $(Get-Location); + +# Note: When adding new scripts make sure to use "Set-Location $RootDirectory" if the script changes the working directory + +# Prepare NetHost +Push-Location "GlitchyEngine/vendor/NetHostBeef" +Invoke-Expression -Command "./downloadNethost.ps1" +Pop-Location + +# Return to original working directory +Pop-Location