CDDL HEADER START
The contents of this file are subject to the terms of the
Common Development and Distribution License (the "License").
You may not use this file except in compliance with the License.
You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
or http://www.opensolaris.org/os/licensing.
See the License for the specific language governing permissions
and limitations under the License.
When distributing Covered Code, include this CDDL HEADER in each
file and include the License file at usr/src/OPENSOLARIS.LICENSE.
If applicable, add the following below this CDDL HEADER, with the
fields enclosed by brackets "[]" replaced with your own identifying
information: Portions Copyright [yyyy] [name of copyright owner]
CDDL HEADER END
Copyright (c) 2009, 2011, Oracle and/or its affiliates. All rights reserved.
te
wxrc [resource_filename]
wxrc [resource_filename] [options]...
The wxrc utility compiles binary xml resource files. It takes one or more file parameters (the input XRC files).
The following options are supported:
-h
--help Show a help message.
-v
--verbose Show verbose logging information
-c
--cpp-code Write C++ source rather than a XRS file
-e
--extra-cpp-code If used together with -c, generates C++ header file containing class definitions for the windows defined by the XRC file (see special subsection)
-u
--uncompressed Do not compress XML files (C++ only)
-g
--gettext Output underscore-wrapped strings that poEdit or gettext can scan. Outputs to stdout, of a file -o is used.
-n
--function <name>: Specify C++ function name (use with -c)
-o
--output <filename>: Specify the output file, such as resource .xrs or resource .cpp.
-l
--list-of-handlers <filename>: Output a list of necessary handlers to this file
Example 1 Compiling resource .xrc file
example$ wxrc reource.xrc example$ wxrc -o reource.xrs
Example 2 Compiling resource .cpp file
example$ wxrc -v -c -o resource.cpp
wx-config(1)