raylib project builder by RayView all by RayRay<br>Follow RayFollowFollowing RayFollowing<br>Add To CollectionCollection<br>Comments<br>Devlog<br>More like thisRelated<br>raylib project builder
A downloadable tool for Windows, macOS, and Linux<br>Download NowName your own price
rpb - raylib project builder
What can I do with rpb?
rpb can help you to automatically build your raylib projects for multiple platforms. Projects created with rpc, raylib project creator, include a .rpc file with all the configuration parameters required to automatize project building; rpb can read .rpc config files and build defined project for multiple platforms. Supported target platforms depend on the Host platform and installed tooling.
Features
Support .rpc project configuration interchange file format<br>Shared with homonymous tool: rpc - raylib project creator
Multiple HOST platforms supported: Windows, Linux, macOS
Multiple target platforms supported: Windows, Linux, macOS, Wasm, Android
Configure project build settings in a visual way
Automatic assets validation, processing and packaging
Command-line support for automated project building
Completely portable (single-file, no-dependencies)
Basic Usage
Open the rpb tool desktop interface and open/drag&drop your .rpc project file. Once the file open, check project details, some build properties can be configured before building. Once everything ready, click the BUILD button or the Build & Run button. Build process can be followed in the console window opened separately.
WARNING: Build process is blocking at this moment so the UI tool can look like no-responding, just wait for the process to finish to get control again.
Platforms Supported
rpb can build for multiple platforms, depending on the Host platform and installed SDKs
Host Platform<br>Target Platforms<br>Requirements
Windows<br>Windows<br>w64devkit or VS2022
Windows<br>Linux<br>gcc or clang
Windows<br>Wasm<br>emsdk
Windows<br>Android<br>Android SDK<br>Android NDK
Linux<br>Linux<br>gcc or clang
Linux<br>Wasm<br>emsdk
macOS<br>macOS<br>clang
macOS<br>Wasm<br>emsdk
Wasm<br>...<br>remote-server setup
NOTE: More platforms can be added in the future
Build Steps
Project building process consist of multiple steps, depending on the host and target platforms some of those steps are optional or not available.
Setup environment<br>Download and install required SDKs
Configure required directories
Set environment variables
Build raylib library<br>Set library config options
Set default output directories
Build raylib with selected configuration
Build project<br>Set output directory with required structure
Build project source files (defined by .rpc)
Copy binary to build directory
Process assets<br>Process and package assets
Copy assets to output build assets path
Package project<br>Sign executable and/or package
Compress output build (.zip/.7z)
Create installer for target platform
Run project (depends on host platform)
Project Configuration file
rpb supports loading raylib project configuration files: .rpc.
.rpb configuration files are shared betten rpc and rpb tools. rpc generates a base configuration file on project generation with provided properties and rpb can use that config file information to build the project for multiple platforms.
.rpc is a text and open file format, following a .ini style, and can be freely edited with any text editor.
Expected project structure
The expected project structure defined by the .rpc file should follow 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 // Project main documentation (from template)<br>├── LICENSE // Project source code license (MIT by default)<br>├── EULA.txt // [OPTIONAL] Project End-User-Agreement<br>└── project_name.rpc // Project configuration file, useful for [rpb] tool
Keyboard/Mouse Shortcuts
F1 - Show Help window
F2 - Show About window
F3 - Show Sponsor window
File Controls
LCTRL+O - Load project config (.rpc)
LCTRL+S - Save current project config
LCTRL+LSHFT+S - SaveAs current project config
Build Controls
LCTRL+B - Build current platform
Command-line interface
rpb dektop version comes with command-line support for automated project building. You can check all available options with the following command:
rpb.exe --help
USAGE:<br>> rpb [--help] --input [--output build]<br>[--build ] [--info]<br>OPTIONS:<br>-h, --help : Show tool version and command line usage help<br>-i, --input :...