aboutsummaryrefslogtreecommitdiff
path: root/VMProtect/res.bat
blob: 930489d0d3e222d8b18142f60fa8700c41e43f6b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
echo res.bat: generating QT resources...
SET RC_DIR=%~dp0

set rc_out=%RC_DIR%resources.cc
set rc=%rc_out%
set check_rc=0
if exist %rc_out% (
    set rc_out=%RC_DIR%resources.cc.tmp
    set check_rc=1
)
%QTDIR%/msvc2015_64/bin/rcc.exe %RC_DIR%application.qrc -o %rc_out%

call :ReplaceOld %check_rc% %rc_out% %rc%
goto :EOF

:ReplaceOld
setlocal enableextensions enabledelayedexpansion
if "%1" == "1" (
  fc %2 %3 /B>>nul 2>&1
  if !ERRORLEVEL! == 1 (
   copy /y %2 %3>>nul 2>&1
   del %2>>nul 2>&1
   echo  res.bat: QT resources '%3' are updated 
  ) else (
   echo  res.bat: QT resources '%3' are up to date
  )
) else (
 echo  res.bat: QT resources '%3' are generated
)
endlocal
goto :EOF