raylib project creator by RayView all by RayRay<br>Follow RayFollowFollowing RayFollowing<br>Add To CollectionCollection<br>Comments<br>Devlog<br>More like thisRelated<br>raylib project creator
Download Now<br>rpc - raylib project creator
What can I do with rpc?
Welcome to rpc! The new tool to help you setup a professional raylib project structure!
When starting with raylib is common to create a simple .c code file in some directory and jump directly into coding, the raylib Windows Installer package already provides a pre-configured environment to do it that way; the compiler, the Npp editor and raylib library are already pre-configured to do so.
But as soon as a project starts growing, usually more complex project structures are required. Usually a build system for multiple code files, external libraries, project assets/resources, configuration files, executable icons and even some automatized CI/CD system. Configuring all those aspects usually requires a lot of time.
rpc is a visual tool to simplify that process and automatically create and pre-configure some common build systems for a project, just providing an input source code file to start with.
DISCLAIMER: Note that a project could be really complex in terms of source files, external dependencies, resources and build configurations. rpc does not pretend to support all possible options but the minimum ones to quickly generate a working project structure to be directly uploaded to GitHub and start working on a bigger project.
Features
Support .rpc project configuration interchange file format<br>Shared with homonymous tool: rpb - raylib project builder
Select startup project from some game/tool templates
Select custom C code files to generate project
Select project assets to be included in the project
Code scanning for assets usage validation
Generate build systems : scripts, Makefile, VSCode, VS2022
Generate complete GitHub project, ready to upload
Generate preconfigured GitHub Actions , ready to run
WEB: Download generated template as a .zip file
Command-line support for automated project generation
Completely portable (no-dependencies)
Basic Usage
Open the tool, drag & drop your C code files and Asset files. Configure project properties, like repo name, project internal name, company and more. Selct desired build systems to be generated and press Generate Project Structure button.
rpc dektop version comes with command-line support for automated project(s) generation. You can check all available options with the following command:
rpc.exe --help
Build Systems
rpc generates the following project build systems:
Makefile [src/Makefile]: The default and recommended raylib build system, preconfigured for multiple platforms (Windows, Linux, FreeBSD, macOS, WebAssembly).
Scripts [projects/scripts/build.bat]: Command-line build scripts, for Windows CMD (build.bat)<br>WARNING: Script generated is currently Windows only (build.bat) and it calls the src/Makefile build system. A possible improvement for the future is calling directly the required process. Also, supporting some other shell would be nice.
VS2022 [projects/VS2022/*]: Visual Studio 2022 complete solution (.sln). The generated solution contains raylib sources to be build along the project, in case it needs to be debugged or customized for the project needs. It also includes multiple build configurations and preconfigured output paths for better organization. All build happens to projects/VS2022/build directory.
VSCode [projects/VSCode/*]: Visual Studio Code preconfigured tasks and settings for the project.-CHECK LIMITATIONS BELOW-<br>WARNING: VSCode project requires the compiler and tools available in the system path; it also calls the src/Makefile build system. It would be nice to make it more self-contained.
GitHub Actions [.github/workflows/*]: GitHub Actions workflows preconfigured to compile the project on multiple platforms (Windows, Linux, macOS, WebAssembly). Windows workflow use projects/VS2022 for building while Linux/macOS/WebAssembly use src/Makefile for project building. Note that those workflows are setup to automatically run and upload generated files to on new GitHub project Release creation. They can also be run manually.
Generated project structure
The generated structure follows the template structure and contrains the following elements:
project-repo-name/<br>├── src/ // Project source code files<br>│ ├── resources // Project assets<br>│ ├── project_name.c<br>│ └── Makefile // Project multi-platform Makefile building (default)<br>├── raylib/ // [OPTIONAL] raylib library sources<br>├── projects/ // Project build systems, preconfigured<br>│ ├── VS2022/ // Build system: Visual Studio 2022<br>│ ├── VSCode/ // Build system: VSCode<br>│ └── scripts/ // Build system: scripts (.bat, .sh)<br>├── imagery/ // Project imagery: icons, banners, logo, splash...<br>├── .github/<br>│ └── workflows/ // GitHub Actions: Windows, Linux, macOS<br>├── .gitignore // Project files to ignore, preconfigured for build systems<br>├── README.md //...