diff options
author | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2022-02-17 16:50:06 +0100 |
---|---|---|
committer | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2022-02-17 16:50:06 +0100 |
commit | 73120891d71ede15dadd46b2b8f45e7dd0a950f4 (patch) | |
tree | 4cce0caed95847fad2b3f1a44020d4e883e9ca87 /CMakeLists.txt | |
parent | 111165eede28d96c9687c93999d528d39a5a2954 (diff) | |
parent | 672e4c4189d069efdba160b2d7e8eadc3f00e801 (diff) | |
download | ayatana-indicator-sound-73120891d71ede15dadd46b2b8f45e7dd0a950f4.tar.gz ayatana-indicator-sound-73120891d71ede15dadd46b2b8f45e7dd0a950f4.tar.bz2 ayatana-indicator-sound-73120891d71ede15dadd46b2b8f45e7dd0a950f4.zip |
Merge branch 'tari01-pr/add-lomiri-features-flag'
Attributes GH PR #74: https://github.com/AyatanaIndicators/ayatana-indicator-sound/pull/74
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 21 |
1 files changed, 15 insertions, 6 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 82eabd5..a4618aa 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -17,6 +17,7 @@ include(UseVala) option(ENABLE_TESTS "Enable all tests and checks" OFF) option(ENABLE_COVERAGE "Enable coverage reports (includes enabling all tests and checks)" OFF) option(ENABLE_WERROR "Treat all build warnings as errors" OFF) +option(ENABLE_LOMIRI_FEATURES "Build with Lomiri-specific libraries, schemas and media" OFF) if(ENABLE_COVERAGE) set(ENABLE_TESTS ON) @@ -49,8 +50,8 @@ pkg_check_modules( ) include_directories(${PULSEAUDIO_INCLUDE_DIRS}) -pkg_check_modules( - SOUNDSERVICE REQUIRED +set( + SOUNDSERVICE gee-0.8 gio-2.0>=${GIO_2_0_REQUIRED_VERSION} gio-unix-2.0 @@ -60,15 +61,22 @@ pkg_check_modules( accountsservice libayatana-common ) -include_directories(${SOUNDSERVICE_INCLUDE_DIRS}) -pkg_check_modules(LOMIRI_API liblomiri-api>=0.1.1) -pkg_check_modules(LOMIRI_SCHEMAS lomiri-schemas) +if (ENABLE_LOMIRI_FEATURES) + list ( + APPEND + SOUNDSERVICE + liblomiri-api>=0.1.1 + lomiri-schemas + ) +endif () + +pkg_check_modules (SOUNDSERVICE REQUIRED ${SOUNDSERVICE}) +include_directories(${SOUNDSERVICE_INCLUDE_DIRS}) include_directories(${TEST_INCLUDE_DIRS}) find_package(Vala 0.20) - find_package(GObjectIntrospection 0.9.12) include_directories(${SOURCE_DIR}) @@ -109,3 +117,4 @@ endif () message(STATUS "Install prefix: ${CMAKE_INSTALL_PREFIX}") message(STATUS "Unit tests: ${ENABLE_TESTS}") message(STATUS "Build with -Werror: ${ENABLE_WERROR}") +message(STATUS "Build with Lomiri features: ${ENABLE_LOMIRI_FEATURES}") |