2021-01-17 16:33:59 +01:00
|
|
|
stages:
|
|
|
|
- build
|
|
|
|
|
|
|
|
# FIXME: Use --werror once warnings are fixed.
|
|
|
|
variables:
|
|
|
|
MESON_ARGS: --fatal-meson-warnings
|
|
|
|
MESON_ARGS_WINDOWS: ${MESON_ARGS} --force-fallback-for=zlib
|
|
|
|
|
2021-05-18 12:33:25 +02:00
|
|
|
.build windows common:
|
2021-01-17 16:33:59 +01:00
|
|
|
# See
|
2021-05-18 12:33:25 +02:00
|
|
|
# https://gitlab.freedesktop.org/gstreamer/gst-ci/container_registry/213
|
2021-01-17 16:33:59 +01:00
|
|
|
image: 'registry.freedesktop.org/gstreamer/gst-ci/amd64/windows:v14-master'
|
|
|
|
stage: 'build'
|
|
|
|
tags:
|
|
|
|
- 'docker'
|
|
|
|
- 'windows'
|
|
|
|
- '1809'
|
|
|
|
- 'gstreamer-windows'
|
2021-05-18 12:33:25 +02:00
|
|
|
|
|
|
|
.build linux common:
|
|
|
|
# See
|
|
|
|
# https://gitlab.freedesktop.org/freetype/docker-images/container_registry/20896
|
|
|
|
image: 'registry.freedesktop.org/freetype/docker-images/debian:latest'
|
|
|
|
stage: 'build'
|
|
|
|
|
2021-10-12 14:56:35 +02:00
|
|
|
.build macos common:
|
|
|
|
stage: 'build'
|
|
|
|
tags:
|
|
|
|
- 'gst-macos-11.1'
|
|
|
|
|
2021-05-18 12:33:25 +02:00
|
|
|
.build windows meson:
|
|
|
|
extends: '.build windows common'
|
2021-01-17 16:33:59 +01:00
|
|
|
variables:
|
|
|
|
# Make sure any failure in PowerShell scripts is fatal.
|
|
|
|
ErrorActionPreference: 'Stop'
|
|
|
|
WarningPreference: 'Stop'
|
|
|
|
# Uncomment the following key if need to pass custom args, as well with
|
|
|
|
# the `$env:MESON_ARGS` line in the `script:` blocks.
|
|
|
|
# MESON_ARGS: >-
|
|
|
|
# -Dfoo=enabled
|
|
|
|
# -Dbar=disabled
|
|
|
|
before_script:
|
|
|
|
# Make sure meson is up to date, so we don't need to rebuild the image
|
|
|
|
# with each release.
|
2021-10-02 12:52:15 +02:00
|
|
|
- pip3 install meson==0.59.1
|
|
|
|
- pip3 install -U ninja
|
2021-01-17 16:33:59 +01:00
|
|
|
script:
|
|
|
|
# For some reason, options are separated by newlines instead of spaces,
|
|
|
|
# so we have to replace them first.
|
|
|
|
#- $env:MESON_ARGS = $env:MESON_ARGS.replace("`n"," ")
|
|
|
|
# Gitlab executes PowerShell in docker, but `VsDevCmd.bat` is a batch
|
|
|
|
# script. Environment variables substitutions is done by PowerShell
|
|
|
|
# before calling `cmd.exe`, that's why we use `$env:FOO` instead of
|
|
|
|
# `%FOO%`.
|
|
|
|
- cmd.exe /C "C:\BuildTools\Common7\Tools\VsDevCmd.bat -host_arch=amd64 -arch=$env:ARCH &&
|
|
|
|
meson setup build $env:MESON_ARGS_WINDOWS &&
|
|
|
|
meson compile --verbose -C build &&
|
|
|
|
meson test -C build &&
|
|
|
|
meson test -C build --benchmark"
|
|
|
|
|
2021-05-18 12:33:25 +02:00
|
|
|
|
|
|
|
# Format of job names:
|
|
|
|
# <OS> <Build-Tool> <Build-Params> <Architecture>
|
|
|
|
|
|
|
|
|
|
|
|
# Windows jobs
|
|
|
|
windows meson vs2017 amd64:
|
|
|
|
extends: '.build windows meson'
|
2021-01-17 16:33:59 +01:00
|
|
|
variables:
|
|
|
|
ARCH: 'amd64'
|
|
|
|
|
2021-05-18 12:33:25 +02:00
|
|
|
windows meson vs2017 x86:
|
|
|
|
extends: '.build windows meson'
|
2021-01-17 16:33:59 +01:00
|
|
|
variables:
|
|
|
|
ARCH: 'x86'
|
2021-05-18 12:33:25 +02:00
|
|
|
|
|
|
|
|
|
|
|
# Linux Jobs
|
|
|
|
# Jobs with "libs" in the name force enable libraries.
|
|
|
|
# They are disabled in rest of the jobs.
|
|
|
|
linux autotools:
|
|
|
|
extends: '.build linux common'
|
|
|
|
script: |
|
|
|
|
./autogen.sh
|
|
|
|
./configure --with-brotli=no \
|
|
|
|
--with-bzip2=no \
|
|
|
|
--with-harfbuzz=no \
|
|
|
|
--with-png=no \
|
2021-10-13 17:50:35 +02:00
|
|
|
--with-zlib=no \
|
|
|
|
CC=gcc
|
2021-05-18 12:33:25 +02:00
|
|
|
|
|
|
|
make -j$(nproc) && make install
|
|
|
|
|
|
|
|
linux autotools libs:
|
|
|
|
extends: '.build linux common'
|
|
|
|
script: |
|
|
|
|
./autogen.sh
|
|
|
|
./configure --with-brotli=yes \
|
|
|
|
--with-bzip2=yes \
|
|
|
|
--with-harfbuzz=yes \
|
|
|
|
--with-png=yes \
|
2021-10-13 17:50:35 +02:00
|
|
|
--with-zlib=yes \
|
|
|
|
CC=gcc
|
|
|
|
|
|
|
|
make -j$(nproc) && make install
|
|
|
|
|
|
|
|
linux autotools libs clang:
|
|
|
|
extends: '.build linux common'
|
|
|
|
script: |
|
|
|
|
./autogen.sh
|
|
|
|
./configure --with-brotli=yes \
|
|
|
|
--with-bzip2=yes \
|
|
|
|
--with-harfbuzz=yes \
|
|
|
|
--with-png=yes \
|
|
|
|
--with-zlib=yes \
|
|
|
|
CC=clang
|
2021-05-18 12:33:25 +02:00
|
|
|
|
|
|
|
make -j$(nproc) && make install
|
|
|
|
|
|
|
|
linux meson:
|
|
|
|
extends: '.build linux common'
|
|
|
|
script: |
|
|
|
|
meson setup build -Dbrotli=disabled \
|
|
|
|
-Dbzip2=disabled \
|
|
|
|
-Dharfbuzz=disabled \
|
|
|
|
-Dpng=disabled \
|
|
|
|
-Dzlib=disabled
|
|
|
|
|
|
|
|
meson compile --verbose -C build
|
|
|
|
meson install -C build
|
|
|
|
|
|
|
|
linux meson libs:
|
|
|
|
extends: '.build linux common'
|
|
|
|
script: |
|
|
|
|
meson setup build -Dbrotli=enabled \
|
|
|
|
-Dbzip2=enabled \
|
|
|
|
-Dharfbuzz=disabled \
|
|
|
|
-Dpng=disabled \
|
|
|
|
-Dzlib=disabled
|
|
|
|
|
|
|
|
meson compile --verbose -C build
|
|
|
|
meson install -C build
|
|
|
|
|
|
|
|
linux cmake:
|
|
|
|
extends: '.build linux common'
|
|
|
|
script: |
|
2021-07-20 17:52:14 +02:00
|
|
|
cmake -B build -D FT_DISABLE_BROTLI=TRUE \
|
|
|
|
-D FT_DISABLE_BZIP2=TRUE \
|
|
|
|
-D FT_DISABLE_HARFBUZZ=TRUE \
|
|
|
|
-D FT_DISABLE_PNG=TRUE \
|
|
|
|
-D FT_DISABLE_ZLIB=TRUE
|
2021-05-18 12:33:25 +02:00
|
|
|
|
|
|
|
cmake --build build --target install
|
|
|
|
|
|
|
|
linux cmake libs:
|
|
|
|
extends: '.build linux common'
|
|
|
|
script: |
|
2021-07-20 17:52:14 +02:00
|
|
|
cmake -B build -D FT_REQUIRE_BROTLI=TRUE \
|
|
|
|
-D FT_REQUIRE_BZIP2=TRUE \
|
|
|
|
-D FT_REQUIRE_HARFBUZZ=TRUE \
|
|
|
|
-D FT_REQUIRE_PNG=TRUE \
|
|
|
|
-D FT_REQUIRE_ZLIB=TRUE
|
2021-05-18 12:33:25 +02:00
|
|
|
|
|
|
|
cmake --build build --target install
|
2021-10-12 14:56:35 +02:00
|
|
|
|
|
|
|
macos autotools:
|
|
|
|
extends: '.build macos common'
|
|
|
|
before_script:
|
|
|
|
- '/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"'
|
|
|
|
script:
|
|
|
|
- brew install autoconf automake libtool
|
|
|
|
- ./autogen.sh
|
|
|
|
- ./configure
|
|
|
|
- 'make -j$(sysctl -n hw.logicalcpu)'
|
|
|
|
- make install
|
|
|
|
|
|
|
|
macos autotools clang:
|
|
|
|
extends: '.build macos common'
|
|
|
|
before_script:
|
|
|
|
- '/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"'
|
|
|
|
script:
|
|
|
|
- brew install autoconf automake libtool
|
|
|
|
- ./autogen.sh
|
|
|
|
- './configure CC=clang'
|
|
|
|
- 'make -j$(sysctl -n hw.logicalcpu)'
|
|
|
|
- make install
|
|
|
|
|
|
|
|
macos meson:
|
|
|
|
extends: '.build macos common'
|
|
|
|
script:
|
|
|
|
- pip3 install --upgrade pip
|
|
|
|
- pip3 install -U meson
|
|
|
|
- pip3 install --upgrade certifi
|
|
|
|
- pip3 install -U ninja
|
|
|
|
|
|
|
|
- meson setup build
|
|
|
|
- meson compile --verbose -C build
|
|
|
|
- sudo meson install -C build
|