Skip to content

degetz/StudyDungeon

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pre-commit Documentation Windows CI Build App Windows CI Test

codecov Codacy Badge

DEV BRANCH: pre-commit Windows CI Build App Windows CI Test

Alpha released

VScode config

extensions:

  • franneck94.vscode-c-cpp-dev-extension-pack
  • github.vscode-github-actions
  • Gruntfuggly.todo-tree

Building

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.

Manual/CLI method

mkdir -p build
cd build

Run 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

Pre-commit checks files for conformity to various stylings.

  1. install python (https://www.python.org/downloads/release/python-3125/)
  2. install pip (https://www.geeksforgeeks.org/how-to-install-pip-on-windows/)
  3. install pre-commit (https://pre-commit.com/)
    • pip install pre-commit
  4. in directory configure pre-commit
    • pre-commit install
  5. run pre-commit on all files initially
    • pre-commit run --all-files
  6. pre-commit will then run automatically on each commit checking the commited files for styling and auto fixing where it can.

.

Releases

No releases published

Packages

No packages published

Languages

  • C++ 79.8%
  • Python 15.8%
  • CMake 4.1%
  • Other 0.3%