From 88e440bb1689063c6d47ac7a4965eb597a8ec9cb Mon Sep 17 00:00:00 2001 From: Robert Tari Date: Thu, 11 Nov 2021 00:10:38 +0100 Subject: Clean up schema detection and conditional code --- CMakeLists.txt | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'CMakeLists.txt') diff --git a/CMakeLists.txt b/CMakeLists.txt index 3038762..7a5a37a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -63,6 +63,12 @@ pkg_check_modules( include_directories(${SOUNDSERVICE_INCLUDE_DIRS}) pkg_check_modules(LOMIRI_API liblomiri-api>=0.1.1) +pkg_check_modules(LOMIRI_SCHEMAS lomiri-schemas) + +# FIXME: Drop this block once lomiri-schemas has all the schemas: https://gitlab.com/ubports/core/lomiri-schemas/-/merge_requests/1 +if(LOMIRI_SCHEMAS_FOUND AND NOT EXISTS "/usr/share/accountsservice/interfaces/com.lomiri.AccountsService.Sound.xml") + set(LOMIRI_SCHEMAS_FOUND FALSE) +endif() include_directories(${TEST_INCLUDE_DIRS}) -- cgit v1.2.3