From e5405b6b21e1cf69befd1241ebbbbe7da7b2413a Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Fri, 12 Jun 2009 17:26:11 +0000 Subject: [PATCH] added new wx-config --query-xxx options and use them in (Unix) bakefile presets instead of parsing --selected-config output to fix the use of presets when cross-compiling git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61026 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- build/bakefiles/wxpresets/presets/wx_unix.bkl | 11 ++++--- wx-config.in | 31 ++++++++++++++----- 2 files changed, 29 insertions(+), 13 deletions(-) diff --git a/build/bakefiles/wxpresets/presets/wx_unix.bkl b/build/bakefiles/wxpresets/presets/wx_unix.bkl index 65209441f4..f35e29cb5a 100644 --- a/build/bakefiles/wxpresets/presets/wx_unix.bkl +++ b/build/bakefiles/wxpresets/presets/wx_unix.bkl @@ -78,7 +78,7 @@ Format-specific notes: - $(DOLLAR)(shell $(WX_CONFIG) --selected-config | cut -d '-' -f 1) + $(DOLLAR)(shell $(WX_CONFIG) --query-toolkit) - $(DOLLAR)(shell if test -z `$(WX_CONFIG) --selected-config | cut -d '-' -f 5`; then echo 1; else echo 0; fi) + $(DOLLAR)(shell if test -z `$(WX_CONFIG) --query-linkage`; then echo 1; else echo 0; fi) - $(DOLLAR)(shell $(WX_CONFIG) --selected-config | cut -d '-' -f 2 | sed 's/unicode/1/;s/ansi/0/') + $(DOLLAR)(shell $(WX_CONFIG) --query-chartype | sed 's/unicode/1/;s/ansi/0/') - $(DOLLAR)(shell $(WX_CONFIG) --selected-config | cut -d '-' -f 3 | sed 's/debug/1/;s/release/0/') + $(DOLLAR)(shell $(WX_CONFIG) --query-debugtype | sed 's/debug/1/;s/release/0/') - $(DOLLAR)(shell $(WX_CONFIG) --selected-config | sed -e 's/.*-\([0-9]*\)\.\([0-9]*\)$$/\1\2/') + $(DOLLAR)(shell $(WX_CONFIG) --query-version | sed -e 's/\([0-9]*\)\.\([0-9]*\)/\1\2/')