Merge branch 'meson-bump' into 'master'

Bump the required version of Meson

See merge request GNOME/glib!924
This commit is contained in:
Philip Withnall 2019-07-24 12:57:32 +00:00
commit 0c0cf59858
13 changed files with 36 additions and 34 deletions

View File

@ -14,7 +14,7 @@ variables:
MESON_COMMON_OPTIONS: "--buildtype debug --fatal-meson-warnings" MESON_COMMON_OPTIONS: "--buildtype debug --fatal-meson-warnings"
fedora-x86_64: fedora-x86_64:
image: registry.gitlab.gnome.org/gnome/glib/fedora:v1 image: registry.gitlab.gnome.org/gnome/glib/fedora:v2
stage: build stage: build
except: except:
- tags - tags
@ -55,7 +55,7 @@ fedora-x86_64:
- "_coverage" - "_coverage"
debian-stable-x86_64: debian-stable-x86_64:
image: registry.gitlab.gnome.org/gnome/glib/debian-stable:v1 image: registry.gitlab.gnome.org/gnome/glib/debian-stable:v3
stage: build stage: build
except: except:
- tags - tags
@ -84,7 +84,7 @@ debian-stable-x86_64:
- "_build/${CI_JOB_NAME}-report.xml" - "_build/${CI_JOB_NAME}-report.xml"
G_DISABLE_ASSERT: G_DISABLE_ASSERT:
image: registry.gitlab.gnome.org/gnome/glib/fedora:v1 image: registry.gitlab.gnome.org/gnome/glib/fedora:v2
stage: build stage: build
except: except:
- tags - tags
@ -255,7 +255,7 @@ freebsd-12-x86_64:
- "_build/${CI_JOB_NAME}-report.xml" - "_build/${CI_JOB_NAME}-report.xml"
coverage: coverage:
image: registry.gitlab.gnome.org/gnome/glib/fedora:v1 image: registry.gitlab.gnome.org/gnome/glib/fedora:v2
stage: coverage stage: coverage
except: except:
- tags - tags
@ -268,7 +268,7 @@ coverage:
coverage: '/^\s+lines\.+:\s+([\d.]+\%)\s+/' coverage: '/^\s+lines\.+:\s+([\d.]+\%)\s+/'
scan-build: scan-build:
image: registry.gitlab.gnome.org/gnome/glib/fedora:v1 image: registry.gitlab.gnome.org/gnome/glib/fedora:v2
stage: analysis stage: analysis
except: except:
- tags - tags
@ -301,7 +301,7 @@ pages:
- public - public
dist-job: dist-job:
image: registry.gitlab.gnome.org/gnome/glib/fedora:v1 image: registry.gitlab.gnome.org/gnome/glib/fedora:v2
stage: build stage: build
only: only:
- tags - tags

View File

@ -63,7 +63,7 @@ RUN ./android-setup-env.sh arm64 21
RUN ./android-setup-env.sh arm64 28 RUN ./android-setup-env.sh arm64 28
RUN rm -rf $ANDROID_NDK_PATH RUN rm -rf $ANDROID_NDK_PATH
RUN pip3 install meson==0.48.0 RUN pip3 install meson==0.49.2
ARG HOST_USER_ID=5555 ARG HOST_USER_ID=5555
ENV HOST_USER_ID ${HOST_USER_ID} ENV HOST_USER_ID ${HOST_USER_ID}

View File

@ -1,9 +1,9 @@
FROM debian:stretch FROM debian:buster
RUN apt-get update -qq && apt-get install --no-install-recommends -qq -y \ RUN apt-get update -qq && apt-get install --no-install-recommends -qq -y \
bindfs \ bindfs \
clang \ clang \
clang-tools-4.0 \ clang-tools-7 \
dbus \ dbus \
desktop-file-utils \ desktop-file-utils \
elfutils \ elfutils \
@ -61,7 +61,7 @@ RUN locale-gen de_DE.UTF-8 \
ENV LANG=C.UTF-8 LANGUAGE=C.UTF-8 LC_ALL=C.UTF-8 ENV LANG=C.UTF-8 LANGUAGE=C.UTF-8 LC_ALL=C.UTF-8
RUN pip3 install meson==0.48.0 RUN pip3 install meson==0.49.2
ARG HOST_USER_ID=5555 ARG HOST_USER_ID=5555
ENV HOST_USER_ID ${HOST_USER_ID} ENV HOST_USER_ID ${HOST_USER_ID}

