diff options
author | Robert Tari <robert@tari.in> | 2021-05-17 20:06:03 +0200 |
---|---|---|
committer | Robert Tari <robert@tari.in> | 2021-05-17 20:06:03 +0200 |
commit | a129e900e93a25a23b2938c3d0d3dbf5753d56fc (patch) | |
tree | 5efaaaa5d7b61ff757a6ef3e7c73588e0289c2c7 /CMakeLists.txt | |
parent | f6baadaffdb58ba27d585f67680bd7e6172f4444 (diff) | |
parent | 99f8f1fb50cf82727b3b41ec04895d1e5744aab6 (diff) | |
download | libayatana-indicator-a129e900e93a25a23b2938c3d0d3dbf5753d56fc.tar.gz libayatana-indicator-a129e900e93a25a23b2938c3d0d3dbf5753d56fc.tar.bz2 libayatana-indicator-a129e900e93a25a23b2938c3d0d3dbf5753d56fc.zip |
Merge branch 'sunweaver-pr/support-disabling-IDO'
Attributes GH PR #46: https://github.com/AyatanaIndicators/libayatana-indicator/pull/46
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 30 |
1 files changed, 16 insertions, 14 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index c7444f8..3ca49ee 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -20,30 +20,29 @@ endif() option(FLAVOUR_GTK2 "Build against GTK+-2.0" OFF) option(FLAVOUR_GTK3 "Build against GTK+-3.0" ON) +option(ENABLE_IDO "Enable IDO specific code" ON) + if (FLAVOUR_GTK2) set (FLAVOUR_GTK3 OFF) + set (ENABLE_IDO OFF) endif() if (FLAVOUR_GTK3) set (FLAVOUR_GTK2 OFF) endif() -if (FLAVOUR_GTK3) +set(DEPS + glib-2.0>=2.37 + gtk+-3.0>=3.24 + gmodule-2.0 + gio-unix-2.0 +) + +if (FLAVOUR_GTK3 AND ENABLE_IDO) set(DEPS - glib-2.0>=2.37 - gtk+-3.0>=3.24 - gmodule-2.0 - gio-unix-2.0 + ${DEPS} libayatana-ido3-0.4>=0.8.2 ) endif() -if (FLAVOUR_GTK2) - set(DEPS - glib-2.0>=2.37 - gtk+-2.0>=2.18 - gmodule-2.0 - gio-unix-2.0 - ) -endif() find_package (PkgConfig REQUIRED) pkg_check_modules(PROJECT_DEPS REQUIRED ${DEPS}) @@ -97,7 +96,7 @@ set (COVERAGE_TEST_EXECUTABLES "test-loader" ) -if(FLAVOUR_GTK3) +if(FLAVOUR_GTK3 AND ENABLE_IDO) set (COVERAGE_TEST_EXECUTABLES ${COVERAGE_TEST_EXECUTABLES} "test-indicator-ng" @@ -123,4 +122,7 @@ endif() # Display config info message(STATUS "Install prefix: ${CMAKE_INSTALL_PREFIX}") +message(STATUS "GTK+-3.0 build: ${FLAVOUR_GTK3}") +message(STATUS "GTK+-2.0 build: ${FLAVOUR_GTK2}") +message(STATUS "IDO enabled: ${ENABLE_IDO}") message(STATUS "Unit tests: ${ENABLE_TESTS}") |