Merge branch 'meson-doc-ci' into 'master'

ci: Fix dist-job missing gobject/gio documentation

See merge request GNOME/glib!123
This commit is contained in:
Philip Withnall 2018-07-06 12:22:24 +00:00
commit fde68be4b7
9 changed files with 45 additions and 45 deletions

View File

@ -1,4 +1,4 @@
image: registry.gitlab.gnome.org/gnome/glib/master:v5 image: registry.gitlab.gnome.org/gnome/glib/master:v6
stages: stages:
- build - build
@ -120,10 +120,10 @@ dist-job:
only: only:
- tags - tags
script: script:
- meson --prefix /usr --libdir /usr/lib64 --buildtype release -Dgtk_doc=true -Dman=true _build . - meson --buildtype release -Dgtk_doc=true -Dman=true _build
- cd _build - cd _build
- ninja dist - ninja dist
- ninja glib-doc - ninja glib-doc gobject-doc gio-doc
- tar -c -f "glib-docs-$CI_COMMIT_TAG.tar.xz" -C docs/reference/glib html - tar -c -f "glib-docs-$CI_COMMIT_TAG.tar.xz" -C docs/reference/glib html
- tar -c -f "gobject-docs-$CI_COMMIT_TAG.tar.xz" -C docs/reference/gobject html - tar -c -f "gobject-docs-$CI_COMMIT_TAG.tar.xz" -C docs/reference/gobject html
- tar -c -f "gio-docs-$CI_COMMIT_TAG.tar.xz" -C docs/reference/gio html - tar -c -f "gio-docs-$CI_COMMIT_TAG.tar.xz" -C docs/reference/gio html

View File

@ -48,7 +48,7 @@ RUN rm -rf $ANDROID_NDK_PATH
COPY cross_file_mingw64.txt /opt COPY cross_file_mingw64.txt /opt
RUN pip3 install meson==0.46.1 RUN pip3 install meson==0.47.0
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

@ -2,7 +2,7 @@
set -e set -e
TAG="registry.gitlab.gnome.org/gnome/glib/master:v5" TAG="registry.gitlab.gnome.org/gnome/glib/master:v6"
docker build --build-arg HOST_USER_ID="$UID" --tag "${TAG}" \ docker build --build-arg HOST_USER_ID="$UID" --tag "${TAG}" \
--file "Dockerfile" . --file "Dockerfile" .

View File

@ -5,6 +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.47.0 || goto :error
meson _build || goto :error meson _build || goto :error
ninja -C _build || goto :error ninja -C _build || goto :error

View File

@ -26,7 +26,7 @@ pacman --noconfirm -S --needed \
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 pip3 install --upgrade --user meson==0.47.0
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"

View File

@ -1,36 +1,36 @@
# FIXME: We should use subdir_done() instead of if blocks, but it's broken in if not get_option('fam')
# meson 0.46.1. See https://github.com/mesonbuild/meson/issues/3700. subdir_done()
if get_option('fam') endif
fam_dep = cc.find_library('fam')
fam_c_args = ['-DG_DISABLE_DEPRECATED'] + gio_c_args fam_dep = cc.find_library('fam')
if cc.has_function('FAMNoExists', dependencies : fam_dep) fam_c_args = ['-DG_DISABLE_DEPRECATED'] + gio_c_args
fam_c_args += '-DHAVE_FAM_NO_EXISTS=1' if cc.has_function('FAMNoExists', dependencies : fam_dep)
endif fam_c_args += '-DHAVE_FAM_NO_EXISTS=1'
endif
deps = [
fam_dep, deps = [
libglib_dep, fam_dep,
libgobject_dep, libglib_dep,
libgio_dep, libgobject_dep,
] libgio_dep,
]
symbol_map = join_paths(meson.current_source_dir(), 'gfamfilemonitor.map')
fam_ldflags = cc.get_supported_link_arguments([ symbol_map = join_paths(meson.current_source_dir(), 'gfamfilemonitor.map')
'-Wl,--version-script,' + symbol_map, fam_ldflags = cc.get_supported_link_arguments([
'-Wl,-no-undefined', '-Wl,--version-script,' + symbol_map,
]) '-Wl,-no-undefined',
])
module = shared_module('giofam', 'gfamfilemonitor.c',
include_directories : [gmoduleinc], module = shared_module('giofam', 'gfamfilemonitor.c',
dependencies : deps, include_directories : [gmoduleinc],
c_args : fam_c_args, dependencies : deps,
link_args : fam_ldflags, c_args : fam_c_args,
link_depends : symbol_map, link_args : fam_ldflags,
install_dir : glib_giomodulesdir, link_depends : symbol_map,
install : true, install_dir : glib_giomodulesdir,
) install : true,
)
if not meson.is_cross_build()
meson.add_install_script('../gio-querymodules-wrapper.py', gio_querymodules.full_path(), glib_giomodulesdir) if not meson.is_cross_build()
endif meson.add_install_script('../gio-querymodules-wrapper.py', gio_querymodules.full_path(), glib_giomodulesdir)
endif endif

View File

@ -30,12 +30,11 @@ gdbus_codegen_built_files += configure_file(input : 'config.py.in',
install_dir : codegen_dir, install_dir : codegen_dir,
configuration : gdbus_codegen_conf) configuration : gdbus_codegen_conf)
blank_conf = configuration_data()
foreach f : gdbus_codegen_files 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 : true,
install_dir : codegen_dir, install_dir : codegen_dir,
configuration : blank_conf) copy : true)
endforeach endforeach

View File

@ -425,7 +425,7 @@ if not meson.is_cross_build() or meson.has_exe_wrapper()
# referenced by test.gresource.xml # referenced by test.gresource.xml
test_generated_txt = configure_file(input : 'test1.txt', test_generated_txt = configure_file(input : 'test1.txt',
output : 'test-generated.txt', output : 'test-generated.txt',
configuration : configuration_data(), copy : true,
install : false) install : false)
exe = executable('resources', 'resources.c', test_gresource, exe = executable('resources', 'resources.c', test_gresource,

View File

@ -1,6 +1,6 @@
project('glib', 'c', 'cpp', project('glib', 'c', 'cpp',
version : '2.57.1', version : '2.57.1',
meson_version : '>= 0.46.1', meson_version : '>= 0.47.0',
default_options : [ default_options : [
'buildtype=debugoptimized', 'buildtype=debugoptimized',
'warning_level=1', 'warning_level=1',