Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Change-Id: If991ec828c34a6b51c1aa12e0f316abf76a5c781
- Loading branch information
Showing
70 changed files
with
3,818 additions
and
11,838 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 |
---|---|---|
|
@@ -101,6 +101,7 @@ nbproject | |
|
||
#UWP | ||
/contrib/build/ | ||
/contrib/msvc/ | ||
|
||
#iOS | ||
/build-ios* | ||
|
Large diffs are not rendered by default.
Oops, something went wrong.
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
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,123 @@ | ||
@echo off | ||
setlocal EnableDelayedExpansion | ||
|
||
set SRC=%~dp0 | ||
|
||
set MSBUILD_ARGS=/nologo /p:useenv=true /p:Configuration=Release /p:Platform=x64 /verbosity:normal /maxcpucount:%NUMBER_OF_PROCESSORS% | ||
|
||
@setlocal | ||
|
||
set VSInstallerFolder="%ProgramFiles(x86)%\Microsoft Visual Studio\Installer" | ||
if %PROCESSOR_ARCHITECTURE%==x86 set VSInstallerFolder="%ProgramFiles%\Microsoft Visual Studio\Installer" | ||
|
||
pushd %VSInstallerFolder% | ||
for /f "usebackq tokens=*" %%i in (`vswhere -latest -products * -requires Microsoft.VisualStudio.Component.VC.Tools.x86.x64 -property installationPath`) do ( | ||
set VSLATESTDIR=%%i | ||
) | ||
popd | ||
|
||
echo VS Installation folder: %VSLATESTDIR% | ||
|
||
if not exist "%VSLATESTDIR%\VC\Auxiliary\Build\vcvarsall.bat" ( | ||
echo: | ||
echo VSInstallDir not found or not installed correctly. | ||
goto cleanup | ||
) | ||
|
||
if %PROCESSOR_ARCHITECTURE%==x86 ( | ||
set Comp_x86=x86 uwp 10.0.15063.0 | ||
set Comp_x64=x86_amd64 uwp 10.0.15063.0 | ||
set Comp_ARM=x86_arm uwp 10.0.15063.0 | ||
) else ( | ||
set Comp_x86=amd64_x86 uwp 10.0.15063.0 | ||
set Comp_x64=amd64 uwp 10.0.15063.0 | ||
set Comp_ARM=amd64_arm uwp 10.0.15063.0 | ||
) | ||
|
||
set MSYS2_PATH_TYPE=inherit | ||
|
||
if not defined MSYS2_BIN ( | ||
if exist C:\msys64\usr\bin\bash.exe set MSYS2_BIN="C:\msys64\usr\bin\bash.exe" | ||
) | ||
if not defined MSYS2_BIN ( | ||
if exist C:\msys\usr\bin\bash.exe set MSYS2_BIN="C:\msys\usr\bin\bash.exe" | ||
) | ||
|
||
echo building ffmpeg for uwp x64... | ||
set path=%path:"=% | ||
call "%VSLATESTDIR%"\\VC\\Auxiliary\\Build\\vcvarsall.bat %Comp_x64% | ||
|
||
rem * build libx264 * | ||
call :build build\x264\SMP\libx264.vcxproj | ||
|
||
rem * build libopus * | ||
call :build build\opus\SMP\libopus.vcxproj | ||
|
||
rem * build ffmpeg * | ||
%MSYS2_BIN% --login -x %~dp0src/ffmpeg/windows-uwp-x64-configure-make.sh | ||
for /r %~dp0\qbuild\ffmpeg\Output\Windows10\x64 %%f in (*.pdb) do @copy "%%f" %~dp0\build\ffmpeg\Build\Windows10\x64\bin | ||
|
||
rem * build openssl * | ||
cd build\restbed\dependency\openssl | ||
call perl Configure no-asm no-hw no-dso VC-WINUNIVERSAL | ||
call ms\do_winuniversal | ||
call ms\setVSvars universal10.0x64 | ||
call nmake -f ms\ntdll.mak | ||
set PATH=restbed\dependency\openssl\out32dll;%PATH% | ||
|
||
rem * build restbed w/asio * | ||
cd ..\.. | ||
mkdir build | ||
cd build | ||
cmake -DBUILD_SSL=ON -G "Visual Studio 15 2017 Win64" .. | ||
cmake --build . --target ALL_BUILD --config Release | ||
cd ..\.. | ||
|
||
set DEPENDENCIES=( ^ | ||
build\jsoncpp\makefiles\vs2017\lib_json.vcxproj, ^ | ||
build\argon2\vs2015\Argon2Ref\Argon2Ref.vcxproj, ^ | ||
build\gmp\SMP\libgmp.vcxproj, ^ | ||
build\iconv\SMP\libiconv.vcxproj, ^ | ||
build\zlib\SMP\libzlib.vcxproj, ^ | ||
build\nettle\SMP\libnettle.vcxproj, ^ | ||
build\nettle\SMP\libhogweed.vcxproj, ^ | ||
build\gnutls\SMP\libgnutls.vcxproj, ^ | ||
build\msgpack-c\vs2017\msgpackc-static.vcxproj, ^ | ||
build\opendht\MSVC\opendht_vs2017.vcxproj, ^ | ||
build\pjproject\pjlib-util\build\pjlib_util.vcxproj, ^ | ||
build\pjproject\pjmedia\build\pjmedia.vcxproj, ^ | ||
build\pjproject\pjmedia\build\pjmedia_audiodev.vcxproj, ^ | ||
build\pjproject\pjmedia\build\pjmedia_codec.vcxproj, ^ | ||
build\pjproject\pjmedia\build\pjmedia_videodev.vcxproj, ^ | ||
build\pjproject\pjlib\build\pjlib.vcxproj, ^ | ||
build\pjproject\pjsip\build\pjsip_core.vcxproj, ^ | ||
build\pjproject\pjsip\build\pjsip_simple.vcxproj, ^ | ||
build\pjproject\pjsip\build\pjsua_lib.vcxproj, ^ | ||
build\pjproject\pjsip\build\pjsua2_lib.vcxproj, ^ | ||
build\pjproject\pjsip\build\pjsip_ua.vcxproj, ^ | ||
build\pjproject\pjnath\build\pjnath.vcxproj, ^ | ||
build\pthreads\MSVC\pthreads.vcxproj, ^ | ||
build\libupnp\build\vs2017\ixml.vcxproj, ^ | ||
build\libupnp\build\vs2017\threadutil.vcxproj, ^ | ||
build\libupnp\build\vs2017\libupnp.vcxproj, ^ | ||
build\secp256k1\MSVC\secp256k1.vcxproj, ^ | ||
build\portaudio\msvc\uwp\portaudio.vcxproj, ^ | ||
build\yaml-cpp\msvc\yaml-cpp.vcxproj, ^ | ||
build\pcre\msvc\pcre.vcxproj, ^ | ||
build\libsamplerate\msvc\libsamplerate.vcxproj, ^ | ||
) | ||
|
||
rem * build the rest * | ||
for %%I in %DEPENDENCIES% do ( | ||
call :build "%SRC%%%I" | ||
) | ||
|
||
:cleanup | ||
endlocal | ||
@endlocal | ||
exit /B %ERRORLEVEL% | ||
|
||
:build | ||
echo "building " %* | ||
msbuild %* %MSBUILD_ARGS% | ||
exit /B 0 |
This file was deleted.
Oops, something went wrong.
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
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
Oops, something went wrong.