table of contents
other versions
- wheezy 2.33.12+really2.32.4-5
- jessie 2.42.1-1+b1
- jessie-backports 2.48.0-1~bpo8+1
- testing 2.50.3-2
- unstable 2.50.3-2
- experimental 2.53.2-1
GLIB-COMPILE-RESOU(1) | User Commands | GLIB-COMPILE-RESOU(1) |
NAME¶
glib-compile-resources - GLib resource compilerSYNOPSIS¶
glib-compile-resources
[option...] {file}
DESCRIPTION¶
glib-compile-resources reads the resource description from file and the files that it references and creates a binary resource bundle that is suitable for use with the GResource API. The resulting bundle is then written out as-is, or as C source for linking into an application. The XML resource files normally have the filename extension .gresource.xml. For a detailed description of the XML file format, see the GResource documentation.Options¶
-h, --helpPrint help and exit
--target=TARGETFILE
Store the compiled resources in
TARGETFILE. If not specified a filename based on the file
basename is used.
--sourcedir
The files references in file are loaded
from this directory. If not specified the current directory is used.
--generate
Write the output file in the format selected
for by its filename extension:
.c
--generate-source
C source
.h
C header
.gresource
resource bundle
Instead of a writing the resource bundle in
binary form create a C source file that contains the resource bundle. This can
then be compiled into an application for easy access.
--generate-header
Generate a header file for use with C code
generated by --generate-source.
--generate-dependencies
Prints the list of files that the resource
bundle references to standard output. This can be used to track dependencies
in the build system. For example, the following make rule would mark
test.gresource as depending on all the files that
test.gresource.xml includes, so that is is automatically rebuilt if any
of them change:
Note that this may or may not be portable to non-GNU make.
--c-name
test.gresource: test.gresource.xml $(shell $(GLIB_COMPILE_RESOURCES) --generate-dependencies test.gresource.xml)
Specify the prefix used for the C identifiers
in the code generated by --generate-source and
--generate-headers.
--manual-register
By default code generated by
--generate-source uses automatic initialization of the resource. This
works on most systems by using the compiler support for constructors. However,
some (uncommon) compilers may not support this, you can then specify
--manual-register, which will generate custom register and unregister
functions that your code can manually call at initialization and
uninitialization time.
Environment Variables¶
XMLLINTThe full path to the xmllint executable. This
is used to preprocess resources with the xml-stripblanks preprocessing option.
If this environment variable is not set, xmllint is searched in the
PATH.
GDK_PIXBUF_PIXDATA
The full path to the gdk-pixbuf-pixdata
executable. This is used to preprocess resources with the to-pixdata
preprocessing option. If this environment variable is not set,
gdk-pixbuf-pixdata is searched in the PATH.
SEE ALSO¶
07/14/2012 | User Commands |