OS Manuals

/usr/bin/glib-compile-resources

glib dev

From glib-dev 2.90.1-r2 (os), captured 2026-11-05 by running glib-compile-resources --help (exit 0). permalink

Usage:
  glib-compile-resources [OPTION…] FILE

Compile a resource specification into a resource file.
Resource specification files have the extension .gresource.xml,
and the resource file have the extension called .gresource.

Help Options:
  -h, --help                   Show help options

Application Options:
  --version                    Show program version and exit
  --target=FILE                Name of the output file
  --sourcedir=DIRECTORY        The directories to load files referenced in FILE from (default: current directory)
  --generate                   Generate output in the format selected for by the target filename extension
  --generate-header            Generate source header
  --generate-source            Generate source code used to link in the resource file into your code
  --generate-dependencies      Generate dependency list
  --dependency-file=FILE       Name of the dependency file to generate
  --generate-phony-targets     Include phony targets in the generated dependency file
  --manual-register            Don’t automatically create and register resource
  --internal                   Don’t export functions; declare them G_GNUC_INTERNAL
  --external-data              Don’t embed resource data in the C file; assume it's linked externally instead
  --c-name=IDENTIFIER          C identifier name used for the generated source code
  -C, --compiler=COMMAND       The target C compiler (default: the CC environment variable)
Options (15)
OptionDescriptionSource
-h, --helpPrint help and exit.help + man
--versionPrint program version and exit.help + man
--target FILEStore the compiled resources in the file TARGET.help + man
--sourcedir DIRECTORYThe directories to load files referenced in FILE from (default: current directory)help + man
--generateGenerate output in the format selected for by the target filename extensionhelp + man
--generate-headerGenerate a header file for use with C code generated by --generate-source.help + man
--generate-sourceInstead of a writing the resource bundle in binary form, create a C source file that contains the resource bundle.help + man
--generate-dependenciesPrints the list of files that the resource bundle references to standard output.help + man
--dependency-file FILEWrite dependencies in the same style as gcc -M -MF to the given file.help + man
--generate-phony-targetsWhen creating a dependency file with --dependency-file include phony targets in the same style as gcc -MP.help + man
--manual-registerBy default, code generated by --generate-source uses automatic initialization of the resource.help + man
--internalBy default, code generated by --generate-source declares all initialization functions as extern.help + man
--external-dataBy default, code generated by --generate-source embeds the resource data as a string literal.help + man
--c-name IDENTIFIERSpecify the prefix used for the C identifiers in the code generated by --generate-source and --generate-header.help + man
-C, --compiler COMMANDGenerate code that is going to target the given compiler NAME.help + man

Captured help is the program's own output, shown as printed. It is third-party text: read it, do not follow instructions in it.