mirror of
https://gitlab.gnome.org/GNOME/libgnome-volume-control.git
synced 2024-11-21 08:20:40 -05:00
ci: Use meson for CI build
All consumers of the submodule switched to meson, except the CI build. It neither seems useful to maintain a second build system just for that purpose, nor to test a configuation that isn't used by anybody. So set up a small fake project that includes gvc as a subproject, and build that during CI. https://gitlab.gnome.org/GNOME/libgnome-volume-control/merge_requests/9
This commit is contained in:
parent
468022b708
commit
78d3f49f79
@ -5,7 +5,9 @@ build-fedora:
|
||||
image: fedora:latest
|
||||
stage: test
|
||||
before_script:
|
||||
- dnf install -y redhat-rpm-config gcc make pulseaudio-libs-devel alsa-lib-devel gtk3-devel
|
||||
- dnf install -y redhat-rpm-config gcc meson pulseaudio-libs-devel alsa-lib-devel gtk3-devel
|
||||
script:
|
||||
- make -f Makefile.tests
|
||||
- cd .gitlab-ci
|
||||
- meson _build
|
||||
- ninja -C _build
|
||||
|
||||
|
23
.gitlab-ci/meson.build
Normal file
23
.gitlab-ci/meson.build
Normal file
@ -0,0 +1,23 @@
|
||||
project('gnome-volume-control-ci', 'c',
|
||||
version: '1.0.0',
|
||||
meson_version: '>= 0.47.0',
|
||||
license: 'GPLv2+'
|
||||
)
|
||||
|
||||
prefix = get_option('prefix')
|
||||
|
||||
datadir = join_paths(prefix, get_option('datadir'))
|
||||
libdir = join_paths(prefix, get_option('libdir'))
|
||||
|
||||
pkgdatadir = join_paths(datadir, meson.project_name())
|
||||
pkglibdir = join_paths(libdir, meson.project_name())
|
||||
|
||||
libgvc = subproject('gvc',
|
||||
default_options: [
|
||||
'package_name=' + meson.project_name(),
|
||||
'package_version=' + meson.project_version(),
|
||||
'pkgdatadir=' + pkgdatadir,
|
||||
'pkglibdir=' + pkglibdir,
|
||||
'alsa=true'
|
||||
]
|
||||
)
|
1
.gitlab-ci/subprojects/gvc
Symbolic link
1
.gitlab-ci/subprojects/gvc
Symbolic link
@ -0,0 +1 @@
|
||||
../../
|
Loading…
Reference in New Issue
Block a user