-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathlibraw.bat
More file actions
62 lines (40 loc) · 1009 Bytes
/
libraw.bat
File metadata and controls
62 lines (40 loc) · 1009 Bytes
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
@echo off
title Building LibRaw
set arch=%1
set vcvar=
set progFile=
::check default
set vswhereFile="%ProgramFiles%\Microsoft Visual Studio\Installer\vswhere.exe"
if exist %vswhereFile% (
goto setprogfile
)
goto check86
:setprogfile
set progFile=%ProgramFiles%
goto vswhereFound
:check86
set vswhereFile86="%ProgramFiles(x86)%\Microsoft Visual Studio\Installer\vswhere.exe"
if exist "%vswhereFile86%" (
set progFile=%vswhereFile86%
goto vswhereFound
)
goto fileNotFound
:vswhereFound
set vcvar=
for /f "usebackq tokens=1 delims=" %%x in (`%progFile% -find **\vcvarsall.bat`) do set vcvar="%%~x"
if defined vcvar goto fileFound
:fileNotFound
echo "unable to find 'vcvarsall.bat'. visual studio c++ package needs to be installed"
exit /b 2
:fileFound
echo "vcvarsall.bat was found, continuing"
call %vcvar% %arch%
cd ../LibRaw
git clean -xd -f lib -f bin -f object
if "%arch%" == "x64" (
nmake -f makefile_x64.msvc
)
if "%arch%" == "x86" (
nmake -f makefile_x86.msvc
)
cd ../build