-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
64 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
@echo off | ||
if "%VS160COMNTOOLS%" == "" ( | ||
msg "%username%" "Visual Studio 16 not detected" | ||
exit 1 | ||
) | ||
if not exist x265.sln ( | ||
call make-solutions.bat | ||
) | ||
if exist x265.sln ( | ||
call "%VS160COMNTOOLS%\..\..\VC\vcvarsall.bat" | ||
MSBuild /property:Configuration="Release" x265.sln | ||
MSBuild /property:Configuration="Debug" x265.sln | ||
MSBuild /property:Configuration="RelWithDebInfo" x265.sln | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
@echo off | ||
:: | ||
:: run this batch file to create a Visual Studio solution file for this project. | ||
:: See the cmake documentation for other generator targets | ||
:: | ||
cmake -G "Visual Studio 16" ..\..\source && cmake-gui ..\..\source |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
@echo off | ||
if "%VS160COMNTOOLS%" == "" ( | ||
msg "%username%" "Visual Studio 16 not detected" | ||
exit 1 | ||
) | ||
|
||
call "%VS160COMNTOOLS%\..\..\VC\vcvarsall.bat" | ||
|
||
@mkdir 12bit | ||
@mkdir 10bit | ||
@mkdir 8bit | ||
|
||
@cd 12bit | ||
cmake -G "Visual Studio 16" -A x64 ../../../source -DHIGH_BIT_DEPTH=ON -DEXPORT_C_API=OFF -DENABLE_SHARED=OFF -DENABLE_CLI=OFF -DMAIN12=ON | ||
if exist x265.sln ( | ||
MSBuild /property:Configuration="Release" x265.sln | ||
copy/y Release\x265-static.lib ..\8bit\x265-static-main12.lib | ||
) | ||
|
||
@cd ..\10bit | ||
cmake -G "Visual Studio 16" -A x64 ../../../source -DHIGH_BIT_DEPTH=ON -DEXPORT_C_API=OFF -DENABLE_SHARED=OFF -DENABLE_CLI=OFF | ||
if exist x265.sln ( | ||
MSBuild /property:Configuration="Release" x265.sln | ||
copy/y Release\x265-static.lib ..\8bit\x265-static-main10.lib | ||
) | ||
|
||
@cd ..\8bit | ||
if not exist x265-static-main10.lib ( | ||
msg "%username%" "10bit build failed" | ||
exit 1 | ||
) | ||
if not exist x265-static-main12.lib ( | ||
msg "%username%" "12bit build failed" | ||
exit 1 | ||
) | ||
cmake -G "Visual Studio 16" -A x64 ../../../source -DEXTRA_LIB="x265-static-main10.lib;x265-static-main12.lib" -DLINKED_10BIT=ON -DLINKED_12BIT=ON | ||
if exist x265.sln ( | ||
MSBuild /property:Configuration="Release" x265.sln | ||
:: combine static libraries (ignore warnings caused by winxp.cpp hacks) | ||
move Release\x265-static.lib x265-static-main.lib | ||
LIB.EXE /ignore:4006 /ignore:4221 /OUT:Release\x265-static.lib x265-static-main.lib x265-static-main10.lib x265-static-main12.lib | ||
) | ||
|
||
pause |