Skip to content

Commit 722a82b

Browse files
committed
Require meson >= 0.54.0
1 parent 58bd5a1 commit 722a82b

File tree

4 files changed

+15
-25
lines changed

4 files changed

+15
-25
lines changed

.github/workflows/meson-clang-10.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,14 @@ jobs:
1414
# Prevent blocking apt install on a question during configuring of tzdata.
1515
export ENV DEBIAN_FRONTEND=noninteractive
1616
sudo apt update
17-
sudo apt install mm-common clang-10 meson ninja-build python3-setuptools --yes
17+
sudo apt install mm-common clang-10 ninja-build python3-setuptools python3-pip --yes
18+
# Ubuntu 20.04 contains meson 0.53.2, but libsigc++ requires meson >= 0.54.0.
19+
# Install it with pip3 instead of apt.
20+
sudo pip3 install "meson>=0.54.0"
1821
export CXX=clang++-10
1922
meson -Dwarnings=fatal _build
2023
cd _build
21-
# Meson from 0.54.0 understands "meson compile".
22-
# Ubuntu 20.04 uses meson 0.53.2.
23-
ninja
24+
meson compile
2425
- name: Test
2526
run: |
2627
cd _build

.github/workflows/meson-gcc-9.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,14 @@ jobs:
1414
# Prevent blocking apt install on a question during configuring of tzdata.
1515
export ENV DEBIAN_FRONTEND=noninteractive
1616
sudo apt update
17-
sudo apt install mm-common g++-9 meson ninja-build python3-setuptools --yes
17+
sudo apt install mm-common g++-9 ninja-build python3-setuptools python3-pip --yes
18+
# Ubuntu 20.04 contains meson 0.53.2, but libsigc++ requires meson >= 0.54.0.
19+
# Install it with pip3 instead of apt.
20+
sudo pip3 install "meson>=0.54.0"
1821
export CXX=g++-9
1922
meson -Dwarnings=fatal _build
2023
cd _build
21-
# Meson from 0.54.0 understands "meson compile".
22-
# Ubuntu 20.04 uses meson 0.53.2.
23-
ninja
24+
meson compile
2425
- name: Test
2526
run: |
2627
cd _build

docs/docs/reference/meson.build

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -18,17 +18,7 @@ docinstall_flags = []
1818
foreach module : tag_file_modules
1919
depmod = dependency(module, required: false)
2020
if depmod.found()
21-
if meson.version().version_compare('>=0.54.0')
22-
doxytagfile = depmod.get_variable(pkgconfig: 'doxytagfile', internal: 'doxytagfile', default_value: '')
23-
htmlrefpub = depmod.get_variable(pkgconfig: 'htmlrefpub', internal: 'htmlrefpub', default_value: '')
24-
htmlrefdir = depmod.get_variable(pkgconfig: 'htmlrefdir', internal: 'htmlrefdir', default_value: '')
25-
else
26-
# TODO: Remove the possibility to build with meson.version() < 0.54.0
27-
# when >= 0.54.0 is available in GitHub's CI (continuous integration).
28-
doxytagfile = depmod.get_variable(pkgconfig: 'doxytagfile', default_value: '')
29-
htmlrefpub = depmod.get_variable(pkgconfig: 'htmlrefpub', default_value: '')
30-
htmlrefdir = depmod.get_variable(pkgconfig: 'htmlrefdir', default_value: '')
31-
endif
21+
doxytagfile = depmod.get_variable(pkgconfig: 'doxytagfile', internal: 'doxytagfile', default_value: '')
3222
if doxytagfile != ''
3323
if depmod.type_name() == 'internal'
3424
# Subprojects must build their tag files before doxygen is called.
@@ -38,6 +28,8 @@ foreach module : tag_file_modules
3828
doxygen_tag_targets += subproject(module).get_variable('global_tag_file_target')
3929
endif
4030
endif
31+
htmlrefpub = depmod.get_variable(pkgconfig: 'htmlrefpub', internal: 'htmlrefpub', default_value: '')
32+
htmlrefdir = depmod.get_variable(pkgconfig: 'htmlrefdir', internal: 'htmlrefdir', default_value: '')
4133
if htmlrefpub == ''
4234
htmlrefpub = htmlrefdir
4335
elif htmlrefdir == ''

meson.build

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,9 @@ project('libsigc++', 'cpp',
77
'cpp_std=c++17',
88
'warning_level=0',
99
],
10-
meson_version: '>= 0.51.0', # required for dep.get_variable()
10+
meson_version: '>= 0.54.0', # required for meson.override_dependency()
11+
# and dep.get_variable(internal:)
1112
)
12-
#TODO: Require meson_version: '>= 0.54.0' when it's available
13-
# in GitHub's CI (continuous integration).
14-
# meson_version() >= 0.54.0 is necessary if sigc++ is a subproject,
15-
# or if mm-common is a subproject of sigc++.
1613

1714
sigcxx_api_version = '3.0'
1815
sigcxx_pcname = 'sigc++-' + sigcxx_api_version
@@ -148,7 +145,6 @@ sys.exit(os.path.isfile("@0@"))
148145
endif
149146

150147
# Check if perl is required and available.
151-
# Done now, when the doc_reference script is available.
152148
doc_perl_prop = run_command(
153149
python3, doc_reference, 'get_script_property',
154150
'', # MMDOCTOOLDIR is not used

0 commit comments

Comments
 (0)