SEARCH
NEW RPMS
DIRECTORIES
ABOUT
FAQ
VARIOUS
BLOG
DONATE


YUM REPOSITORY

 
 

MAN page from PCLinuxOS glib2.0-common-2.56.1-1pclos2018.x86_64.rpm

GLIB\-COMPILE\-RESOU

Section: User Commands (1)
Updated:
Index 

NAME

glib-compile-resources - GLib resource compiler 

SYNOPSIS

glib-compile-resources [OPTION...] {FILE}
 

DESCRIPTION

glib-compile-resources

reads the resource description fromFILEand the files that it references and creates a binary resource bundle that is suitable for use with theGResourceAPI. 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 theGResourcedocumentation. 

OPTIONS

-h, --help

Print help and exit

--version

Print program version and exit

--target=TARGET

Store the compiled resources in the fileTARGET. If not specified a filename based on theFILEbasename is used.

--sourcedir=DIRECTORY

The files referenced inFILEare 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

C source

.h

C header

.gresource

resource bundle

--generate-source

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 marktest.gresourceas depending on all the files thattest.gresource.xmlincludes, so that is is automatically rebuilt if any of them change:

test.gresource: test.gresource.xml $(shell $(GLIB_COMPILE_RESOURCES) --generate-dependencies test.gresource.xml)

Note that this may or may not be portable to non-GNUmake.

Also see--dependency-file.

--c-name

Specify the prefix used for the C identifiers in the code generated by--generate-sourceand--generate-header.

--manual-register

By default code generated by--generate-sourceuses 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.

--internal

By default code generated by--generate-sourcedeclares all initialization functions asextern. So they are exported unless this is prevented by a link script or other means. Since libraries usually want to use the functions only internally it can be more useful to declare them asG_GNUC_INTERNALwhich is what--internaldoes.

--dependency-file=FILE

Write dependencies in the same style as gcc -M -MF to the given file. IfFILEis -, the dependencies are written to the standard output. Unlike--generate-dependencies, this option can be combined with other--generateoptions to generate dependencies as a side-effect of generating sources.

--generate-phony-targets

When creating a dependency file with--dependency-fileinclude phony targets in the same style as gcc -MP. This would typically be used withmake.
 

ENVIRONMENT

XMLLINT

The full path to the xmllint executable. This is used to preprocess resources with thexml-stripblankspreprocessing option. If this environment variable is not set, xmllint is searched in thePATH.

GDK_PIXBUF_PIXDATA

The full path to the gdk-pixbuf-pixdata executable. This is used to preprocess resources with theto-pixdatapreprocessing option. If this environment variable is not set, gdk-pixbuf-pixdata is searched in thePATH.


 

Index

NAME
SYNOPSIS
DESCRIPTION
OPTIONS
ENVIRONMENT

This document was created byman2html,using the manual pages.