X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/8e1903816a062dc126a609ed5ef5d02f43fe3ca7..d5cc191c9cd48a915ce0dfc6e49511b2fddb6746:/utils/ifacecheck/rungccxml.sh.in diff --git a/utils/ifacecheck/rungccxml.sh.in b/utils/ifacecheck/rungccxml.sh.in index 57a463b008..c933d4dffc 100755 --- a/utils/ifacecheck/rungccxml.sh.in +++ b/utils/ifacecheck/rungccxml.sh.in @@ -31,10 +31,9 @@ if [[ ! -z "$1" ]]; then fi me=$(basename $0) -path=${0%%/$me} -current=$(pwd) # current path +current=$(pwd)/${0%%/$me} # current path -#gccxmloutput="$current/$gccxmloutput" +gccxmloutput="$current/$gccxmloutput" cd @top_srcdir@/include # go to wx include folder @@ -51,7 +50,9 @@ for f in $headerlist; do done # filter the configure flags to pass to gccxml -flags="@CXXFLAGS@" +wx_top_builddir="@wx_top_builddir@" +top_srcdir="@top_srcdir@" +flags="@CPPFLAGS@ @CXXFLAGS@" # NOTE: it's important to define __WXDEBUG__ because some functions of wx # are declared (and thus parsed by gcc) only if that symbol is defined. @@ -74,6 +75,10 @@ fi # can be passed to ifacecheck to aid the comparison echo "Running gccxml's preprocessor on the $allheaders file... results in $preprocoutput" gccxml -E -dM $flags >$preprocoutput +if [[ $? != 0 ]]; then + echo "Errors running gccxml preprocessor... aborting." + exit +fi # cleanup rm $allheaders