#pragma requires
directives
#pragma requires
is recognized by both the genom-pcpp
preprocessor and GenoM. This can be used to indicate an external
dependency on a package using the pkg-config
utility (see
http://www.freedesktop.org/wiki/Software/pkg-config).
#pragma requires "package [ >= version ]"
#pragma requires
accepts a string argument in the form package
[>= version]
. genom-pcpp
interprets it by running pkg-config
--cflags
on the string argument. It then adds the resulting -I
and
-D
flags as if they had been passed on the command line
(see General options). Note that the flags are added at the
current processing location, so they do not influence already preprocessed
input. The pkg-config
utility is found in PATH, or via the
PKG_CONFIG environment variable if defined (see Environment variables).
GenoM also recognizes #pragma requires
. It handles it by adding
the string argument to the require
property of all the
components defined in a specification (see Component declaration).