Subversion Repositories filter_foundry

Rev

Rev 331 | Rev 342 | Go to most recent revision | View as "text/x-msdos-batch" | Blame | Compare with Previous | Last modification | View Log | RSS feed

  1. @echo off
  2.  
  3. rem  This file is part of "Filter Foundry", a filter plugin for Adobe Photoshop
  4. rem  Copyright (C) 2003-2009 Toby Thain, toby@telegraphics.com.au
  5. rem  Copyright (C) 2018-2021 Daniel Marschall, ViaThinkSoft
  6. rem  
  7. rem  This program is free software; you can redistribute it and/or modify
  8. rem  it under the terms of the GNU General Public License as published by
  9. rem  the Free Software Foundation; either version 2 of the License, or
  10. rem  (at your option) any later version.
  11. rem  
  12. rem  This program is distributed in the hope that it will be useful,
  13. rem  but WITHOUT ANY WARRANTY; without even the implied warranty of
  14. rem  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  15. rem  GNU General Public License for more details.
  16. rem  
  17. rem  You should have received a copy of the GNU General Public License
  18. rem  along with this program; if not, write to the Free Software
  19. rem  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
  20.  
  21. cd /d %~dp0
  22.  
  23. rem Find latest compiled 32 bit file out of WPJ/VC/MINGW dir
  24. echo Search latest built 32 bit file...
  25. copy /y ..\wpj\FilterFoundry.8bf in\FilterFoundry_wpj.8bf >NUL
  26. copy /y ..\visual_studio\FilterFoundry.8bf in\FilterFoundry_vc.8bf >NUL
  27. copy /y ..\FilterFoundry.8bf in\FilterFoundry_mingw.8bf >NUL
  28. SET FILE1=in\FilterFoundry_wpj.8bf
  29. SET FILE2=in\FilterFoundry_vc.8bf
  30. SET FILE3=in\FilterFoundry_mingw.8bf
  31. if not exist %FILE1% (
  32.         if not exist %FILE2% (
  33.                 if not exist %FILE3% (
  34.                         echo No compiled 32 bit file found! Stop.
  35.                         exit
  36.                 )
  37.         )
  38. )
  39. FOR /F %%i IN ('DIR /B /O:D %FILE1% %FILE2% %FILE3%') DO SET NEWEST=%%i
  40. if "%NEWEST%" == "FilterFoundry_wpj.8bf" (
  41.         set X32COMPILER=OpenWatcom
  42.         set X32TARGET=..\wpj\FilterFoundry.8bf
  43.         move in\FilterFoundry_wpj.8bf in\FilterFoundry.8bf >NUL
  44.         if exist in\FilterFoundry_vc.8bf del in\FilterFoundry_vc.8bf >NUL
  45.         if exist in\FilterFoundry_mingw.8bf del in\FilterFoundry_mingw.8bf >NUL
  46. ) else (
  47.         if "%NEWEST%" == "FilterFoundry_vc.8bf" (
  48.                 set X32COMPILER=VisualCPP
  49.                 set X32TARGET=..\visual_studio\FilterFoundry.8bf
  50.                 if exist in\FilterFoundry_wpj.8bf del in\FilterFoundry_wpj.8bf >NUL
  51.                 move in\FilterFoundry_vc.8bf in\FilterFoundry.8bf >NUL
  52.                 if exist in\FilterFoundry_mingw.8bf del in\FilterFoundry_mingw.8bf >NUL
  53.         ) else (
  54.                 set X32COMPILER=MinGW
  55.                 set X32TARGET=..\FilterFoundry.8bf
  56.                 if exist in\FilterFoundry_wpj.8bf del in\FilterFoundry_wpj.8bf >NUL
  57.                 if exist in\FilterFoundry_vc.8bf del in\FilterFoundry_vc.8bf >NUL
  58.                 move in\FilterFoundry_mingw.8bf in\FilterFoundry.8bf >NUL
  59.         )
  60. )
  61. echo Found: %X32COMPILER%
  62.  
  63. rem Find latest compiled 64 bit file out of VC/MINGW dir
  64. echo Search latest built 64 bit file...
  65. copy /y ..\visual_studio\FilterFoundry64.8bf in\FilterFoundry64_vc.8bf >NUL
  66. copy /y ..\FilterFoundry64.8bf in\FilterFoundry64_mingw.8bf >NUL
  67. SET FILE1=in\FilterFoundry64_vc.8bf
  68. SET FILE2=in\FilterFoundry64_mingw.8bf
  69. if not exist %FILE1% (
  70.         if not exist %FILE2% (
  71.                 echo No compiled 64 bit file found! Stop.
  72.                 exit
  73.         )
  74. )
  75. FOR /F %%i IN ('DIR /B /O:D %FILE1% %FILE2%') DO SET NEWEST=%%i
  76. if "%NEWEST%" == "FilterFoundry64_vc.8bf" (
  77.         set X64COMPILER=VisualCPP
  78.         set X64TARGET=..\visual_studio\FilterFoundry64.8bf
  79.         move in\FilterFoundry64_vc.8bf in\FilterFoundry64.8bf >NUL
  80.         if exist in\FilterFoundry64_mingw.8bf del in\FilterFoundry64_mingw.8bf >NUL
  81. ) else (
  82.         set X64COMPILER=MinGW
  83.         set X64TARGET=..\FilterFoundry64.8bf
  84.         if exist in\FilterFoundry64_vc.8bf del in\FilterFoundry64_vc.8bf >NUL
  85.         move in\FilterFoundry64_mingw.8bf in\FilterFoundry64.8bf >NUL
  86. )
  87. echo Found: %X64COMPILER%
  88.  
  89. rem Now start the mixer!
  90. echo.
  91. echo Now start the mixer!
  92. foundry_3264_mixer.exe
  93. echo.
  94.  
  95. rem Copy back 32 bit to original build dir, to enable debugging in IDE
  96. echo Copy back 32 bit to %X32COMPILER% build dir, to enable debugging in IDE
  97. copy /y out\FilterFoundry.8bf %X32TARGET%
  98.  
  99. rem Copy back 64 bit to original build dir, to enable debugging in IDE
  100. echo Copy back 64 bit to %X64COMPILER% build dir, to enable debugging in IDE
  101. copy /y out\FilterFoundry64.8bf %X64TARGET%
  102. echo .
  103.