Skip to content

teppyboy/sdl2-template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SDL2 Template

This is a SDL2 template with image, text and music support made using Meson.

Preview

The Herta

Installation

To use this template, you must have Meson, Ninja, CMake, make, g++/clang++ along with required headers installed. If you don't have these installed then you should use MSYS2 to install them (or use https://github.com/justapieop/SDLTesting/tree/dev for a better experience)

git clone https://github.com/teppyboy/sdl2-template
cd sdl2-template
meson setup builddir  # Needed for installing SDL2 libraries to the project.

Building

The project itself

  • Debug
meson compile -C ./builddir
cp -r assets ./builddir/

The output will be in ./builddir

  • Release
meson setup builddir-release --buildtype release --optimization 3 --strip
meson compile -C ./builddir-release
cp -r assets ./builddir-release/

The output will be in ./builddir-release

Why?

Because of my university, and no I don't wanna use Code::Blocks. Also plain vcpkg doesn't work with my MSYS2 and MSVC combined install somehow

Acknowledgements

License

MIT

About

A SDL2 template with Image and TTF support using Meson.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published