View File

@ -52,7 +52,7 @@ RUN dnf -y install \
zlib-devel \ zlib-devel \
&& dnf clean all && dnf clean all
RUN pip3 install meson==0.48.0 RUN pip3 install meson==0.49.2
ARG HOST_USER_ID=5555 ARG HOST_USER_ID=5555
ENV HOST_USER_ID ${HOST_USER_ID} ENV HOST_USER_ID ${HOST_USER_ID}

View File

@ -58,7 +58,7 @@ RUN dnf -y install \
WORKDIR /opt WORKDIR /opt
COPY cross_file_mingw64.txt /opt COPY cross_file_mingw64.txt /opt
RUN pip3 install meson==0.48.0 RUN pip3 install meson==0.49.2
ARG HOST_USER_ID=5555 ARG HOST_USER_ID=5555
ENV HOST_USER_ID ${HOST_USER_ID} ENV HOST_USER_ID ${HOST_USER_ID}

View File

@ -5,7 +5,7 @@ call "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary
@echo on @echo on
:: FIXME: make warnings fatal :: FIXME: make warnings fatal
pip3 install --upgrade --user meson==0.48.0 || goto :error pip3 install --upgrade --user meson==0.49.2 || goto :error
meson _build || goto :error meson _build || goto :error
ninja -C _build || goto :error ninja -C _build || goto :error

View File

@ -33,7 +33,7 @@ mkdir -p _coverage
mkdir -p _ccache mkdir -p _ccache
export CCACHE_BASEDIR="$(pwd)" export CCACHE_BASEDIR="$(pwd)"
export CCACHE_DIR="${CCACHE_BASEDIR}/_ccache" export CCACHE_DIR="${CCACHE_BASEDIR}/_ccache"
pip3 install --upgrade --user meson==0.48.0 pip3 install --upgrade --user meson==0.49.2
export PATH="$HOME/.local/bin:$PATH" export PATH="$HOME/.local/bin:$PATH"
export CFLAGS="-coverage -ftest-coverage -fprofile-arcs" export CFLAGS="-coverage -ftest-coverage -fprofile-arcs"
DIR="$(pwd)" DIR="$(pwd)"

View File

@ -16,7 +16,6 @@ gdbus_codegen_conf.set('DATADIR', glib_datadir)
# Install gdbus-codegen executable # Install gdbus-codegen executable
gdbus_codegen = configure_file(input : 'gdbus-codegen.in', gdbus_codegen = configure_file(input : 'gdbus-codegen.in',
output : 'gdbus-codegen', output : 'gdbus-codegen',
install : true,
install_dir : get_option('bindir'), install_dir : get_option('bindir'),
configuration : gdbus_codegen_conf configuration : gdbus_codegen_conf
) )
@ -28,7 +27,6 @@ codegen_dir = join_paths(get_option('datadir'), 'glib-2.0/codegen')
gdbus_codegen_built_files = [] gdbus_codegen_built_files = []
gdbus_codegen_built_files += configure_file(input : 'config.py.in', gdbus_codegen_built_files += configure_file(input : 'config.py.in',
output : 'config.py', output : 'config.py',
install : true,
install_dir : codegen_dir, install_dir : codegen_dir,
configuration : gdbus_codegen_conf) configuration : gdbus_codegen_conf)
@ -36,7 +34,6 @@ foreach f : gdbus_codegen_files
# Copy these into the builddir so that gdbus-codegen can be used uninstalled # Copy these into the builddir so that gdbus-codegen can be used uninstalled
# and then install it too so that it can be used after installation # and then install it too so that it can be used after installation
gdbus_codegen_built_files += configure_file(input : f, output : f, gdbus_codegen_built_files += configure_file(input : f, output : f,
install : true,
install_dir : codegen_dir, install_dir : codegen_dir,
copy : true) copy : true)
endforeach endforeach

View File

@ -996,7 +996,7 @@ if enable_systemtap
output : '@0@.stp'.format(libgio.full_path().split('/').get(-1)), output : '@0@.stp'.format(libgio.full_path().split('/').get(-1)),
configuration : stp_cdata, configuration : stp_cdata,
install_dir : tapset_install_dir, install_dir : tapset_install_dir,
install : true) )
endif endif
subdir('fam') subdir('fam')

