Skip to content

HandcrankEngine/template

Repository files navigation

Handcrank Engine Demo Template

Made With SDL2

Dependencies

macOS

CMake

brew install cmake
brew install SDL2
brew install SDL2_image
brew install SDL2_ttf
brew install SDL2_mixer

clang-format

brew install llvm
ln -s "$(brew --prefix llvm)/bin/clang-format" "/usr/local/bin/clang-format"

clang-tidy

brew install llvm
ln -s "$(brew --prefix llvm)/bin/clang-tidy" "/usr/local/bin/clang-tidy"

Windows

CMake

Via installer https://cmake.org/download/

Build

CMake (Recommended)

Note: Builds on Windows require Microsoft Visual C++ Redistributable to run.

Debug Build

mkdir build/
cd build/
cmake ..
cmake --build .

Release Build

Note: To generate DMG files on macOS, first build with cmake, then run cpack.

mkdir build/
cd build/
cmake .. -DCMAKE_BUILD_TYPE=Release
cmake --build . --config Release

g++

./bin/build.sh

Editor Setup

Note: Make sure to to run cmake .. and cmake --build . to generate the compile_commands.json and other necessary header files.

VS Code

Install recommended extensions found in .vscode/extensions.json.

zed

Install plugins recommended by the editor when opening cpp files.

Sublime Text

Via Package Control, install LSP and LSP-clangd.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published