generate_res.bat: automatic detection if windres.exe is available
This commit is contained in:
1 parent
3575fcf28e
commit
86dc7223e9
1 file changed
+9
-2
@@ -1,3 +1,10 @@
|
|||||||
|
@echo off
|
||||||
REM http://stackoverflow.com/questions/708238/how-do-i-add-an-icon-to-a-mingw-gcc-compiled-executable
|
REM http://stackoverflow.com/questions/708238/how-do-i-add-an-icon-to-a-mingw-gcc-compiled-executable
|
||||||
REM copy "c:\Program Files (x86)\Windows Kits\8.1\Include\um\verrsrc.h" .
|
|
||||||
windres -I ..\..\..\..\lib -O coff -I . -i ..\zstd.rc -o zstd.res
|
where /q windres.exe
|
||||||
|
IF ERRORLEVEL 1 (
|
||||||
|
ECHO The windres.exe is missing. Ensure it is installed and placed in your PATH.
|
||||||
|
EXIT /B
|
||||||
|
) ELSE (
|
||||||
|
windres.exe -I ..\..\..\..\lib -O coff -I . -i ..\zstd.rc -o zstd.res
|
||||||
|
)
|
||||||
Reference in new issue
Block a user