testfiledye.sh 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. #!/bin/bash
  2. cd ../src
  3. export includes="-I. -I/usr/include -I/usr/include/SDL -I/usr/include/libxml2"
  4. export LOGFILE="../build/testfile.log"
  5. function run {
  6. export CXX="g++"
  7. export CMD="$CXX -c $1 $2 $3"
  8. echo $CMD >>${LOGFILE}
  9. $CMD 2>>${LOGFILE}
  10. export CMD="$CXX -c -std=gnu++1z $1 $2 $3"
  11. $CMD 2>>${LOGFILE}
  12. ../../deheader/deheader -q -i "\"debug.h\"" \
  13. -i "\"utils/checkutils.h\"" \
  14. -i "\"utils/sdlcheckutils.h\"" \
  15. -i "\"sdlshared.h\"" \
  16. -i "\"localconsts.h\"" \
  17. -i "\"utils/fuzzer.h\"" \
  18. -i "\"$name\"" \
  19. -c "$CXX" \
  20. -d "$1" \
  21. -s "-std=gnu++1z" \
  22. -m "-c -Werror -Wall -Wextra -Wundef -Wmissing-declarations -DLOCALEDIR=\\\"\\\" $2" $3 \
  23. | grep -v "portability requires" >> ${LOGFILE}
  24. echo ---------------------------- >>${LOGFILE}
  25. }
  26. echo >${LOGFILE}
  27. run "-DENABLE_LIBXML -DDYECMD" "$includes" "$1"
  28. run "-DENABLE_LIBXML -DUSE_OPENGL -DDYECMD" "$includes" "$1"
  29. run "-DENABLE_LIBXML -DENABLE_NLS -DDYECMD" "$includes" "$1"
  30. run "-DENABLE_LIBXML -DTMWA_SUPPORT -DDYECMD" "$includes" "$1"
  31. run "-DENABLE_LIBXML -DTMWA_SUPPORT -DUSE_OPENGL -DDYECMD" "$includes" "$1"
  32. run "-DENABLE_LIBXML -DTMWA_SUPPORT -DUSE_OPENGL -DUSE_X11 -DDYECMD" "$includes" "$1"
  33. run "-DENABLE_LIBXML -DTMWA_SUPPORT -DUSE_X11 -DDYECMD" "$includes" "$1"
  34. run "-DENABLE_PUGIXML -DDYECMD" "$includes" "$1"
  35. run "-DENABLE_PUGIXML -DUSE_OPENGL -DDYECMD" "$includes" "$1"
  36. run "-DENABLE_PUGIXML -DENABLE_NLS -DDYECMD" "$includes" "$1"
  37. run "-DENABLE_PUGIXML -DTMWA_SUPPORT -DDYECMD" "$includes" "$1"
  38. run "-DENABLE_PUGIXML -DTMWA_SUPPORT -DUSE_OPENGL -DDYECMD" "$includes" "$1"
  39. run "-DENABLE_PUGIXML -DTMWA_SUPPORT -DUSE_OPENGL -DUSE_X11 -DDYECMD" "$includes" "$1"
  40. run "-DENABLE_PUGIXML -DTMWA_SUPPORT -DUSE_X11 -DDYECMD" "$includes" "$1"
  41. export includes="-I. -I/usr/include -I/usr/include/SDL2 -I/usr/include/libxml2"
  42. run "-DENABLE_LIBXML -DUSE_SDL2 -DDYECMD" "$includes" "$1"
  43. run "-DENABLE_LIBXML -DUSE_SDL2 -DUSE_OPENGL -DDYECMD" "$includes" "$1"
  44. run "-DENABLE_LIBXML -DUSE_SDL2 -DENABLE_NLS -DDYECMD" "$includes" "$1"
  45. run "-DENABLE_LIBXML -DUSE_SDL2 -DTMWA_SUPPORT -DDYECMD" "$includes" "$1"
  46. run "-DENABLE_LIBXML -DUSE_SDL2 -DTMWA_SUPPORT -DUSE_OPENGL -DDYECMD" "$includes" "$1"
  47. run "-DENABLE_LIBXML -DUSE_SDL2 -DTMWA_SUPPORT -DUSE_OPENGL -DUSE_X11 -DDYECMD" "$includes" "$1"
  48. run "-DENABLE_LIBXML -DUSE_SDL2 -DTMWA_SUPPORT -DUSE_X11 -DDYECMD" "$includes" "$1"
  49. run "-DENABLE_PUGIXML -DUSE_SDL2 -DDYECMD" "$includes" "$1"
  50. run "-DENABLE_PUGIXML -DUSE_SDL2 -DUSE_OPENGL -DDYECMD" "$includes" "$1"
  51. run "-DENABLE_PUGIXML -DUSE_SDL2 -DENABLE_NLS -DDYECMD" "$includes" "$1"
  52. run "-DENABLE_PUGIXML -DUSE_SDL2 -DTMWA_SUPPORT -DDYECMD" "$includes" "$1"
  53. run "-DENABLE_PUGIXML -DUSE_SDL2 -DTMWA_SUPPORT -DUSE_OPENGL -DDYECMD" "$includes" "$1"
  54. run "-DENABLE_PUGIXML -DUSE_SDL2 -DTMWA_SUPPORT -DUSE_OPENGL -DUSE_X11 -DDYECMD" "$includes" "$1"
  55. run "-DENABLE_PUGIXML -DUSE_SDL2 -DTMWA_SUPPORT -DUSE_X11 -DDYECMD" "$includes" "$1"