-
Notifications
You must be signed in to change notification settings - Fork 4
/
build.bat
87 lines (48 loc) · 2.34 KB
/
build.bat
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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
@echo off
echo ____________________________________________
echo making dcraw for imagemagick
rem 20171228 13:42
rem 20100606 05:03
rem --------------------------------------------------------------------------------------------------
echo ____________________________________________
echo configuring build env...
rem pas nécessaire si tout par devenv
rem call "c:\Program Files\Microsoft Visual Studio 9.0\VC\vcvarsall.bat" x86
rem call "C:\Program Files\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" x86
set src=%~dp0
call "C:\Program Files\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvars32.bat"
cd /D %src%
rem --------------------------------------------------------------------------------------------------
echo ____________________________________________
echo starting build...
rem ****************************************************************************
echo ____________________________________________
echo building dcraw...
echo patching...
cd dcraw\
copy dcraw.c dcraw_im.c
..\bin\patch -p0 dcraw_im.c < dcraw900_1433im_diff.txt
echo building...
rem cl /MT /nologo /O2 /Ox -c /arch:SSE2 -D_X86_=1 /D_WINDOWS /D_WIN32_WINDOWS=0x501 /DWINVER=0x501 /D_CRT_SECURE_NO_WARNINGS /D_WIN32 /DWIN32 /I ../lcms/include /I ../libjpeg/jpeg dcraw_im.c
cl /ML /nologo /O2 /Ox -c /arch:SSE2 -D_X86_=1 /D_WINDOWS /D_WIN32_WINDOWS=0x0601 /DWINVER=0x0601 /D_CRT_SECURE_NO_WARNINGS /D_WIN32 /DWIN32 /I ../lcms/include /I ../libjpeg/jpeg dcraw_im.c
rc.exe /l 0x809 /fo"dcraw.res" /d "NDEBUG" dcraw.rc
link dcraw_im.obj dcraw.res User32.lib ..\lcms\Lib\MS\lcms.lib ..\libjpeg\jpeg\libjpeg.lib /LTCG /RELEASE /subsystem:console,6.01
rem devenv .\dcraw.sln /build Release /project "dcraw" /projectconfig "Release|Win32"
echo diffing...
..\bin\diff -ru dcraw.c dcraw_im.c > dcraw_im_diff.txt
echo testing...
dcraw_im.exe
dcraw_im.exe -v -i _OLE0543.NEF
dcraw_im.exe -4 -w -O _OLE0543-900.ppm _OLE0543.NEF
dcraw_im.exe -4 -w -T _OLE0543.NEF
dcraw_im.exe -4 -w -T -O _OLE0543-900.jpg _OLE0543.NEF
dcraw_im.exe -4 -w -T -O _OLE0543-900.tif _OLE0543.NEF
dcraw_im.exe -e _OLE0543.NEF
echo dcraw build successfull...
copy dcraw_im.exe ..\dcraw.exe
cd ..
rem --------------------------------------------------------------------------------------------------
echo ____________________________________________
echo nettoyage...
:fin
pause