Skip to content

cpp/sdl2 bootstrap project structure and files, to clone and start coding

License

Notifications You must be signed in to change notification settings

PuKoren/bootstrap-cpp-sdl2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

bootstrap-cpp-sdl2

cpp/sdl2 bootstrap project structure and files, to clone and start coding

Build Status

How to use

.1 Fetch this repository files

git --git-dir=/dev/null clone --depth=1 [email protected]:PuKoren/bootstrap-cpp-sdl2.git my-new-project

.2 Init the files you fetched (project name) Replace project_name by your desired binary name (no spaces)

make init NAME=project_name

.3 Git init your project and set remote URL

git init
git remote set-url origin {repo_url}

.4 Push to your repo

git push

.5 Build & run Open the project in your favorite IDE or use the provided Makefile

make build
make run

.6 Start coding

Go to src/Application.cpp and add your logic

Commands

Build

make build
make release

Run

make run

Lint, format code, test

make lint
make format
make tests

With docker

Intermediate image to develop will be around 280MB

Creating your intermediate container

docker build -t myContainer .

Compile, lint, tests

docker run --user `id -u` -v `pwd`:/project myContainer make build
docker run --user `id -u` -v `pwd`:/project myContainer make tests
docker run --user `id -u` -v `pwd`:/project myContainer make release

make lint is not supported yet as Alpine don't have clang-tidy binary in packages yet

Without docker

Core deps

sudo pacman -S sdl2 sdl2_image sdl2_ttf

Lint and tests

Used for linting and unit tests

sudo pacman -S clang-tools-extra cppunit

Windows

lol

About

cpp/sdl2 bootstrap project structure and files, to clone and start coding

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published