*** empty log message ***
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28299 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
04bd3f56d2
commit
8708fa7618
9 changed files with 268 additions and 76 deletions
31
wx-config.in
31
wx-config.in
|
|
@ -144,29 +144,13 @@ get_ldflags_gui()
|
|||
echo $flags_to_ret
|
||||
}
|
||||
|
||||
# return the absolute path prepending builddir to it if needed
|
||||
makeabs()
|
||||
{
|
||||
path=$1
|
||||
# TODO: this only works under Unix and even there it could be
|
||||
# enhanced to remove ".." and "."
|
||||
if [ `echo $path | sed 's/^\(.\).*/\1/'` != "/" ]; then
|
||||
if [ $path = "." ]; then
|
||||
path=$builddir
|
||||
else
|
||||
path="$builddir/$path"
|
||||
fi
|
||||
fi
|
||||
|
||||
echo $path
|
||||
}
|
||||
|
||||
usage()
|
||||
{
|
||||
cat <<EOF
|
||||
Usage: wx-config [--prefix[=DIR]] [--exec-prefix[=DIR]] [--inplace]
|
||||
[--version] [--release]
|
||||
[--basename] [--static] [--libs] [--gl-libs]
|
||||
[--toolkit=TOOLKIT] [--unicode[=yes|no]] [--debug[=yes|no]]
|
||||
[--universal[=yes|no]] [--version[=VERSION]] [--release]
|
||||
[--list] [--basename] [--static] [--libs] [--gl-libs]
|
||||
[--cppflags] [--cflags] [--cxxflags] [--ldflags] [--rezflags]
|
||||
[--cc] [--cxx] [--ld] [LIBRARIES]
|
||||
|
||||
|
|
@ -197,6 +181,11 @@ in by default.
|
|||
|
||||
--gl-libs option is deprecated, use "--libs gl" instead.
|
||||
|
||||
If there are several different builds of wxWidgets installed in same prefix,
|
||||
you can use --toolkit, --unicode, --debug, --universal and --version options
|
||||
to select one of them. Use --list option to show all available builds that
|
||||
match given criteria.
|
||||
|
||||
EOF
|
||||
|
||||
exit $1
|
||||
|
|
@ -305,11 +294,7 @@ while test $# -gt 0; do
|
|||
|
||||
case $1 in
|
||||
--inplace)
|
||||
prefix=`makeabs $srcdir`
|
||||
exec_prefix=`makeabs $builddir`
|
||||
exec_prefix_set=yes
|
||||
inplace_flag=yes
|
||||
update_prefixes
|
||||
;;
|
||||
--prefix=*)
|
||||
prefix=$optarg
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue