diff --git a/main/data/gresource.xml b/main/data/gresource.xml
index 797fb86e..637da159 100644
--- a/main/data/gresource.xml
+++ b/main/data/gresource.xml
@@ -11,6 +11,7 @@
conversation_content_view/item_metadata_header.ui
conversation_content_view/view.ui
conversation_details.ui
+ conversation_details.css
conversation_item_widget.ui
conversation_list_titlebar.ui
conversation_list_titlebar_csd.ui
diff --git a/main/meson.build b/main/meson.build
index 69069f64..0eca6686 100644
--- a/main/meson.build
+++ b/main/meson.build
@@ -104,6 +104,8 @@ sources += gnome.compile_resources(
c_args = [
'-DG_LOG_DOMAIN="dino"',
'-DGETTEXT_PACKAGE="dino"',
+ '-D_POSIX_C_SOURCE=1',
+ '-D_FILE_OFFSET_BITS=64',
'-DLOCALE_INSTALL_DIR="@0@"'.format(get_option('prefix') / get_option('localedir')),
]
vala_args = [
@@ -118,7 +120,15 @@ endif
if dep_gtk4.version() == 'unknown' or dep_gtk4.version().version_compare('>=4.8')
vala_args += ['-D', 'GTK_4_8']
endif
-exe_dino = executable('dino', sources, c_args: c_args, vala_args: vala_args, dependencies: dependencies, install: true)
+
+link_args = []
+if host_machine.system() == 'windows'
+ link_args += ['-Wl,--export-all-symbols']
+ windows = import('windows')
+ sources += windows.compile_resources('dino-info.rc')
+endif
+
+exe_dino = executable('dino', sources, c_args: c_args, vala_args: vala_args, dependencies: dependencies, install: true, link_args: link_args)
install_data('data/icons/scalable/apps/im.dino.Dino-symbolic.svg', install_dir: get_option('datadir') / 'hicolor/symbolic/apps')
install_data('data/icons/scalable/apps/im.dino.Dino.svg', install_dir: get_option('datadir') / 'hicolor/scalable/apps')
diff --git a/meson.build b/meson.build
index f3372953..aabf9c21 100644
--- a/meson.build
+++ b/meson.build
@@ -1,4 +1,4 @@
-project('xmpp-vala', 'c', 'cpp', 'vala')
+project('xmpp-vala', 'c', 'cpp', 'vala', version:'0.1')
fs = import('fs')
gnome = import('gnome')
@@ -12,6 +12,7 @@ python = import('python')
# On Windows, it's always required because we need it for glib-networking.
if host_machine.system() == 'windows'
plugin_crypto = true
+ add_project_arguments('-D', '_WIN32', language: 'vala')
else
plugin_crypto = get_option('plugin-ice')
foreach plugin : ['plugin-ice', 'plugin-omemo', 'plugin-rtp']
diff --git a/xmpp-vala/meson.build b/xmpp-vala/meson.build
index be5e96a8..0b92be99 100644
--- a/xmpp-vala/meson.build
+++ b/xmpp-vala/meson.build
@@ -132,7 +132,7 @@ c_args = [
vala_args = [
'--vapidir', meson.current_source_dir() / 'vapi',
]
-lib_xmpp_vala = library('xmpp-vala', sources, c_args: c_args, vala_args: vala_args, dependencies: dependencies, version: '0.1', install: true, install_dir: [true, true, true])
+lib_xmpp_vala = library('xmpp-vala', sources, c_args: c_args, vala_args: vala_args, dependencies: dependencies, version: meson.project_version(), install: true, install_dir: [true, true, true])
dep_xmpp_vala = declare_dependency(link_with: lib_xmpp_vala, include_directories: include_directories('.'))
install_data('xmpp-vala.deps', install_dir: get_option('datadir') / 'vala/vapi') # TODO: workaround for https://github.com/mesonbuild/meson/issues/9756