Resource compiler

Utility for compiling data resources via command-line.

Produces compiled C++ file with data in hexadecimal representation to be used with Utility::Resource. See Resource management for brief introduction.

This utility is built if WITH_RC is enabled when building Corrade. To use this utility with CMake, see the corrade_add_resource() macro. To use it directly, you need to request the rc component of the Corrade package and use the Corrade::rc target for example in a custom command:

find_package(Corrade REQUIRED rc)

add_custom_command(OUTPUT ... COMMAND Corrade::rc ...)

See Downloading and building Corrade, Using Corrade with CMake and the Utility namespace for more information.

Usage

corrade-rc [-h|--help] [--] name resources.conf outfile.cpp

Arguments:

  • resources.conf — resource configuration file (see Utility::Resource for format description)
  • outfile.cpp — output file
  • -h, --help — display this help message and exit