2021-09-12 15:40:42 +08:00
|
|
|
image:
|
|
|
|
- Visual Studio 2019
|
2020-04-26 21:12:51 +08:00
|
|
|
environment:
|
|
|
|
CMAKE_INSTALL_ROOT: C:\projects\cmake
|
|
|
|
PACKAGE_INSTALL_ROOT: C:\projects\pir
|
|
|
|
PKG_CONFIG_PATH: C:\projects\pir\lib\pkgconfig
|
|
|
|
matrix:
|
2024-07-08 19:59:49 +08:00
|
|
|
- build_name: mingw1120_64_qt6_7
|
|
|
|
QTPATH: C:\Qt\6.7\mingw_64
|
2022-10-05 14:02:46 +08:00
|
|
|
MINGW64: C:\Qt\Tools\mingw1120_64
|
2020-04-26 21:12:51 +08:00
|
|
|
|
|
|
|
install:
|
|
|
|
- mkdir %CMAKE_INSTALL_ROOT%
|
|
|
|
- mkdir %PACKAGE_INSTALL_ROOT%
|
|
|
|
- cd %APPVEYOR_BUILD_FOLDER%
|
|
|
|
- git submodule update --init --recursive
|
2022-10-05 14:02:46 +08:00
|
|
|
- set PATH=%PATH%;%CMAKE_INSTALL_ROOT%;%QTPATH%\bin;%MINGW64%\bin
|
2021-09-12 15:40:42 +08:00
|
|
|
- set CC=%MINGW64%\bin\gcc.exe
|
|
|
|
- set CXX=%MINGW64%\bin\g++.exe
|
2020-04-26 21:12:51 +08:00
|
|
|
|
|
|
|
build_script:
|
|
|
|
# prepare
|
|
|
|
- mkdir 3rdparty
|
2024-07-08 19:59:49 +08:00
|
|
|
- choco install ninja
|
|
|
|
- choco install pkgconfiglite
|
2020-04-26 21:12:51 +08:00
|
|
|
- cd 3rdparty
|
2024-09-22 14:27:53 +08:00
|
|
|
# build uchardet
|
|
|
|
- git clone -q https://gitlab.freedesktop.org/uchardet/uchardet.git
|
|
|
|
- cd uchardet
|
|
|
|
- cmake -G "Ninja" . -DCMAKE_INSTALL_PREFIX=%PACKAGE_INSTALL_ROOT% -DBUILD_BINARY=OFF
|
|
|
|
- cmake --build . --target install
|
|
|
|
- cd %APPVEYOR_BUILD_FOLDER%
|
|
|
|
# build taglib
|
2024-07-08 19:59:49 +08:00
|
|
|
- git clone --recurse-submodules -q https://github.com/taglib/taglib.git
|
2022-10-05 14:02:46 +08:00
|
|
|
- cd taglib
|
2020-04-26 21:12:51 +08:00
|
|
|
- cmake -G "Ninja" . -DCMAKE_INSTALL_PREFIX=%PACKAGE_INSTALL_ROOT% -DBUILD_SHARED_LIBS=ON
|
|
|
|
- cmake --build . --target install
|
|
|
|
- cd %APPVEYOR_BUILD_FOLDER%
|
|
|
|
- tree %PACKAGE_INSTALL_ROOT% /f
|
|
|
|
# finally...
|
|
|
|
- mkdir build
|
|
|
|
- cd build
|
2024-09-23 20:45:38 +08:00
|
|
|
- cmake .. -G "Ninja" -DCMAKE_BUILD_TYPE=Release -DCMAKE_PREFIX_PATH=%PACKAGE_INSTALL_ROOT% -DCMAKE_INSTALL_PREFIX='%cd%'
|
2021-09-12 15:40:42 +08:00
|
|
|
- cmake --build .
|
|
|
|
- cmake --build . --target install
|
2020-04-26 21:12:51 +08:00
|
|
|
# fixme: I don't know how to NOT make the binary installed to the ./bin/ folder...
|
|
|
|
- cd bin
|
2022-10-05 14:02:46 +08:00
|
|
|
- windeployqt --verbose=2 --no-quick-import --no-translations --no-opengl-sw --compiler-runtime --no-system-d3d-compiler --multimedia .\pmusic.exe
|
2020-04-26 21:12:51 +08:00
|
|
|
- xcopy /s %PACKAGE_INSTALL_ROOT%\bin %cd%
|
|
|
|
# for debug..
|
|
|
|
- tree /f
|
|
|
|
|
|
|
|
artifacts:
|
|
|
|
- path: build\bin
|