-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild_jpegli.cmd
54 lines (43 loc) · 1.97 KB
/
build_jpegli.cmd
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
@echo off
cd /d "%~dp0"
call build_checkout_jpegli.cmd
cd jpegli
cmake -G "Visual Studio 17 2022" -A Win32 ^
-B "build_Win32_release" ^
-DCMAKE_INSTALL_PREFIX="out_Win32_release" ^
-DCMAKE_BUILD_TYPE=Release ^
-DCMAKE_MSVC_RUNTIME_LIBRARY="MultiThreaded$<$<CONFIG:Debug>:Debug>" ^
-DBUILD_TESTING=OFF ^
-DJPEGXL_ENABLE_TCMALLOC=OFF ^
-DJPEGXL_ENABLE_FUZZERS=OFF ^
-DJPEGXL_ENABLE_VIEWERS=OFF ^
-DJPEGXL_ENABLE_BENCHMARK=OFF ^
-DJPEGXL_STATIC=ON
cmake --build "build_Win32_release" --config Release --target install
cmake -G "Visual Studio 17 2022" -A x64 ^
-B "build_x64_release" ^
-DCMAKE_INSTALL_PREFIX="out_x64_release" ^
-DCMAKE_BUILD_TYPE=Release ^
-DCMAKE_MSVC_RUNTIME_LIBRARY="MultiThreaded$<$<CONFIG:Debug>:Debug>" ^
-DBUILD_TESTING=OFF ^
-DJPEGXL_ENABLE_TCMALLOC=OFF ^
-DJPEGXL_ENABLE_FUZZERS=OFF ^
-DJPEGXL_ENABLE_VIEWERS=OFF ^
-DJPEGXL_ENABLE_BENCHMARK=OFF ^
-DJPEGXL_STATIC=ON
cmake --build "build_x64_release" --config Release --target install
cd ..\
xcopy /y jpegli\build_Win32_release\lib\include\jpegli\*.h include\Win32\
xcopy /y jpegli\lib\jpegli\common.h include\Win32\lib\jpegli\
xcopy /y jpegli\lib\jpegli\decode.h include\Win32\lib\jpegli\
xcopy /y jpegli\lib\jpegli\types.h include\Win32\lib\jpegli\
xcopy /y jpegli\lib\base\include_jpeglib.h include\Win32\lib\base\
xcopy /y jpegli\build_Win32_release\third_party\highway\Release\hwy.lib lib\Win32\Release\
xcopy /y jpegli\build_Win32_release\lib\Release\jpegli-static.lib lib\Win32\Release\
xcopy /y jpegli\build_x64_release\lib\include\jpegli\*.h include\x64\
xcopy /y jpegli\lib\jpegli\common.h include\x64\lib\jpegli\
xcopy /y jpegli\lib\jpegli\decode.h include\x64\lib\jpegli\
xcopy /y jpegli\lib\jpegli\types.h include\x64\lib\jpegli\
xcopy /y jpegli\lib\base\include_jpeglib.h include\x64\lib\base\
xcopy /y jpegli\build_x64_release\third_party\highway\Release\hwy.lib lib\x64\Release\
xcopy /y jpegli\build_x64_release\lib\Release\jpegli-static.lib lib\x64\Release\