talkatu/talkatu
Clone
Summary
Browse
Changes
Graph
Modernize and simplify Meson files
19 months ago, Elliott Sales de Andrade
ad000db4fe9a
Modernize and simplify Meson files
Use f-strings and some better loops.
Remove `TALKATU_UNUSED` which duplicated `G_GNUC_UNUSED`, and is also unused.
Also remove checks for old Meson which I thought I looked for before, but didn't find.
Testing Done:
Compiled and ran `ninja test`
Reviewed at https://reviews.imfreedom.org/r/2038/
if
not
get_option
(
'tests'
)
subdir_done
()
endif
TEST_WRAPPER
=
find_program
(
'./test-wrapper.py'
,
required
:
true
)
testenv
=
environment
()
testenv
.
set
(
'XDG_CONFIG_HOME'
,
meson
.
current_build_dir
()
/
'config'
)
e
=
executable
(
'test-html-serialization'
,
'talkatutesthtmlserialization.c'
,
dependencies
:
[
talkatu_dep
,
GLIB
,
GTK4
]
)
test
(
'html'
,
TEST_WRAPPER
,
args
:
e
,
is_parallel
:
false
,
env
:
testenv
)
e
=
executable
(
'test-action-group'
,
'talkatutestactiongroup.c'
,
dependencies
:
[
talkatu_dep
,
GLIB
,
GTK4
]
)
test
(
'action-group'
,
TEST_WRAPPER
,
args
:
e
,
is_parallel
:
false
,
env
:
testenv
)
e
=
executable
(
'test-html-pango-renderer'
,
'talkatutesthtmlpangorenderer.c'
,
dependencies
:
[
talkatu_dep
,
GLIB
]
)
test
(
'html-pango-renderer'
,
TEST_WRAPPER
,
args
:
e
,
is_parallel
:
false
,
env
:
testenv
)
e
=
executable
(
'test-html-renderer'
,
'talkatutesthtmlrenderer.c'
,
dependencies
:
[
talkatu_dep
,
GLIB
]
)
test
(
'html-renderer'
,
TEST_WRAPPER
,
args
:
e
,
is_parallel
:
false
,
env
:
testenv
)