forked from wang-bin/QtAV
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: add mingw, msbuild and debug build
- Loading branch information
Showing
4 changed files
with
122 additions
and
56 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
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,13 @@ | ||
echo cc=%cc% | ||
if "%cc%" == "MinGW" ( | ||
qmake %APPVEYOR_BUILD_FOLDER% | ||
mingw32-make -j%NUMBER_OF_PROCESSORS% | ||
) else ( | ||
if "%mode%" == "debug" ( | ||
qmake %APPVEYOR_BUILD_FOLDER% -r -tp vc "CONFIG+=debug" | ||
msbuild /m /p:Configuration=DEBUG | ||
) else ( | ||
qmake %APPVEYOR_BUILD_FOLDER% | ||
nmake | ||
) | ||
) |
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,57 @@ | ||
:: TODO: use windeployqt | ||
|
||
copy /y %QTDIR%\bin\av*.dll bin | ||
copy /y %QTDIR%\bin\sw*.dll bin | ||
if exist %QTDIR%\bin\po*.dll copy /y %QTDIR%\bin\po*.dll bin | ||
if exist %QTDIR%\bin\msvc*.dll copy /y %QTDIR%\bin\msvc*.dll bin | ||
if exist %QTDIR%\bin\OpenAL32*.dll copy /y %QTDIR%\bin\OpenAL32*.dll bin | ||
if exist %QTDIR%\bin\OpenAL32-%cc%.dll copy /y %QTDIR%\bin\OpenAL32-%cc%.dll bin\OpenAL32.dll | ||
if exist %QTDIR%\bin\D3DCompiler_*.dll copy /y %QTDIR%\bin\D3DCompiler_*.dll bin | ||
if exist %QTDIR%\bin\lib*.dll copy /y %QTDIR%\bin\lib*.dll bin # libEGL, GLESv2, gcc_s_dw2-1, stdc++-6, winpthread-1 | ||
if exist %QTDIR%\bin\icu*.dll xcopy /syi %QTDIR%\bin\icu*.dll bin | ||
echo [Paths] > bin\qt.conf | ||
echo Prefix=. >> bin\qt.conf | ||
|
||
if exist %QTDIR%\qml\QtQuick.2 xcopy /syi %QTDIR%\qml\QtQuick.2 bin\qml\QtQuick.2 > NUL | ||
if exist %QTDIR%\plugins\platforms xcopy /syi %QTDIR%\plugins\platforms bin\plugins\platforms > NUL | ||
if exist %QTDIR%\plugins\imageformats xcopy /syi %QTDIR%\plugins\imageformats bin\plugins\imageformats > NUL | ||
if exist %QTDIR%\plugins\iconengines xcopy /syi %QTDIR%\plugins\iconengines bin\plugins\iconengines > NUL | ||
if exist %QTDIR%\qml\Qt xcopy /syi %QTDIR%\qml\Qt bin\qml\Qt > NUL | ||
if exist %QTDIR%\qml\QtQml xcopy /syi %QTDIR%\qml\QtQml bin\qml\QtQml > NUL | ||
if exist %QTDIR%\qml\QtQuick xcopy /syi %QTDIR%\qml\QtQuick bin\qml\QtQuick > NUL | ||
if "%mode%" == "debug" ( | ||
if exist %QTDIR%\bin\Qt5Cored.dll copy /y %QTDIR%\bin\Qt5Cored.dll bin | ||
if exist %QTDIR%\bin\Qt5Guid.dll copy /y %QTDIR%\bin\Qt5Guid.dll bin | ||
if exist %QTDIR%\bin\Qt5OpenGLd.dll copy /y %QTDIR%\bin\Qt5OpenGLd.dll bin | ||
if exist %QTDIR%\bin\Qt5Svgd.dll copy /y %QTDIR%\bin\Qt5Svgd.dll bin | ||
if exist %QTDIR%\bin\Qt5Widgetsd.dll copy /y %QTDIR%\bin\Qt5Widgetsd.dll bin | ||
if exist %QTDIR%\bin\Qt5Networkd.dll copy /y %QTDIR%\bin\Qt5Networkd.dll bin | ||
if exist %QTDIR%\bin\Qt5Qmld.dll copy /y %QTDIR%\bin\Qt5Qmld.dll bin | ||
if exist %QTDIR%\bin\Qt5Quickd.dll copy /y %QTDIR%\bin\Qt5Quickd.dll bin | ||
) else ( | ||
if exist %QTDIR%\bin\Qt5Core.dll copy /y %QTDIR%\bin\Qt5Core.dll bin | ||
if exist %QTDIR%\bin\Qt5Gui.dll copy /y %QTDIR%\bin\Qt5Gui.dll bin | ||
if exist %QTDIR%\bin\Qt5OpenGL.dll copy /y %QTDIR%\bin\Qt5OpenGL.dll bin | ||
if exist %QTDIR%\bin\Qt5Svg.dll copy /y %QTDIR%\bin\Qt5Svg.dll bin | ||
if exist %QTDIR%\bin\Qt5Widgets.dll copy /y %QTDIR%\bin\Qt5Widgets.dll bin | ||
if exist %QTDIR%\bin\Qt5Network.dll copy /y %QTDIR%\bin\Qt5Network.dll bin | ||
if exist %QTDIR%\bin\Qt5Qml.dll copy /y %QTDIR%\bin\Qt5Qml.dll bin | ||
if exist %QTDIR%\bin\Qt5Quick.dll copy /y %QTDIR%\bin\Qt5Quick.dll bin | ||
echo deleting debug files | ||
if exist bin\lib*GL*d.dll del bin\lib*GL*d.dll | ||
:: delete debug dlls | ||
dir /S /B bin\plugins | ||
if exist bin\qml ( | ||
dir /S /B bin\qml | ||
) | ||
) | ||
dir bin | ||
xcopy /syi tools\install_sdk\mkspecs mkspecs | ||
copy /y ..\qtc_packaging\ifw\packages\com.qtav.product.dev\data\sdk_deploy.bat . | ||
copy /y ..\qtc_packaging\ifw\packages\com.qtav.product.player\data\*.bat . | ||
xcopy /syi ..\src\QtAV include\QtAV | ||
xcopy /syi ..\widgets\QtAVWidgets include\QtAVWidgets | ||
move lib_* lib_ | ||
if exist lib_\*AV*.lib xcopy /syi lib_\*AV*.lib lib | ||
if exist lib_\*AV*.a xcopy /syi lib_\*AV*.a lib | ||
7z a %APPVEYOR_BUILD_FOLDER%\QtAV-Qt%qt%-%cc%%arch%-%mode%-%APPVEYOR_REPO_COMMIT:~0,7%.7z bin lib include mkspecs sdk_deploy.bat install.bat uninstall.bat > NUL |
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,21 @@ | ||
if "%QTDIR:~0,6%" == "C:\Qt\" goto getdep | ||
|
||
echo downloading qt "http://sourceforge.net/projects/buildqt/files/release/%qt%/Qt%qt%-%cc%%arch%%suffix%.7z/download" | ||
appveyor DownloadFile "http://sourceforge.net/projects/buildqt/files/release/%qt%/Qt%qt%-%cc%%arch%%suffix%.7z/download" -FileName qt.7z | ||
7z x qt.7z > NUL | ||
move Qt%qt%-* %QTDIR% | ||
|
||
:getdep | ||
echo downloading qtav dep "http://sourceforge.net/projects/qtav/files/depends/QtAV-depends-windows-x86+x64-20150706.7z/download" | ||
appveyor DownloadFile "http://sourceforge.net/projects/qtav/files/depends/QtAV-depends-windows-x86+x64-20150706.7z/download" -FileName av.7z | ||
7z x av.7z > NUL | ||
move QtAV-depends* AV | ||
xcopy /syi AV\include %QTDIR%\include > NUL | ||
if "%arch%" == "x64" ( | ||
xcopy /syi AV\lib\x64 %QTDIR%\lib > NUL | ||
copy /y AV\bin\x64\*.dll %QTDIR%\bin > NUL | ||
) else ( | ||
xcopy /syi AV\lib %QTDIR%\lib > NUL | ||
copy /y AV\bin\*.dll %QTDIR%\bin > NUL | ||
) | ||
|