Skip to content

Because you don't want to waste your precious time struggling with a failing MSVC build script or dealing with a cumbersome build system to prototype your raylib game.

License

Notifications You must be signed in to change notification settings

vegasword/raylib-msvc-template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Raylib MSVC Template

This is a raylib project template for people who love to compile their C programs using the MSVC compiler.

Warning

This template is optimized for an unity build workflow, though you can add your source files to the SOURCES variable in the build.bat.

Important

For faster compilation, raylib sources aren't compiled in this build process, so you won't be able to debug into raylib functions.

Tip

To update raylib, you can download the latest version directly here by selecting the appropriate raylib-X.X_winXX_msvc16.zip file.

Building

Before you start building, you need to obtain the devenv.bat script from PortableBuildTools.

PortableBuildTools provides a collection of pre-built, portable tools that ensure a consistent build environment across different Windows machines, making it easier to get started with development without worrying about complex installations or dependencies.

It downloads standalone MSVC compiler, linker & other tools, also headers/libraries from Windows SDK, into a portable folder, without installing Visual Studio.

Make sure it generate the C:\BuildTools\devcmd.bat script and add C:\BuildTools to your PATH environment varible then execute the build.bat script.

You can edit the build.bat to set the name of your game and select the build mode.

Enjoy programming!

About

Because you don't want to waste your precious time struggling with a failing MSVC build script or dealing with a cumbersome build system to prototype your raylib game.

Topics

Resources

License

Stars

Watchers

Forks