windows-x64.sh 643 B

1234567891011121314151617181920212223242526272829303132333435
  1. platform_enter_hook() {
  2. export PATH=$HOME/bin/mingw64/bin:$HOME/bin/mingw64/local/bin:$PATH
  3. BUILD_FLAGS="debuglink"
  4. CONFIG_FLAGS="$CONFIG_FLAGS --platform mingw64 \
  5. --prefix $HOME/bin/mingw64"
  6. }
  7. platform_exit_hook() {
  8. DUMMY=1
  9. }
  10. platform_build_test_hook() {
  11. if [ ! -f mzxrun.exe -o ! -f megazeux.exe ]; then
  12. ERRNO=1
  13. return
  14. fi
  15. file mzxrun.exe | egrep -q "PE32\+.*MS.Windows"
  16. if [ "$?" != "0" ]; then
  17. ERRNO=1
  18. return
  19. fi
  20. file megazeux.exe | egrep -q "PE32\+.*MS.Windows"
  21. if [ "$?" != "0" ]; then
  22. ERRNO=1
  23. return
  24. fi
  25. }
  26. platform_archive_test_hook() {
  27. [ ! -f build/dist/windows-x64/*-x64.zip ] && ERRNO=2
  28. }