X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/5570107a9da8c64390b07e78a1842f10cfd5f75b..42b9f2001e3c6197a2b21a6a7901f75c93367ec3:/utils/ifacecheck/rungccxml.sh.in diff --git a/utils/ifacecheck/rungccxml.sh.in b/utils/ifacecheck/rungccxml.sh.in index fcd58240cc..d50c4189ea 100755 --- a/utils/ifacecheck/rungccxml.sh.in +++ b/utils/ifacecheck/rungccxml.sh.in @@ -34,7 +34,7 @@ me=$(basename $0) path=${0%%/$me} current=$(pwd) # current path -gccxmloutput="$current/$gccxmloutput" +#gccxmloutput="$current/$gccxmloutput" cd @top_srcdir@/include # go to wx include folder @@ -44,6 +44,7 @@ headerlist=`$listcmd | grep -v wxshl | grep -v wx_cw | grep -v setup | grep -v x cd $current # return to the original path # create the header file to pass to gccxml +echo "Creating the $allheaders dummy file which #includes all wxWidgets interface header files..." if [[ -f $allheaders ]]; then rm $allheaders; fi for f in $headerlist; do echo "#include <$f>" >> $allheaders @@ -61,14 +62,22 @@ flags=`echo "$flags" | sed -e 's/-pthread//g' | sed -e 's/__WXDEBUG__//g'` flags="-I . -I @top_srcdir@/include $flags -D__WXDEBUG__ -D__WX@TOOLKIT@__ -DWXBUILDING $allheaders" # run gccxml with the same flag used for the real compilation of wx sources: -echo "Running gccxml on the $allheaders file..." +echo "Running gccxml on the $allheaders file... results in $gccxmloutput" if [[ -f "$gccxmloutput" ]]; then rm $gccxmloutput; fi gccxml $flags -fxml=$gccxmloutput +if [[ $? != 0 ]]; then + echo "Errors running gccxml... aborting." + exit +fi # now get the list of the #defined values for wx headers, so that the result # can be passed to ifacecheck to aid the comparison -echo "Running gccxml's preprocessor on the $allheaders file..." +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