First successful build of Windows Qt/SDL on appveyor.
This commit is contained in:
parent
13f0f5d5e4
commit
fdba5abb39
11
appveyor.yml
11
appveyor.yml
|
@ -9,6 +9,9 @@ environment:
|
||||||
- job_name: Windows 64
|
- job_name: Windows 64
|
||||||
appveyor_build_worker_image: Visual Studio 2019
|
appveyor_build_worker_image: Visual Studio 2019
|
||||||
|
|
||||||
|
- job_name: Windows 64 Qt/SDL
|
||||||
|
appveyor_build_worker_image: Visual Studio 2019
|
||||||
|
|
||||||
- job_name: Ubuntu
|
- job_name: Ubuntu
|
||||||
appveyor_build_worker_image: Ubuntu2004
|
appveyor_build_worker_image: Ubuntu2004
|
||||||
#appveyor_build_worker_image: Ubuntu1804
|
#appveyor_build_worker_image: Ubuntu1804
|
||||||
|
@ -34,6 +37,14 @@ for:
|
||||||
build_script:
|
build_script:
|
||||||
- cmd: pipelines/win64_build.bat
|
- cmd: pipelines/win64_build.bat
|
||||||
|
|
||||||
|
-
|
||||||
|
matrix:
|
||||||
|
only:
|
||||||
|
- job_name: Windows 64 Qt/SDL
|
||||||
|
|
||||||
|
build_script:
|
||||||
|
- cmd: pipelines/qwin64_build.bat
|
||||||
|
|
||||||
-
|
-
|
||||||
matrix:
|
matrix:
|
||||||
only:
|
only:
|
||||||
|
|
|
@ -1,12 +1,28 @@
|
||||||
|
|
||||||
rmdir /q /s build
|
set PROJECT_ROOT=%~dp0..
|
||||||
|
set CWD=%CD%
|
||||||
|
|
||||||
|
call "C:\Qt\5.15.2\msvc2019_64\bin\qtenv2.bat"
|
||||||
|
call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvars64.bat"
|
||||||
|
|
||||||
|
cd %CWD%
|
||||||
|
|
||||||
|
where cmake
|
||||||
|
where nmake
|
||||||
|
where msbuild
|
||||||
|
REM where zip
|
||||||
|
REM where unzip
|
||||||
|
where windeployqt
|
||||||
|
|
||||||
|
REM rmdir /q /s build
|
||||||
|
|
||||||
mkdir build
|
mkdir build
|
||||||
cd build
|
cd build
|
||||||
|
mkdir bin
|
||||||
|
|
||||||
curl -LO http://www.libsdl.org/release/SDL2-devel-2.0.14-VC.zip
|
curl -s -LO http://www.libsdl.org/release/SDL2-devel-2.0.14-VC.zip
|
||||||
|
|
||||||
rmdir /q /s SDL2
|
REM rmdir /q /s SDL2
|
||||||
|
|
||||||
powershell -command "Expand-Archive" SDL2-devel-2.0.14-VC.zip .
|
powershell -command "Expand-Archive" SDL2-devel-2.0.14-VC.zip .
|
||||||
|
|
||||||
|
@ -14,12 +30,31 @@ rename SDL2-2.0.14 SDL2
|
||||||
|
|
||||||
set SDL_INSTALL_PREFIX=%CD%
|
set SDL_INSTALL_PREFIX=%CD%
|
||||||
|
|
||||||
cmake -G "NMake Makefiles" -DSDL_INSTALL_PREFIX=%SDL_INSTALL_PREFIX% ..
|
REM cmake -h
|
||||||
|
REM cmake -G "NMake Makefiles" -DCMAKE_BUILD_TYPE=Release -DSDL_INSTALL_PREFIX=%SDL_INSTALL_PREFIX% ..
|
||||||
|
cmake -DSDL_INSTALL_PREFIX=%SDL_INSTALL_PREFIX% ..
|
||||||
|
|
||||||
nmake
|
REM nmake
|
||||||
|
msbuild /m fceux.sln /p:Configuration=Release
|
||||||
|
@if ERRORLEVEL 1 goto end
|
||||||
|
|
||||||
copy %SDL_INSTALL_PREFIX%\SDL2\lib\x64\SDL2.dll src\.
|
copy src\Release\fceux.exe bin\qfceux.exe
|
||||||
|
copy %SDL_INSTALL_PREFIX%\SDL2\lib\x64\SDL2.dll bin\.
|
||||||
|
|
||||||
windeployqt src/fceux.exe
|
windeployqt bin\qfceux.exe
|
||||||
|
|
||||||
cd ..
|
dir bin
|
||||||
|
|
||||||
|
REM Create Zip Archive
|
||||||
|
%PROJECT_ROOT%\vc\zip -X -9 -r %PROJECT_ROOT%\vc\qfceux64.zip bin
|
||||||
|
@if ERRORLEVEL 1 goto end
|
||||||
|
|
||||||
|
cd %PROJECT_ROOT%\output
|
||||||
|
%PROJECT_ROOT%\vc\zip -X -9 -u -r %PROJECT_ROOT%\vc\qfceux64.zip fceux.chm taseditor.chm palettes luaScripts tools
|
||||||
|
@if ERRORLEVEL 1 goto end
|
||||||
|
|
||||||
|
cd %PROJECT_ROOT%
|
||||||
|
|
||||||
|
appveyor PushArtifact %PROJECT_ROOT%\vc\qfceux64.zip
|
||||||
|
|
||||||
|
:end
|
||||||
|
|
Loading…
Reference in New Issue