init project
This commit is contained in:
@@ -0,0 +1,51 @@
|
||||
@echo off
|
||||
setlocal
|
||||
|
||||
set "CLION_DIR=D:\JetBrains\CLion"
|
||||
|
||||
set "PATH=%CLION_DIR%\bin\cmake\win\x64\bin;%CLION_DIR%\bin\mingw\bin;%PATH%"
|
||||
|
||||
echo.
|
||||
echo ========================================
|
||||
echo FFmpeg-GUI Build Script
|
||||
echo ========================================
|
||||
echo.
|
||||
|
||||
if not exist build (
|
||||
echo [1/3] Configuring...
|
||||
cmake -B build -G "MinGW Makefiles" -S .
|
||||
if errorlevel 1 (
|
||||
echo ERROR: CMake configuration failed!
|
||||
exit /b 1
|
||||
)
|
||||
) else (
|
||||
echo [1/3] Build directory exists, skipping configure.
|
||||
)
|
||||
|
||||
echo.
|
||||
echo [2/3] Building...
|
||||
cmake --build build
|
||||
if errorlevel 1 (
|
||||
echo ERROR: Build failed!
|
||||
exit /b 1
|
||||
)
|
||||
|
||||
echo.
|
||||
echo [3/3] Copying runtime DLL...
|
||||
if exist "%CLION_DIR%\bin\mingw\bin\libwinpthread-1.dll" (
|
||||
copy /y "%CLION_DIR%\bin\mingw\bin\libwinpthread-1.dll" build\ > nul
|
||||
echo libwinpthread-1.dll copied.
|
||||
) else (
|
||||
echo WARNING: libwinpthread-1.dll not found!
|
||||
)
|
||||
|
||||
echo.
|
||||
echo ========================================
|
||||
echo Build succeeded!
|
||||
echo Executable: build\ffmpeg-gui.exe
|
||||
echo ========================================
|
||||
echo.
|
||||
echo Run it: build\ffmpeg-gui.exe
|
||||
echo.
|
||||
|
||||
endlocal
|
||||
Reference in New Issue
Block a user