Set the system timer precision to 1 ms while encoding, because this seems to improve...
[LameXP.git] / etc / Deployment / _paths.bat
blob6b82f5179be13f1a773c266de5803eaeff8183c5
1 @echo off
2 set "LAMEXP_ERROR=1"
3 REM ------------------------------------------
4 set "PATH_UPXBIN="
5 set "PATH_MKNSIS="
6 set "PATH_MSCDIR="
7 set "PATH_QTMSVC="
8 set "PATH_GNUPG1="
9 set "PATH_VCPROJ="
10 REM ------------------------------------------
11 set "BUILDENV_TXT=%~dp0\buildenv.txt"
12 if not "%~1"=="" (
13         set "BUILDENV_TXT=%~1"
15 REM ------------------------------------------
16 if not exist "%BUILDENV_TXT%" (
17         echo.
18         echo Could not find 'buildenv.txt' in current directory^!
19         echo Please create your 'buildenv.txt' file from 'buildenv.template.txt' first.
20         echo.
21         pause
22         exit
24 REM ------------------------------------------
25 for /f "tokens=2,*" %%s in (%BUILDENV_TXT%) do (
26         if "%%s"=="PATH_UPXBIN" set "PATH_UPXBIN=%%~t"
27         if "%%s"=="PATH_MKNSIS" set "PATH_MKNSIS=%%~t"
28         if "%%s"=="PATH_MSCDIR" set "PATH_MSCDIR=%%~t"
29         if "%%s"=="PATH_QTMSVC" set "PATH_QTMSVC=%%~t"
30         if "%%s"=="PATH_GNUPG1" set "PATH_GNUPG1=%%~t"
31         if "%%s"=="PATH_VCPROJ" set "PATH_VCPROJ=%%~t"
33 REM ------------------------------------------
34 set "BUILDENV_TXT="
35 REM ------------------------------------------
36 echo === BEGIN PATHS ===
37 echo PATH_UPXBIN = "%PATH_UPXBIN%"
38 echo PATH_MKNSIS = "%PATH_MKNSIS%"
39 echo PATH_MSCDIR = "%PATH_MSCDIR%"
40 echo PATH_QTMSVC = "%PATH_QTMSVC%"
41 echo PATH_GNUPG1 = "%PATH_GNUPG1%"
42 echo PATH_VCPROJ = "%PATH_VCPROJ%"
43 echo === END PATHS ===
44 REM ------------------------------------------
45 set "LAMEXP_ERROR=1"
46 REM ------------------------------------------
47 if not exist "%PATH_UPXBIN%\upx.exe" GOTO:EOF
48 if not exist "%PATH_MKNSIS%\makensis.exe" GOTO:EOF
49 if not exist "%PATH_MSCDIR%\VC\vcvarsall.bat" GOTO:EOF
50 if not exist "%PATH_MSCDIR%\VC\bin\cl.exe" GOTO:EOF
51 if not exist "%PATH_QTMSVC%\bin\uic.exe" GOTO:EOF
52 if not exist "%PATH_QTMSVC%\bin\moc.exe" GOTO:EOF
53 if not exist "%PATH_QTMSVC%\bin\rcc.exe" GOTO:EOF
54 if not exist "%PATH_GNUPG1%\gpg.exe" GOTO:EOF
55 if not exist "%PATH_GNUPG1%\gpg.exe" GOTO:EOF
56 if not exist "%~dp0\..\..\%PATH_VCPROJ%" GOTO:EOF
57 REM ------------------------------------------
58 if exist "%PATH_QTMSVC%\bin\qtvars.bat" goto qtvars_found
59 if exist "%PATH_QTMSVC%\bin\qtenv2.bat" goto qtvars_found
60 GOTO:EOF
61 :qtvars_found
62 REM ------------------------------------------
63 set "LAMEXP_ERROR=0"