-
-
Notifications
You must be signed in to change notification settings - Fork 53
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(ci): build and use kimageformats plugins
- Loading branch information
Showing
1 changed file
with
29 additions
and
4 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,49 @@ | ||
environment: | ||
CMAKE_INSTALL_ROOT: C:\projects\cmake | ||
matrix: | ||
- build_name: mingw73_32_qt5_12_6 | ||
QTPATH: C:\Qt\5.12.6\mingw73_32 | ||
MINGW32: C:\Qt\Tools\mingw730_32 | ||
|
||
install: | ||
- mkdir %CMAKE_INSTALL_ROOT% | ||
- cd %APPVEYOR_BUILD_FOLDER% | ||
- git submodule update --init --recursive | ||
- set PATH=%PATH%;%QTPATH%\bin;%MINGW32%\bin | ||
- set PATH=%PATH%;%CMAKE_INSTALL_ROOT%;%QTPATH%\bin;%MINGW32%\bin | ||
|
||
build_script: | ||
# prepare | ||
- mkdir 3rdparty | ||
- cinst ninja | ||
# install ECM so we can build KImageFormats | ||
- cd 3rdparty | ||
- git clone -q git://anongit.kde.org/extra-cmake-modules.git | ||
- cd extra-cmake-modules | ||
- cmake -G "Ninja" . -DCMAKE_INSTALL_PREFIX=%CMAKE_INSTALL_ROOT% | ||
- cmake --build . | ||
- cmake --build . --target install | ||
- cd %APPVEYOR_BUILD_FOLDER% | ||
# install KImageFormats | ||
- cd 3rdparty | ||
- git clone git://anongit.kde.org/kimageformats.git | ||
- cd kimageformats | ||
- mkdir build | ||
- cd build | ||
- cmake .. -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_FLAGS_RELEASE="-s" -DCMAKE_MAKE_PROGRAM=mingw32-make -DQT_PLUGIN_INSTALL_DIR=%QTPATH%\plugins | ||
- cmake --build . --config Release | ||
- cmake --build . --config Release --target install | ||
- cd %APPVEYOR_BUILD_FOLDER% | ||
# finally... | ||
- mkdir build | ||
- cd build | ||
- cmake -G "Unix Makefiles" -DCMAKE_MAKE_PROGRAM=mingw32-make -DCMAKE_INSTALL_PREFIX='%cd%' ..\ | ||
- cmake .. -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=Release -DCMAKE_MAKE_PROGRAM=mingw32-make -DCMAKE_INSTALL_PREFIX='%cd%' | ||
- mingw32-make | ||
- mingw32-make install | ||
# fixme: I don't know how to NOT make the binary installed to the ./bin/ folder... | ||
- cd bin | ||
- windeployqt --no-quick-import --no-translations --no-opengl-sw --no-angle --no-system-d3d-compiler --release .\ppic.exe | ||
- tree | ||
- windeployqt --verbose=2 --no-quick-import --no-translations --no-opengl-sw --no-angle --no-system-d3d-compiler --release .\ppic.exe | ||
# for debug.. | ||
- tree /f | ||
|
||
artifacts: | ||
- path: build\bin |