From b28e807d94462770765566ab0d879554da1f2b23 Mon Sep 17 00:00:00 2001 From: Mike Gabriel Date: Mon, 17 May 2021 13:40:29 +0200 Subject: {,**/}CMakeLists.txt: Support builds against GTK+-3.0 with IDO support disabled. Fixes https://github.com/AyatanaIndicators/libayatana-indicator/issues/37 --- data/CMakeLists.txt | 6 +++++- data/ayatana-indicator3-no-IDO.pc.in | 15 +++++++++++++++ data/ayatana-indicator3.pc.in | 2 +- 3 files changed, 21 insertions(+), 2 deletions(-) create mode 100644 data/ayatana-indicator3-no-IDO.pc.in (limited to 'data') diff --git a/data/CMakeLists.txt b/data/CMakeLists.txt index 8e10313..2a60d05 100644 --- a/data/CMakeLists.txt +++ b/data/CMakeLists.txt @@ -1,7 +1,11 @@ # ayatana-indicator3-0.4.pc if (FLAVOUR_GTK3) - configure_file("${CMAKE_CURRENT_SOURCE_DIR}/ayatana-indicator3.pc.in" "${CMAKE_CURRENT_BINARY_DIR}/ayatana-indicator3-0.${API_VERSION}.pc" @ONLY) + if (ENABLE_IDO) + configure_file("${CMAKE_CURRENT_SOURCE_DIR}/ayatana-indicator3.pc.in" "${CMAKE_CURRENT_BINARY_DIR}/ayatana-indicator3-0.${API_VERSION}.pc" @ONLY) + else() + configure_file("${CMAKE_CURRENT_SOURCE_DIR}/ayatana-indicator3-no-IDO.pc.in" "${CMAKE_CURRENT_BINARY_DIR}/ayatana-indicator3-0.${API_VERSION}.pc" @ONLY) + endif() install(FILES "${CMAKE_CURRENT_BINARY_DIR}/ayatana-indicator3-0.${API_VERSION}.pc" DESTINATION "${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_LIBDIR}/pkgconfig/") else() configure_file("${CMAKE_CURRENT_SOURCE_DIR}/ayatana-indicator.pc.in" "${CMAKE_CURRENT_BINARY_DIR}/ayatana-indicator-0.${API_VERSION}.pc" @ONLY) diff --git a/data/ayatana-indicator3-no-IDO.pc.in b/data/ayatana-indicator3-no-IDO.pc.in new file mode 100644 index 0000000..231fa71 --- /dev/null +++ b/data/ayatana-indicator3-no-IDO.pc.in @@ -0,0 +1,15 @@ +prefix=@CMAKE_INSTALL_PREFIX@ +exec_prefix=${prefix} +libdir=${exec_prefix}/@CMAKE_INSTALL_LIBDIR@ +bindir=${exec_prefix}/@CMAKE_INSTALL_BINDIR@ +includedir=${prefix}/@CMAKE_INSTALL_INCLUDEDIR@ +indicatordir=${exec_prefix}/lib/ayatana-indicators3/@ABI_VERSION@/ +iconsdir=${prefix}/@CMAKE_INSTALL_DATADIR@/@PROJECT_NAME@/icons/ + +Cflags: -I${includedir}/libayatana-indicator3-0.@API_VERSION@ +Requires: gtk+-3.0 +Libs: -layatana-indicator3 + +Name: libayatana-indicator3 +Description: libayatana-indicator3. +Version: @PROJECT_VERSION@ diff --git a/data/ayatana-indicator3.pc.in b/data/ayatana-indicator3.pc.in index 231fa71..6941827 100644 --- a/data/ayatana-indicator3.pc.in +++ b/data/ayatana-indicator3.pc.in @@ -7,7 +7,7 @@ indicatordir=${exec_prefix}/lib/ayatana-indicators3/@ABI_VERSION@/ iconsdir=${prefix}/@CMAKE_INSTALL_DATADIR@/@PROJECT_NAME@/icons/ Cflags: -I${includedir}/libayatana-indicator3-0.@API_VERSION@ -Requires: gtk+-3.0 +Requires: gtk+-3.0 libayatana-ido3-0.4 Libs: -layatana-indicator3 Name: libayatana-indicator3 -- cgit v1.2.3