View File

@ -424,13 +424,20 @@ else
endif endif
foreach appinfo_test_desktop_file : appinfo_test_desktop_files foreach appinfo_test_desktop_file : appinfo_test_desktop_files
if installed_tests_enabled
configure_file( configure_file(
input: appinfo_test_desktop_file + '.in', input: appinfo_test_desktop_file + '.in',
output: appinfo_test_desktop_file, output: appinfo_test_desktop_file,
install_dir: installed_tests_execdir, install_dir: installed_tests_execdir,
install: installed_tests_enabled,
configuration: cdata, configuration: cdata,
) )
else
configure_file(
input: appinfo_test_desktop_file + '.in',
output: appinfo_test_desktop_file,
configuration: cdata,
)
endif
endforeach endforeach
if installed_tests_enabled if installed_tests_enabled
@ -558,7 +565,7 @@ if not meson.is_cross_build() or meson.has_exe_wrapper()
test_generated_txt = configure_file(input : 'test1.txt', test_generated_txt = configure_file(input : 'test1.txt',
output : 'test-generated.txt', output : 'test-generated.txt',
copy : true, copy : true,
install : false) )
resources_extra_sources = [ resources_extra_sources = [
test_gresource, test_gresource,

View File

@ -1,5 +1,4 @@
configure_file(input : 'glibconfig.h.in', output : 'glibconfig.h', configure_file(input : 'glibconfig.h.in', output : 'glibconfig.h',
install : true,
install_dir : join_paths(get_option('libdir'), 'glib-2.0/include'), install_dir : join_paths(get_option('libdir'), 'glib-2.0/include'),
configuration : glibconfig_conf) configuration : glibconfig_conf)
@ -456,7 +455,7 @@ if enable_systemtap
output : '@0@.stp'.format(libglib.full_path().split('/').get(-1)), output : '@0@.stp'.format(libglib.full_path().split('/').get(-1)),
configuration : stp_cdata, configuration : stp_cdata,
install_dir : tapset_install_dir, install_dir : tapset_install_dir,
install : true) )
endif endif
# Dont build the tests unless we can run them (either natively or in an exe wrapper) # Dont build the tests unless we can run them (either natively or in an exe wrapper)

View File

@ -75,7 +75,6 @@ foreach tool: python_tools
input : tool + '.in', input : tool + '.in',
output : tool, output : tool,
configuration : python_tools_conf, configuration : python_tools_conf,
install : true,
install_dir : glib_bindir, install_dir : glib_bindir,
) )
@ -163,7 +162,7 @@ if enable_systemtap
output : '@0@.stp'.format(libgobject.full_path().split('/').get(-1)), output : '@0@.stp'.format(libgobject.full_path().split('/').get(-1)),
configuration : stp_cdata, configuration : stp_cdata,
install_dir : tapset_install_dir, install_dir : tapset_install_dir,
install : true) )
endif endif
# Dont build the tests unless we can run them (either natively or in an exe wrapper) # Dont build the tests unless we can run them (either natively or in an exe wrapper)

View File

@ -1,6 +1,7 @@
project('glib', 'c', 'cpp', project('glib', 'c', 'cpp',
version : '2.61.2', version : '2.61.2',
meson_version : '>= 0.48.0', # NOTE: We keep this pinned at 0.49 because that's what Debian 10 ships
meson_version : '>= 0.49.2',
default_options : [ default_options : [
'buildtype=debugoptimized', 'buildtype=debugoptimized',
'warning_level=1', 'warning_level=1',
@ -2068,7 +2069,6 @@ if have_sh
gettextize_conf.set('datarootdir', glib_datadir) gettextize_conf.set('datarootdir', glib_datadir)
gettextize_conf.set('datadir', glib_datadir) gettextize_conf.set('datadir', glib_datadir)
configure_file(input : 'glib-gettextize.in', configure_file(input : 'glib-gettextize.in',
install : true,
install_dir : glib_bindir, install_dir : glib_bindir,
output : 'glib-gettextize', output : 'glib-gettextize',
configuration : gettextize_conf) configuration : gettextize_conf)