mirror of
https://github.com/Palakis/obs-websocket.git
synced 2024-08-30 18:12:16 +00:00
38 lines
1.2 KiB
Batchfile
38 lines
1.2 KiB
Batchfile
|
|
||
|
@echo off
|
||
|
SETLOCAL EnableDelayedExpansion
|
||
|
|
||
|
REM If obs-studio directory does not exist, clone the git repo
|
||
|
if not exist %OBS_PATH% (
|
||
|
echo obs-studio directory does not exist
|
||
|
git clone https://github.com/obsproject/obs-studio %OBS_PATH%
|
||
|
cd /D %OBS_PATH%\
|
||
|
git describe --tags --abbrev=0 --exclude="*-rc*" > "%OBS_PATH%\obs-studio-latest-tag.txt"
|
||
|
set /p OBS_LATEST_TAG=<"%OBS_PATH%\obs-studio-latest-tag.txt"
|
||
|
)
|
||
|
|
||
|
REM Prepare OBS Studio builds
|
||
|
|
||
|
echo Running CMake...
|
||
|
cd /D %OBS_PATH%
|
||
|
echo git checkout %OBS_LATEST_TAG%
|
||
|
git checkout %OBS_LATEST_TAG%
|
||
|
echo:
|
||
|
|
||
|
if not exist build32 mkdir build32
|
||
|
if not exist build64 mkdir build64
|
||
|
|
||
|
echo Running cmake for obs-studio %OBS_LATEST_TAG% 32-bit...
|
||
|
cd build32
|
||
|
cmake -G "Visual Studio 16 2019" -A Win32 -DCMAKE_SYSTEM_VERSION=10.0 -DQTDIR="%QTDIR32%" -DDepsPath="%DEPS_PATH_32%" -DDISABLE_PLUGINS=true -DCOPIED_DEPENDENCIES=false -DCOPY_DEPENDENCIES=true ..
|
||
|
echo:
|
||
|
echo:
|
||
|
|
||
|
echo Running cmake for obs-studio %OBS_LATEST_TAG% 64-bit...
|
||
|
cd ..\build64
|
||
|
cmake -G "Visual Studio 16 2019" -A x64 -DCMAKE_SYSTEM_VERSION=10.0 -DQTDIR="%QTDIR64%" -DDepsPath="%DEPS_PATH_64%" -DDISABLE_PLUGINS=true -DCOPIED_DEPENDENCIES=false -DCOPY_DEPENDENCIES=true ..
|
||
|
echo:
|
||
|
echo:
|
||
|
|
||
|
dir "%OBS_PATH%\libobs"
|