This topic describes how to build the Stingray engine and editing tools from a local copy of the source code and libraries.
By default, make.rb places all generated binaries and other required files under the build/binaries sub-directory. In a full build on Windows, this output directory contains:
You can specify a different output location using the --output command-line option.
The simplest way to build everything is to run make.rb on a 64-bit Windows machine.
> make.rb
This downloads all required libraries to your computer. Then it builds the Stingray Editor, the runtime engine, and the legacy authoring tools using the default dev build configuration (see About Stingray build configurations). It also copies the core content files required by the Stingray Editor to the output directory.
To build the runtime engine for a specific platform, add the --platform command-line parameter.
For example:
> make.rb --platform android
Accepted platform values are win32, win64, ios, android, xb1, ps4.
To build the engine for iOS, note that you must run the make.rb script on a Mac. Specifying the platform target is optional, since iOS is the only target that can be built on the Mac.
Code signing is mandatory in Xcode 8. If you are using iOS 8, you need to set one additional environment variable before you run make.rb: SR_IOS_DEVELOPMENT_TEAM. Set its value to the numeric identifier of your Apple Development Team. For example:
export SR_IOS_DEVELOPMENT_TEAM=5557727
To build the engine for Xbox One:
This environment variable should already be set up by the SDK installer.
To build the engine for PlayStation 4:
These environment variables should already be set up by the SDK installer.
Once you have the default build process working, you can try customizing it to add or remove support for various features and components.
You can control the behavior of the make.rb script by specifying a variety of options on the command line. For details on these, run:
> make.rb --help
If you want to customize the build process further, start by studying all the steps in make.rb carefully to understand the main steps in its process. The CMake build relies on scripts located in the cmake sub-directory, and configuration files distributed throughout the source tree. If you are familiar with CMake, you can modify these files yourself if you need to make granular changes to the build.
For background information that can help you understand how the system works, see the CMake documentation.