Mercurial > hg > forks > libbpg
comparison x265/build/vc11-x86_64/multilib.bat @ 0:772086c29cc7
Initial import.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Wed, 16 Nov 2016 11:16:33 +0200 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:772086c29cc7 |
---|---|
1 @echo off | |
2 if "%VS110COMNTOOLS%" == "" ( | |
3 msg "%username%" "Visual Studio 11 not detected" | |
4 exit 1 | |
5 ) | |
6 | |
7 call "%VS110COMNTOOLS%\..\..\VC\vcvarsall.bat" | |
8 | |
9 @mkdir 12bit | |
10 @mkdir 10bit | |
11 @mkdir 8bit | |
12 | |
13 @cd 12bit | |
14 cmake -G "Visual Studio 11 Win64" ../../../source -DHIGH_BIT_DEPTH=ON -DEXPORT_C_API=OFF -DENABLE_SHARED=OFF -DENABLE_CLI=OFF -DMAIN12=ON | |
15 if exist x265.sln ( | |
16 MSBuild /property:Configuration="Release" x265.sln | |
17 copy/y Release\x265-static.lib ..\8bit\x265-static-main12.lib | |
18 ) | |
19 | |
20 @cd ..\10bit | |
21 cmake -G "Visual Studio 11 Win64" ../../../source -DHIGH_BIT_DEPTH=ON -DEXPORT_C_API=OFF -DENABLE_SHARED=OFF -DENABLE_CLI=OFF | |
22 if exist x265.sln ( | |
23 MSBuild /property:Configuration="Release" x265.sln | |
24 copy/y Release\x265-static.lib ..\8bit\x265-static-main10.lib | |
25 ) | |
26 | |
27 @cd ..\8bit | |
28 if not exist x265-static-main10.lib ( | |
29 msg "%username%" "10bit build failed" | |
30 exit 1 | |
31 ) | |
32 if not exist x265-static-main12.lib ( | |
33 msg "%username%" "12bit build failed" | |
34 exit 1 | |
35 ) | |
36 cmake -G "Visual Studio 11 Win64" ../../../source -DEXTRA_LIB="x265-static-main10.lib;x265-static-main12.lib" -DLINKED_10BIT=ON -DLINKED_12BIT=ON | |
37 if exist x265.sln ( | |
38 MSBuild /property:Configuration="Release" x265.sln | |
39 :: combine static libraries (ignore warnings caused by winxp.cpp hacks) | |
40 move Release\x265-static.lib x265-static-main.lib | |
41 LIB.EXE /ignore:4006 /ignore:4221 /OUT:Release\x265-static.lib x265-static-main.lib x265-static-main10.lib x265-static-main12.lib | |
42 ) | |
43 | |
44 pause |