2022-01-12 06:21:52 +01:00
|
|
|
# CI setup for FreeType.
|
|
|
|
|
2021-01-17 16:33:59 +01:00
|
|
|
stages:
|
|
|
|
- build
|
|
|
|
|
|
|
|
# FIXME: Use --werror once warnings are fixed.
|
|
|
|
variables:
|
2022-04-21 14:43:18 +02:00
|
|
|
MESON_ARGS: --fatal-meson-warnings --default-library=both
|
2021-01-17 16:33:59 +01:00
|
|
|
MESON_ARGS_WINDOWS: ${MESON_ARGS} --force-fallback-for=zlib
|
|
|
|
|
2021-05-18 12:33:25 +02:00
|
|
|
.build windows common:
|
2022-07-31 13:14:01 +02:00
|
|
|
# TODO: should probably get its own image at some point instead of reusing the GStreamer one
|
|
|
|
# See https://gitlab.freedesktop.org/gstreamer/gstreamer/container_registry/18035 for latest
|
|
|
|
image: "registry.freedesktop.org/gstreamer/gstreamer/amd64/windows:2022-07-29.3-main"
|
2021-01-17 16:33:59 +01:00
|
|
|
stage: 'build'
|
|
|
|
tags:
|
|
|
|
- 'docker'
|
|
|
|
- 'windows'
|
2022-07-31 13:14:01 +02:00
|
|
|
- '2022'
|
2021-01-17 16:33:59 +01:00
|
|
|
- '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'
|
2022-01-12 06:21:52 +01:00
|
|
|
# Uncomment the following key if you need to pass custom args, as well
|
|
|
|
# with the `$env:MESON_ARGS` line in the `script:` blocks.
|
2021-01-17 16:33:59 +01:00
|
|
|
# MESON_ARGS: >-
|
|
|
|
# -Dfoo=enabled
|
|
|
|
# -Dbar=disabled
|
|
|
|
before_script:
|
2022-01-12 02:26:39 +01:00
|
|
|
# Update RootCAs in order to access to some sites.
|
|
|
|
- certutil -generateSSTFromWU "C:\roots.sst"
|
|
|
|
- Import-Certificate -CertStoreLocation "Cert:\LocalMachine\Root" "C:\roots.sst"
|
2022-01-12 06:21:52 +01:00
|
|
|
# Make sure meson is up to date so we don't need to rebuild the image
|
2021-01-17 16:33:59 +01:00
|
|
|
# with each release.
|
2022-06-21 14:45:42 +02:00
|
|
|
- pip3 install -U 'meson==0.59.*'
|
2022-02-15 10:27:47 +01:00
|
|
|
- pip3 install --upgrade certifi
|
2021-10-02 12:52:15 +02:00
|
|
|
- pip3 install -U ninja
|
2022-02-15 10:27:47 +01:00
|
|
|
|
|
|
|
# Generate a UWP cross-file in case it's used
|
|
|
|
- $PSDefaultParameterValues['Out-File:Encoding'] = 'ASCII'
|
|
|
|
- echo "[binaries]" > uwp-crossfile.meson
|
|
|
|
- echo "c = 'cl'" >> uwp-crossfile.meson
|
|
|
|
- echo "strip = ['true']" >> uwp-crossfile.meson
|
|
|
|
- echo "[built-in options]" >> uwp-crossfile.meson
|
|
|
|
- echo "c_args = ['-DWINAPI_FAMILY=WINAPI_FAMILY_APP', '-DUNICODE', '-D_WIN32_WINNT=0x0A00', '-we4013']" >> uwp-crossfile.meson
|
|
|
|
- echo "c_winlibs = ['windowsapp.lib']" >> uwp-crossfile.meson
|
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.
|
2022-01-12 06:21:52 +01:00
|
|
|
#
|
|
|
|
# - $env:MESON_ARGS = $env:MESON_ARGS.replace("`n"," ")
|
|
|
|
#
|
2021-01-17 16:33:59 +01:00
|
|
|
# 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%`.
|
2022-02-15 10:27:47 +01:00
|
|
|
- cmd.exe /C "C:\BuildTools\Common7\Tools\VsDevCmd.bat -host_arch=amd64 -arch=$env:ARCH $env:VS_UWP &&
|
|
|
|
meson setup build $env:MESON_ARGS_WINDOWS $env:MESON_ARGS_UWP &&
|
|
|
|
meson compile --verbose -C build
|
|
|
|
$env:MESON_WINDOWS_TESTS"
|
2021-01-17 16:33:59 +01:00
|
|
|
|
2021-05-18 12:33:25 +02:00
|
|
|
|
|
|
|
# Format of job names:
|
* Version 2.13.1 released.
==========================
Tag sources with `VER-2-13-1'.
* docs/VERSION.TXT: Add entry for version 2.13.1.
* docs/CHANGES: Updated.
* docs/release, docs/README, builds/macs/README: Updated.
* README, src/base/ftver.rc, builds/windows/vc2010/index.html,
builds/windows/visualc/index.html, builds/windows/visualce/index.html,
builds/wince/vc2005-ce/index.html, builds/wince/vc2008-ce/index.html,
docs/freetype-config.1: s/2.13.0/2.13/1/, s/2130/2131/.
* include/freetype/freetype.h (FREETYPE_PATCH): Set to 1.
* builds/unix/configure.raw (version_info): Set to 26:0:20.
* CMakeLists.txt (VERSION_PATCH): Set to 1.
* subprojects/libpng.wrap, subprojects/zlib.wrap, subprojects/dlg: Updated.
2023-06-24 05:18:54 +02:00
|
|
|
# <OS> <Build-Tool> <Build-Params> <Architecture>
|
2021-05-18 12:33:25 +02:00
|
|
|
|
|
|
|
|
2022-01-12 06:21:52 +01:00
|
|
|
# Windows jobs.
|
|
|
|
|
2022-07-31 13:14:01 +02:00
|
|
|
windows meson vs2019 amd64:
|
2021-05-18 12:33:25 +02:00
|
|
|
extends: '.build windows meson'
|
2021-01-17 16:33:59 +01:00
|
|
|
variables:
|
|
|
|
ARCH: 'amd64'
|
2022-02-15 10:27:47 +01:00
|
|
|
MESON_WINDOWS_TESTS: '&& meson test -C build && meson test -C build --benchmark'
|
2021-01-17 16:33:59 +01:00
|
|
|
|
2022-07-31 13:14:01 +02:00
|
|
|
windows meson vs2019 x86:
|
2021-05-18 12:33:25 +02:00
|
|
|
extends: '.build windows meson'
|
2021-01-17 16:33:59 +01:00
|
|
|
variables:
|
|
|
|
ARCH: 'x86'
|
2022-02-15 10:27:47 +01:00
|
|
|
MESON_WINDOWS_TESTS: '&& meson test -C build && meson test -C build --benchmark'
|
2021-05-18 12:33:25 +02:00
|
|
|
|
2022-07-31 13:14:01 +02:00
|
|
|
windows meson vs2019 amd64 uwp:
|
2022-02-15 10:27:47 +01:00
|
|
|
extends: '.build windows meson'
|
|
|
|
variables:
|
|
|
|
ARCH: 'amd64'
|
|
|
|
VS_UWP: '-app_platform=UWP'
|
|
|
|
MESON_ARGS_UWP: '--cross-file uwp-crossfile.meson -Dc_winlibs="windowsapp.lib"'
|
2021-05-18 12:33:25 +02:00
|
|
|
|
2022-01-12 06:21:52 +01:00
|
|
|
# Linux Jobs.
|
|
|
|
#
|
|
|
|
# Jobs with "libs" in the name force-enable libraries.
|
|
|
|
# They are disabled for the remaining jobs.
|
|
|
|
|
2021-05-18 12:33:25 +02:00
|
|
|
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: |
|
2022-04-21 14:43:18 +02:00
|
|
|
meson setup build ${MESON_ARGS} \
|
|
|
|
-Dbrotli=disabled \
|
2021-05-18 12:33:25 +02:00
|
|
|
-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: |
|
2022-04-21 14:43:18 +02:00
|
|
|
meson setup build ${MESON_ARGS} \
|
|
|
|
-Dbrotli=enabled \
|
2021-05-18 12:33:25 +02:00
|
|
|
-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
|
|
|
|
2022-01-12 06:21:52 +01:00
|
|
|
|
|
|
|
# MacOS jobs.
|
|
|
|
|
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
|
2022-04-21 14:43:18 +02:00
|
|
|
|
|
|
|
- meson setup build ${MESON_ARGS}
|
2021-10-12 14:56:35 +02:00
|
|
|
- meson compile --verbose -C build
|
|
|
|
- sudo meson install -C build
|