Alpha released
extensions:
- franneck94.vscode-c-cpp-dev-extension-pack
- github.vscode-github-actions
- Gruntfuggly.todo-tree
Open vscode using the "Developer Command Prompt"
cd <path to StudyDungeon>
code .In VScode to build:
A build task for cmake is defined in .vscode/tasks.json. CMakePresets.json contains a list of cmake presets that will populate the CMake extension with preset build options.
Shift + F7 should be the shortcut key for triggering a build. You will be prompted to select a "Target" - Choose "ALL_BUILD".
For debug building there are two main presets:
- Configure preset: "Visual Studio Community 2022 Release - x86_amd64"
- Build preset: "Debug: Visual Studio Community 2022 Release - x86_amd64"
The exe from the build process gets put into build/Visual Studio Community 2022 Release - x86_amd64/app/Debug/StudyDungeon.exe
Choosing the install target should build the exe and then place it (plus Deck/*) into bin/ at the project root.
mkdir -p build
cd buildRun the cmake generator for MSVC which will set up the workflow:
cmake -S ../ -B ./ -G "Visual Studio Community 2022"
Building:
# debug build
cmake -DCMAKE_BUILD_TYPE=Debug ../
# release build
cmake -DCMAKE_BUILD_TYPE=Release ../Pre-commit checks files for conformity to various stylings.
- install python (https://www.python.org/downloads/release/python-3125/)
- add to your path (https://realpython.com/add-python-to-path/) plus the
Scriptsdir
- add to your path (https://realpython.com/add-python-to-path/) plus the
- install pip (https://www.geeksforgeeks.org/how-to-install-pip-on-windows/)
- install pre-commit (https://pre-commit.com/)
pip install pre-commit
- in directory configure pre-commit
pre-commit install
- run pre-commit on all files initially
pre-commit run --all-files
- pre-commit will then run automatically on each commit checking the commited files for styling and auto fixing where it can.
.