aboutsummaryrefslogtreecommitdiff
path: root/plugins/omemo/CMakeLists.txt
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/omemo/CMakeLists.txt')
-rw-r--r--plugins/omemo/CMakeLists.txt11
1 files changed, 10 insertions, 1 deletions
diff --git a/plugins/omemo/CMakeLists.txt b/plugins/omemo/CMakeLists.txt
index 7ecaa0b8..a8920d72 100644
--- a/plugins/omemo/CMakeLists.txt
+++ b/plugins/omemo/CMakeLists.txt
@@ -3,8 +3,10 @@ find_package(Gettext)
include(${GETTEXT_USE_FILE})
gettext_compile(${GETTEXT_PACKAGE} SOURCE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/po TARGET_NAME ${GETTEXT_PACKAGE}-translations)
+find_package(Adwaita REQUIRED)
find_package(Qrencode REQUIRED)
find_packages(OMEMO_PACKAGES REQUIRED
+ Adwaita
Gee
GLib
GModule
@@ -19,6 +21,7 @@ find_package(SignalProtocol 2.3.2 REQUIRED)
set(RESOURCE_LIST
contact_details_dialog.ui
+ encryption_preferences_entry.ui
manage_key_dialog.ui
)
@@ -31,6 +34,10 @@ compile_gresources(
PREFIX /im/dino/Dino/omemo
SOURCE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/data
)
+set(OMEMO_DEFINITIONS)
+if(Adwaita_VERSION VERSION_GREATER_EQUAL "1.2")
+ set(OMEMO_DEFINITIONS ${OMEMO_DEFINITIONS} Adw_1_2)
+endif()
vala_precompile(OMEMO_VALA_C
SOURCES
@@ -65,7 +72,6 @@ SOURCES
src/signal/store.vala
src/signal/util.vala
- src/ui/account_settings_entry.vala
src/ui/bad_messages_populator.vala
src/ui/call_encryption_entry.vala
src/ui/contact_details_provider.vala
@@ -73,6 +79,7 @@ SOURCES
src/ui/device_notification_populator.vala
src/ui/own_notifications.vala
src/ui/encryption_list_entry.vala
+ src/ui/encryption_preferences_entry.vala
src/ui/manage_key_dialog.vala
src/ui/util.vala
CUSTOM_VAPIS
@@ -86,6 +93,8 @@ PACKAGES
${OMEMO_PACKAGES}
GRESOURCES
${OMEMO_GRESOURCES_XML}
+DEFINITIONS
+ ${OMEMO_DEFINITIONS}
GENERATE_VAPI
omemo
GENERATE_HEADER