build: fix building without tests support

This commit is contained in:
Aleksander Morgado
2022-11-07 14:25:34 +00:00
parent 30d77d378a
commit 7ea2452b1e
3 changed files with 46 additions and 34 deletions
+4 -1
View File
@@ -247,11 +247,14 @@ daemon_enums_sources += gnome.mkenums(
deps = [
gmodule_dep,
libmm_test_generated_dep,
libport_dep,
libqcdm_dep,
]
if enable_tests
deps += [libmm_test_generated_dep]
endif
c_args = [
'-DMM_COMPILATION',
'-DPLUGINDIR="@0@"'.format(mm_prefix / mm_pkglibdir),