2021-05-10 21:19:24 +00:00
|
|
|
|
|
|
|
trigger:
|
|
|
|
paths:
|
|
|
|
include:
|
|
|
|
- '*'
|
|
|
|
exclude:
|
|
|
|
- '.azure/azure-pipelines-android.yml'
|
|
|
|
- '.azure/azure-pipelines-mac.yml'
|
|
|
|
- '.azure/azure-pipelines-vcpkg.yml'
|
|
|
|
- '.circleci/config.yml'
|
|
|
|
- '.github/workflows/linux.yml'
|
|
|
|
- '.github/workflows/sonarcloud.yml'
|
|
|
|
- '.cirrus.yml'
|
|
|
|
- 'README.md'
|
2019-06-29 08:56:09 +00:00
|
|
|
|
|
|
|
jobs:
|
2021-05-07 07:45:17 +00:00
|
|
|
- job: WindowsXP
|
|
|
|
variables:
|
|
|
|
toolset: v141_xp
|
2019-06-29 08:56:09 +00:00
|
|
|
strategy:
|
|
|
|
matrix:
|
2021-05-07 07:45:17 +00:00
|
|
|
x86:
|
2019-06-29 08:56:09 +00:00
|
|
|
platform: Win32
|
|
|
|
gtk-bundle: $(gtk-bundle-x86)
|
|
|
|
libsndfile-url: $(libsndfile-url-x86)
|
|
|
|
artifact-prefix: "fluidsynth"
|
2022-04-19 20:00:47 +00:00
|
|
|
CFLAGS: "/arch:IA32"
|
|
|
|
CXXFLAGS: "/arch:IA32"
|
2021-05-07 07:45:17 +00:00
|
|
|
x64:
|
2019-06-29 08:56:09 +00:00
|
|
|
platform: x64
|
|
|
|
gtk-bundle: $(gtk-bundle-x64)
|
|
|
|
libsndfile-url: $(libsndfile-url-x64)
|
|
|
|
artifact-prefix: "fluidsynth"
|
2022-04-19 20:00:47 +00:00
|
|
|
CFLAGS: ""
|
|
|
|
CXXFLAGS: ""
|
2019-06-29 08:56:09 +00:00
|
|
|
pool:
|
2021-05-07 07:45:17 +00:00
|
|
|
vmImage: 'windows-2019'
|
2019-06-29 08:56:09 +00:00
|
|
|
steps:
|
|
|
|
- task: DownloadBuildArtifacts@0
|
|
|
|
inputs:
|
|
|
|
buildType: specific
|
|
|
|
# https://dev.azure.com/tommbrt/_apis/projects?api-version=5.0
|
|
|
|
project: 'd3638885-de4a-4ce7-afe7-f237ae461c07'
|
|
|
|
pipeline: 1
|
2022-04-19 20:00:47 +00:00
|
|
|
artifactName: libinstpatch-XP-$(platform)
|
2019-06-29 08:56:09 +00:00
|
|
|
downloadPath: '$(Build.ArtifactStagingDirectory)'
|
|
|
|
displayName: 'Get libinstpatch'
|
|
|
|
- script: |
|
|
|
|
@ECHO ON
|
|
|
|
mkdir d:\deps || exit -1
|
|
|
|
cd d:\deps || exit -1
|
|
|
|
curl -LfsS -o gtk-bundle-dev.zip $(gtk-bundle) || exit -1
|
|
|
|
curl -LfsS -o libsndfile-dev.zip $(libsndfile-url) || exit -1
|
|
|
|
7z x -aos -- gtk-bundle-dev.zip > NUL || exit -1
|
|
|
|
7z x -aos -- libsndfile-dev.zip > NUL || exit -1
|
|
|
|
REM need to fix the naming of libsndfile otherwise the linker won't find it
|
|
|
|
mv lib\libsndfile-1.lib lib\sndfile.lib || exit -1
|
|
|
|
mv lib\libsndfile-1.def lib\sndfile.def || exit -1
|
2022-04-19 20:00:47 +00:00
|
|
|
cd $(Build.ArtifactStagingDirectory)\libinstpatch-XP-$(platform)
|
2019-06-29 08:56:09 +00:00
|
|
|
cp -rf * d:\deps\
|
|
|
|
mv -f * ..
|
|
|
|
cd ..
|
2022-04-19 20:00:47 +00:00
|
|
|
rmdir $(Build.ArtifactStagingDirectory)\libinstpatch-XP-$(platform)\
|
2021-01-01 20:22:27 +00:00
|
|
|
DEL /F C:\Strawberry\perl\bin\pkg-config.bat
|
2019-06-29 08:56:09 +00:00
|
|
|
displayName: 'Prerequisites'
|
|
|
|
- script: |
|
|
|
|
@ECHO ON
|
|
|
|
SET "PATH=d:\deps\bin;%PATH%"
|
|
|
|
pkg-config --list-all
|
|
|
|
mkdir build && cd build || exit -1
|
2021-05-10 20:00:03 +00:00
|
|
|
cmake -Werror=dev -A $(platform) -T $(toolset) -DCMAKE_INSTALL_PREFIX=$(Build.ArtifactStagingDirectory) -Denable-readline=0 -Denable-floats=1 -Denable-jack=0 -Denable-sdl2=0 -DCMAKE_BUILD_TYPE=Release -DCMAKE_MSVC_RUNTIME_LIBRARY=MultiThreaded -DCMAKE_VERBOSE_MAKEFILE=1 -DNO_GUI=1 -Dwindows-version=0x0501 .. || exit -1
|
|
|
|
cmake --build . --config Release --parallel 3 || exit -1
|
2019-06-29 08:56:09 +00:00
|
|
|
displayName: 'Compile fluidsynth'
|
|
|
|
- script: |
|
|
|
|
@ECHO ON
|
|
|
|
SET "PATH=d:\deps\bin;%PATH%"
|
|
|
|
cd build || exit -1
|
|
|
|
cmake --build . --config Release --target check || exit -1
|
|
|
|
displayName: 'Execute Unittests'
|
2022-01-23 14:33:33 +00:00
|
|
|
- script: |
|
|
|
|
@ECHO ON
|
|
|
|
SET "PATH=d:\deps\bin;%PATH%"
|
|
|
|
cd build || exit -1
|
|
|
|
cmake --build . --config Release --target demo || exit -1
|
|
|
|
displayName: 'Compile demos'
|
2019-06-29 08:56:09 +00:00
|
|
|
- script: |
|
|
|
|
@ECHO ON
|
|
|
|
cd build
|
|
|
|
cmake --build . --config Release --target install || exit -1
|
|
|
|
del $(Build.ArtifactStagingDirectory)\bin\concrt*.dll
|
|
|
|
del $(Build.ArtifactStagingDirectory)\bin\vcruntime*.dll
|
|
|
|
del $(Build.ArtifactStagingDirectory)\bin\msvcp*.dll
|
2020-02-01 18:25:11 +00:00
|
|
|
del $(Build.ArtifactStagingDirectory)\lib\instpatch*.lib
|
2019-06-29 08:56:09 +00:00
|
|
|
del $(Build.ArtifactStagingDirectory)\lib\pkgconfig\libinstpatch*.pc
|
2019-12-01 09:35:33 +00:00
|
|
|
rd $(Build.ArtifactStagingDirectory)\include\libinstpatch-2 /s /q
|
2019-06-29 08:56:09 +00:00
|
|
|
displayName: 'Copy Artifacts'
|
|
|
|
- task: PublishBuildArtifacts@1
|
|
|
|
inputs:
|
|
|
|
pathtoPublish: $(Build.ArtifactStagingDirectory)
|
|
|
|
artifactName: $(artifact-prefix)-$(platform)
|
|
|
|
|
2021-05-07 07:45:17 +00:00
|
|
|
- job: Windows10
|
|
|
|
variables:
|
|
|
|
toolset: v142
|
|
|
|
gtk-bundle: $(gtk-bundle-x64)
|
|
|
|
libsndfile-url: $(libsndfile-url-x64)
|
2019-06-29 08:56:09 +00:00
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
default:
|
|
|
|
CMAKE_FLAGS:
|
2019-08-02 11:21:55 +00:00
|
|
|
CMAKE_CONFIG: Release
|
|
|
|
debug_prof:
|
|
|
|
CMAKE_FLAGS: -Denable-profiling=1 -Denable-trap-on-fpe=1 -Denable-fpe-check=1
|
|
|
|
CMAKE_CONFIG: Debug
|
2019-06-29 08:56:09 +00:00
|
|
|
no_network:
|
|
|
|
CMAKE_FLAGS: -Denable-network=0
|
2019-08-02 11:21:55 +00:00
|
|
|
CMAKE_CONFIG: Release
|
2019-06-29 08:56:09 +00:00
|
|
|
static_lib:
|
|
|
|
CMAKE_FLAGS: -DBUILD_SHARED_LIBS=0
|
2019-08-02 11:21:55 +00:00
|
|
|
CMAKE_CONFIG: Release
|
|
|
|
minimal:
|
2021-05-10 20:00:03 +00:00
|
|
|
CMAKE_FLAGS: -Denable-ipv6=0 -Denable-network=0 -Denable-aufile=0 -Denable-threads=0 -Denable-winmidi=0 -Denable-waveout=0 -Denable-dsound=0 -Denable-libsndfile=0 -Denable-floats=1
|
2019-08-02 11:21:55 +00:00
|
|
|
CMAKE_CONFIG: Release
|
2019-06-29 08:56:09 +00:00
|
|
|
pool:
|
|
|
|
vmImage: 'windows-2019'
|
|
|
|
steps:
|
|
|
|
- script: |
|
|
|
|
@ECHO ON
|
|
|
|
mkdir d:\deps || exit -1
|
|
|
|
cd d:\deps || exit -1
|
|
|
|
curl -LfsS -o gtk-bundle-dev.zip $(gtk-bundle) || exit -1
|
|
|
|
curl -LfsS -o libsndfile-dev.zip $(libsndfile-url) || exit -1
|
|
|
|
7z x -aos -- gtk-bundle-dev.zip > NUL || exit -1
|
|
|
|
7z x -aos -- libsndfile-dev.zip > NUL || exit -1
|
|
|
|
REM need to fix the naming of libsndfile otherwise the linker won't find it
|
|
|
|
mv lib\libsndfile-1.lib lib\sndfile.lib || exit -1
|
|
|
|
mv lib\libsndfile-1.def lib\sndfile.def || exit -1
|
2021-01-01 20:22:27 +00:00
|
|
|
DEL /F C:\Strawberry\perl\bin\pkg-config.bat
|
2019-06-29 08:56:09 +00:00
|
|
|
displayName: 'Prerequisites'
|
|
|
|
- script: |
|
|
|
|
@ECHO ON
|
|
|
|
SET "PATH=d:\deps\bin;%PATH%"
|
|
|
|
mkdir build && cd build || exit -1
|
2021-05-10 20:00:03 +00:00
|
|
|
cmake -Werror=dev -A x64 -T $(toolset) -DCMAKE_BUILD_TYPE=$(CMAKE_CONFIG) -DCMAKE_VERBOSE_MAKEFILE=1 $(CMAKE_FLAGS) -DNO_GUI=1 -Dwindows-version=0x0A00 -Denable-jack=0 -Denable-pulseaudio=0 -Denable-ladspa=0 -Denable-dbus=0 -Denable-readline=0 -Denable-sdl2=0 -Denable-libinstpatch=0 .. || exit -1
|
|
|
|
cmake --build . --config $(CMAKE_CONFIG) --parallel 3 || exit -1
|
2019-06-29 08:56:09 +00:00
|
|
|
displayName: 'Compile fluidsynth'
|
|
|
|
- script: |
|
|
|
|
@ECHO ON
|
|
|
|
SET "PATH=d:\deps\bin;%PATH%"
|
|
|
|
cd build || exit -1
|
2019-08-02 11:21:55 +00:00
|
|
|
cmake --build . --config $(CMAKE_CONFIG) --target check || exit -1
|
2019-06-29 08:56:09 +00:00
|
|
|
displayName: 'Execute Unittests'
|
2022-01-23 14:33:33 +00:00
|
|
|
- script: |
|
|
|
|
@ECHO ON
|
|
|
|
SET "PATH=d:\deps\bin;%PATH%"
|
|
|
|
cd build || exit -1
|
|
|
|
cmake --build . --config $(CMAKE_CONFIG) --target demo || exit -1
|
|
|
|
displayName: 'Compile demos'
|
2019-06-29 08:56:09 +00:00
|
|
|
|
|
|
|
- job: WindowsMinGW
|
2021-05-07 07:45:17 +00:00
|
|
|
variables:
|
|
|
|
artifact-prefix: "fluidsynth-mingw"
|
2019-06-29 08:56:09 +00:00
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
x64:
|
|
|
|
CMAKE_FLAGS:
|
|
|
|
platform: x64
|
|
|
|
gtk-bundle: $(gtk-bundle-x64)
|
|
|
|
libsndfile-url: $(libsndfile-url-x64)
|
|
|
|
mingw-url: $(mingw-url-x64)
|
2021-10-17 12:43:30 +00:00
|
|
|
x64-static:
|
|
|
|
CMAKE_FLAGS: '-DBUILD_SHARED_LIBS=0'
|
|
|
|
platform: x64
|
|
|
|
gtk-bundle: $(gtk-bundle-x64)
|
|
|
|
libsndfile-url: $(libsndfile-url-x64)
|
|
|
|
mingw-url: $(mingw-url-x64)
|
2019-06-29 08:56:09 +00:00
|
|
|
pool:
|
2021-04-13 19:29:20 +00:00
|
|
|
vmImage: 'windows-2019'
|
2019-06-29 08:56:09 +00:00
|
|
|
steps:
|
|
|
|
- task: DownloadBuildArtifacts@0
|
|
|
|
inputs:
|
|
|
|
buildType: specific
|
|
|
|
# https://dev.azure.com/tommbrt/_apis/projects?api-version=5.0
|
|
|
|
project: 'd3638885-de4a-4ce7-afe7-f237ae461c07'
|
|
|
|
pipeline: 1
|
|
|
|
artifactName: libinstpatch-$(platform)
|
|
|
|
downloadPath: '$(Build.ArtifactStagingDirectory)'
|
|
|
|
displayName: 'Get libinstpatch'
|
|
|
|
- script: |
|
|
|
|
@ECHO ON
|
|
|
|
mkdir d:\deps || exit -1
|
|
|
|
cd d:\deps || exit -1
|
|
|
|
curl -LfsS -o gtk-bundle-dev.zip $(gtk-bundle) || exit -1
|
|
|
|
curl -LfsS -o libsndfile-dev.zip $(libsndfile-url) || exit -1
|
|
|
|
curl -LfsS -o mingw.zip $(mingw-url) || exit -1
|
|
|
|
7z x -aos -- gtk-bundle-dev.zip > NUL || exit -1
|
|
|
|
7z x -aos -- libsndfile-dev.zip > NUL || exit -1
|
|
|
|
7z x -aos -- mingw.zip > NUL || exit -1
|
|
|
|
rm *.zip
|
|
|
|
REM need to fix the naming of libsndfile otherwise the linker won't find it
|
|
|
|
mv lib\libsndfile-1.lib lib\sndfile.lib || exit -1
|
|
|
|
mv lib\libsndfile-1.def lib\sndfile.def || exit -1
|
|
|
|
cd mingw*\ && cp -rf * .. && cd .. && rm -rf mingw* || exit -1
|
|
|
|
cd $(Build.ArtifactStagingDirectory)\libinstpatch-$(platform) && cp -rf * d:\deps\ && mv -f * .. && cd .. && rmdir $(Build.ArtifactStagingDirectory)\libinstpatch-$(platform)\ || exit -1
|
2021-01-01 20:22:27 +00:00
|
|
|
DEL /F C:\Strawberry\perl\bin\pkg-config.bat
|
2019-06-29 08:56:09 +00:00
|
|
|
displayName: 'Prerequisites'
|
|
|
|
- script: |
|
|
|
|
@ECHO ON
|
|
|
|
SET "PATH=d:\deps\bin;%PATH%"
|
|
|
|
REM remove that path from PATH to make sure sh.exe is not found (cmake will complain otherwise)
|
|
|
|
set PATH=%PATH:C:\Program Files\Git\bin;=%
|
|
|
|
set PATH=%PATH:C:\Program Files\Git\usr\bin;=%
|
|
|
|
pkg-config --list-all
|
|
|
|
mkdir build && cd build || exit -1
|
2021-05-10 20:00:03 +00:00
|
|
|
cmake -Werror=dev -G "MinGW Makefiles" -DCMAKE_INSTALL_PREFIX=$(Build.ArtifactStagingDirectory) $(CMAKE_FLAGS) -Denable-readline=0 -Denable-floats=1 -Denable-jack=0 -Denable-pulseaudio=0 -Denable-ladspa=0 -Denable-dbus=0 -Denable-sdl2=0 -DCMAKE_BUILD_TYPE=Release -DCMAKE_VERBOSE_MAKEFILE=1 -DNO_GUI=1 .. || exit -1
|
|
|
|
mingw32-make.exe -j3 all || exit -1
|
2019-06-29 08:56:09 +00:00
|
|
|
displayName: 'Compile fluidsynth'
|
|
|
|
- script: |
|
|
|
|
@ECHO ON
|
|
|
|
SET "PATH=d:\deps\bin;%PATH%"
|
|
|
|
REM remove that path from PATH to make sure sh.exe is not found (cmake will complain otherwise)
|
|
|
|
set PATH=%PATH:C:\Program Files\Git\bin;=%
|
|
|
|
set PATH=%PATH:C:\Program Files\Git\usr\bin;=%
|
|
|
|
cd build || exit -1
|
2021-01-03 19:55:48 +00:00
|
|
|
mingw32-make.exe -j4 check || exit -1
|
2019-06-29 08:56:09 +00:00
|
|
|
displayName: 'Execute Unittests'
|
2022-01-23 14:33:33 +00:00
|
|
|
- script: |
|
|
|
|
@ECHO ON
|
|
|
|
SET "PATH=d:\deps\bin;%PATH%"
|
|
|
|
REM remove that path from PATH to make sure sh.exe is not found (cmake will complain otherwise)
|
|
|
|
set PATH=%PATH:C:\Program Files\Git\bin;=%
|
|
|
|
set PATH=%PATH:C:\Program Files\Git\usr\bin;=%
|
|
|
|
cd build || exit -1
|
|
|
|
mingw32-make.exe -j4 demo || exit -1
|
|
|
|
displayName: 'Compile demos'
|
2021-01-01 20:22:27 +00:00
|
|
|
- script: |
|
|
|
|
@ECHO ON
|
|
|
|
cd build
|
|
|
|
mingw32-make.exe install || exit -1
|
2021-03-13 19:10:59 +00:00
|
|
|
xcopy d:\deps\bin\libgcc_s_sjlj-1.dll $(Build.ArtifactStagingDirectory)\bin
|
|
|
|
xcopy d:\deps\bin\libgcc_s_seh-1.dll $(Build.ArtifactStagingDirectory)\bin
|
|
|
|
xcopy d:\deps\bin\libgomp-1.dll $(Build.ArtifactStagingDirectory)\bin
|
|
|
|
xcopy d:\deps\bin\libstdc++-6.dll $(Build.ArtifactStagingDirectory)\bin
|
|
|
|
xcopy d:\deps\bin\libwinpthread-1.dll $(Build.ArtifactStagingDirectory)\bin
|
2021-01-03 19:55:48 +00:00
|
|
|
REM xcopy test $(Build.ArtifactStagingDirectory)\bin /s
|
2021-01-01 20:22:27 +00:00
|
|
|
del $(Build.ArtifactStagingDirectory)\bin\concrt*.dll
|
|
|
|
del $(Build.ArtifactStagingDirectory)\bin\vcruntime*.dll
|
|
|
|
del $(Build.ArtifactStagingDirectory)\bin\msvcp*.dll
|
|
|
|
del $(Build.ArtifactStagingDirectory)\lib\instpatch*.lib
|
|
|
|
del $(Build.ArtifactStagingDirectory)\lib\pkgconfig\libinstpatch*.pc
|
|
|
|
rd $(Build.ArtifactStagingDirectory)\include\libinstpatch-2 /s /q
|
|
|
|
displayName: 'Copy Artifacts'
|
|
|
|
- task: PublishBuildArtifacts@1
|
|
|
|
inputs:
|
|
|
|
pathtoPublish: $(Build.ArtifactStagingDirectory)
|
|
|
|
artifactName: $(artifact-prefix)-$(platform)
|