Section: ICU 63.1 Manual (1)
Updated: 6 February 2009
- package data for use by ICU
, --comment comment
, --mode mode
, --name name
, --bldopt options
, --entrypoint name
, --revision version
, --sourcedir source
, --destdir destination
, --tempdir directory
takes a set of data files and packages them for use by ICU or
applications that use ICU. The typical reason to package files using
is to make their distribution easier and their loading by ICU faster
and less consuming of limited system resources such as file
Packaged data also allow applications to be distributed with fewer
resource files, or even with none at all if they link against the
packaged data directly.
supports a few different methods of packaging data that serve
The default packaging
In this mode, the different data files are bundled together as an
architecture-dependent file that can later be memory mapped for use by
ICU. Data packaged using this mode will be looked up under the ICU
data directory. Such packaging is easy to use for applications resource
bundles, for example, as long as the application can install the
packaged file in the ICU data directory.
Another packaging mode is the
mode, where the data files are compiled into a shared library. ICU
used to be able to dynamically load these shared libraries, but as of
ICU 2.0, such support has been removed. This mode is still useful for
two main purposes: to build ICU itself, as the ICU data is packaged as
a shared library by default; and to build resource bundles that are
linked to the application that uses them. Such resource bundles can
then be placed anywhere where the system's dynamic linker will be
looking for shared libraries, instead of being forced to live inside
the ICU data directory.
packaging mode is similar to the shared library one except that it
produces a static library.
mode which simply copies the data files instead of packaging
them as a single file or library. This mode is mainly intended to
provide support for building ICU before it is packaged as separate
small packages for distribution with operating systems such as Debian
GNU/Linux for example. Please refer to the packaging documentation in
the ICU source distribution for further information on the use of this
builds, packages, installs, or cleans the appropriate data based on the options given
without the need to call GNU
- -h, -?, --help
Print help about usage and exit.
- -v, --verbose
Display extra informative messages during execution.
- -c, --copyright
Include a copyright notice in the binary data.
- -C, --comment comment
Includes the specified
in the resulting data instead of the ICU copyright notice.
- -m, --mode mode
Set the packaging
to be used by
The different modes and their meaning are explained in the
section above. The valid mode names are
- -O, --bldopt options
Specify options for the builder. The builder is used internally by
to generate the correct packaged file. Such options include, but are
not limited to, setting variables used by
during the build of the packaged file. Note: If
is available, then this option is not needed.
- -p, --name name
Set the packaged file name to
This name is also used as the default entry point name after having
been turned into a valid C identifier.
- -e, --entrypoint name
Set the data entry point (used for linking against the data in a
shared library form) to
The default entry point name is the name set by the
- -r, --revision version
Enable versioning of the shared library produced in
mode. The version number has the format
and all parts except for
are optional. If only
is supplied then the version is
assumed to be
for versioning purposes.
- -F, --rebuild
Force the rebuilding of all data and their repackaging.
- -I, --install
Install the packaged file (or all the files in the
mode). If the variable
is set it will be used for installation.
- -s, --sourcedir source
Set the source directory to
The default source directory is the current directory.
- -d, --destdir destination
Set the destination directory to
The default destination directory is the current directory.
- -T, --tempdir directory
Set the directory used to generate temporary files to
The default temporary directory is the same as the destination
as set by the
Copyright (C) 2000-2009 IBM, Inc. and others.