Skip to content

Commit fe3af02

Browse files
committed
Meson build: Simplify some get_variable() calls
* docs/reference/meson.build: dependency().get_variable(pkgconfig: 'varname', internal: 'varname') -> dependency().get_variable('varname'). Possible when meson version >= 0.58.
1 parent 4c8f0e2 commit fe3af02

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/reference/meson.build

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ docinstall_flags = []
1919
foreach module : tag_file_modules
2020
depmod = dependency(module, required: false)
2121
if depmod.found()
22-
doxytagfile = depmod.get_variable(pkgconfig: 'doxytagfile', internal: 'doxytagfile', default_value: '')
22+
doxytagfile = depmod.get_variable('doxytagfile', default_value: '')
2323
if doxytagfile != ''
2424
if depmod.type_name() == 'internal'
2525
# Subprojects must build their tag files before doxygen is called.
@@ -29,8 +29,8 @@ foreach module : tag_file_modules
2929
doxygen_tag_targets += subproject(module).get_variable('global_tag_file_target')
3030
endif
3131
endif
32-
htmlrefpub = depmod.get_variable(pkgconfig: 'htmlrefpub', internal: 'htmlrefpub', default_value: '')
33-
htmlrefdir = depmod.get_variable(pkgconfig: 'htmlrefdir', internal: 'htmlrefdir', default_value: '')
32+
htmlrefpub = depmod.get_variable('htmlrefpub', default_value: '')
33+
htmlrefdir = depmod.get_variable('htmlrefdir', default_value: '')
3434
if htmlrefpub == ''
3535
htmlrefpub = htmlrefdir
3636
elif htmlrefdir == ''

0 commit comments

Comments
 (0)