2021-01-08 11:17:03 -08:00
|
|
|
if exist dependencies2019.zip (curl -kLO https://cdn-fastly.obsproject.com/downloads/dependencies2019.zip -f --retry 5 -z dependencies2019.zip) else (curl -kLO https://cdn-fastly.obsproject.com/downloads/dependencies2019.zip -f --retry 5 -C -)
|
2019-03-05 22:02:06 -08:00
|
|
|
if exist vlc.zip (curl -kLO https://cdn-fastly.obsproject.com/downloads/vlc.zip -f --retry 5 -z vlc.zip) else (curl -kLO https://cdn-fastly.obsproject.com/downloads/vlc.zip -f --retry 5 -C -)
|
2019-08-30 07:05:33 -07:00
|
|
|
if exist cef_binary_%CEF_VERSION%_windows32_minimal.zip (curl -kLO https://cdn-fastly.obsproject.com/downloads/cef_binary_%CEF_VERSION%_windows32_minimal.zip -f --retry 5 -z cef_binary_%CEF_VERSION%_windows32_minimal.zip) else (curl -kLO https://cdn-fastly.obsproject.com/downloads/cef_binary_%CEF_VERSION%_windows32_minimal.zip -f --retry 5 -C -)
|
|
|
|
if exist cef_binary_%CEF_VERSION%_windows64_minimal.zip (curl -kLO https://cdn-fastly.obsproject.com/downloads/cef_binary_%CEF_VERSION%_windows64_minimal.zip -f --retry 5 -z cef_binary_%CEF_VERSION%_windows64_minimal.zip) else (curl -kLO https://cdn-fastly.obsproject.com/downloads/cef_binary_%CEF_VERSION%_windows64_minimal.zip -f --retry 5 -C -)
|
2021-01-08 11:17:03 -08:00
|
|
|
7z x dependencies2019.zip -odependencies2019
|
2018-09-18 12:12:28 -07:00
|
|
|
7z x vlc.zip -ovlc
|
2019-08-30 07:05:33 -07:00
|
|
|
7z x cef_binary_%CEF_VERSION%_windows32_minimal.zip -oCEF_32
|
|
|
|
7z x cef_binary_%CEF_VERSION%_windows64_minimal.zip -oCEF_64
|
2021-01-08 11:17:03 -08:00
|
|
|
set DepsPath32=%CD%\dependencies2019\win32
|
|
|
|
set DepsPath64=%CD%\dependencies2019\win64
|
2018-09-18 12:12:28 -07:00
|
|
|
set VLCPath=%CD%\vlc
|
2021-01-08 11:12:45 -08:00
|
|
|
set QTDIR32=C:\QtDep\5.15.2\msvc2019
|
|
|
|
set QTDIR64=C:\QtDep\5.15.2\msvc2019_64
|
2019-08-30 07:05:33 -07:00
|
|
|
set CEF_32=%CD%\CEF_32\cef_binary_%CEF_VERSION%_windows32_minimal
|
|
|
|
set CEF_64=%CD%\CEF_64\cef_binary_%CEF_VERSION%_windows64_minimal
|
2018-09-18 12:12:28 -07:00
|
|
|
set build_config=RelWithDebInfo
|
2020-10-05 08:27:14 -07:00
|
|
|
set VIRTUALCAM-GUID=A3FCE0F5-3493-419F-958A-ABA1250EC20B
|
2018-09-18 12:12:28 -07:00
|
|
|
mkdir build build32 build64
|
2019-03-23 08:18:11 -07:00
|
|
|
if "%TWITCH-CLIENTID%"=="$(twitch_clientid)" (
|
|
|
|
cd ./build32
|
2020-11-02 20:46:55 -08:00
|
|
|
cmake -G "Visual Studio 16 2019" -A Win32 -DCMAKE_SYSTEM_VERSION=10.0 -DCOPIED_DEPENDENCIES=false -DCOPY_DEPENDENCIES=true -DENABLE_VLC=ON -DCOMPILE_D3D12_HOOK=true -DBUILD_BROWSER=true -DCEF_ROOT_DIR=%CEF_32% -DVIRTUALCAM_GUID="%VIRTUALCAM-GUID%" ..
|
2019-03-23 08:18:11 -07:00
|
|
|
cd ../build64
|
2020-11-02 20:46:55 -08:00
|
|
|
cmake -G "Visual Studio 16 2019" -A x64 -DCMAKE_SYSTEM_VERSION=10.0 -DCOPIED_DEPENDENCIES=false -DCOPY_DEPENDENCIES=true -DENABLE_VLC=ON -DCOMPILE_D3D12_HOOK=true -DBUILD_BROWSER=true -DCEF_ROOT_DIR=%CEF_64% -DVIRTUALCAM_GUID="%VIRTUALCAM-GUID%" ..
|
2019-03-23 08:18:11 -07:00
|
|
|
) else (
|
2018-09-18 12:12:28 -07:00
|
|
|
cd ./build32
|
2020-11-02 20:46:55 -08:00
|
|
|
cmake -G "Visual Studio 16 2019" -A Win32 -DCMAKE_SYSTEM_VERSION=10.0 -DCOPIED_DEPENDENCIES=false -DCOPY_DEPENDENCIES=true -DENABLE_VLC=ON -DCOMPILE_D3D12_HOOK=true -DBUILD_BROWSER=true -DCEF_ROOT_DIR=%CEF_32% -DTWITCH_CLIENTID="%TWITCH-CLIENTID%" -DTWITCH_HASH="%TWITCH-HASH%" -DRESTREAM_CLIENTID="%RESTREAM-CLIENTID%" -DRESTREAM_HASH="%RESTREAM-HASH%" -DVIRTUALCAM_GUID="%VIRTUALCAM-GUID%" ..
|
2018-09-18 12:12:28 -07:00
|
|
|
cd ../build64
|
2020-11-02 20:46:55 -08:00
|
|
|
cmake -G "Visual Studio 16 2019" -A x64 -DCMAKE_SYSTEM_VERSION=10.0 -DCOPIED_DEPENDENCIES=false -DCOPY_DEPENDENCIES=true -DENABLE_VLC=ON -DCOMPILE_D3D12_HOOK=true -DBUILD_BROWSER=true -DCEF_ROOT_DIR=%CEF_64% -DTWITCH_CLIENTID="%TWITCH-CLIENTID%" -DTWITCH_HASH="%TWITCH-HASH%" -DRESTREAM_CLIENTID="%RESTREAM-CLIENTID%" -DRESTREAM_HASH="%RESTREAM-HASH%" -DVIRTUALCAM_GUID="%VIRTUALCAM-GUID%" ..
|
2019-03-23 08:18:11 -07:00
|
|
|
)
|
2018-09-18 12:12:28 -07:00
|
|
|
cd ..
|