diff options
author | Robert Tari <robert@tari.in> | 2021-10-24 18:26:49 +0200 |
---|---|---|
committer | Robert Tari <robert@tari.in> | 2021-10-24 18:26:49 +0200 |
commit | 62c77b51b3d7e5cd692a5c019bc19807ed05ec57 (patch) | |
tree | 2595a57b99e3660df3004cd01e8768b2e48c4f72 | |
parent | 7e4b6714abaf2245e3ba590c67e93c2adf4d0a69 (diff) | |
parent | 7e5b7d8fe2dcd6d09f61de12c78ecaaa4db03564 (diff) | |
download | libayatana-appindicator-62c77b51b3d7e5cd692a5c019bc19807ed05ec57.tar.gz libayatana-appindicator-62c77b51b3d7e5cd692a5c019bc19807ed05ec57.tar.bz2 libayatana-appindicator-62c77b51b3d7e5cd692a5c019bc19807ed05ec57.zip |
Merge branch 'sunweaver-pr/make-bindings-optional'
Attributes GH PR #34: https://github.com/AyatanaIndicators/libayatana-appindicator/pull/34
-rw-r--r-- | CMakeLists.txt | 4 | ||||
-rw-r--r-- | bindings/CMakeLists.txt | 6 |
2 files changed, 8 insertions, 2 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 232af6a..8cee2f3 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -13,6 +13,8 @@ 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_GTKDOC "Enable building GTK documentation" OFF) +option(ENABLE_BINDINGS_VALA "Enable Vala bindings (GTK+-3.0 and beyond only)" ON) +option(ENABLE_BINDINGS_MONO "Enable Mono bindings" ON) if(ENABLE_COVERAGE) set(ENABLE_TESTS ON) @@ -111,6 +113,8 @@ endif() 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 "Vala bindings: ${ENABLE_BINDINGS_VALA}") +message(STATUS "Mono bindings: ${ENABLE_BINDINGS_MONO}") message(STATUS "Unit tests: ${ENABLE_TESTS}") message(STATUS "Build with -Werror: ${ENABLE_WERROR}") message(STATUS "API Documentation: ${ENABLE_GTKDOC}") diff --git a/bindings/CMakeLists.txt b/bindings/CMakeLists.txt index 402bcc4..845fd5f 100644 --- a/bindings/CMakeLists.txt +++ b/bindings/CMakeLists.txt @@ -1,4 +1,6 @@ -if (FLAVOUR_GTK3) +if (ENABLE_BINDINGS_VALA AND FLAVOUR_GTK3) add_subdirectory(vala) endif() -add_subdirectory(mono) +if (ENABLE_BINDINGS_MONO) + add_subdirectory(mono) +endif() |