diff --git a/plugins/meson.build b/plugins/meson.build index 196e3634..ee2d53c8 100644 --- a/plugins/meson.build +++ b/plugins/meson.build @@ -4,3 +4,6 @@ subdir('notification-sound') subdir('omemo') subdir('openpgp') subdir('rtp') +if host_machine.system() == 'windows' + subdir('win32-fonts') +endif diff --git a/plugins/win32-fonts/data/gresource.xml b/plugins/win32-fonts/data/gresource.xml new file mode 100644 index 00000000..6a864f75 --- /dev/null +++ b/plugins/win32-fonts/data/gresource.xml @@ -0,0 +1,6 @@ + + + + larger.css + + diff --git a/plugins/win32-fonts/data/larger.css b/plugins/win32-fonts/data/larger.css index e8983b78..6d941944 100644 --- a/plugins/win32-fonts/data/larger.css +++ b/plugins/win32-fonts/data/larger.css @@ -1,3 +1,3 @@ * { font-size: 1.125rem; -} \ No newline at end of file +} diff --git a/plugins/win32-fonts/meson.build b/plugins/win32-fonts/meson.build new file mode 100644 index 00000000..6ac20ea5 --- /dev/null +++ b/plugins/win32-fonts/meson.build @@ -0,0 +1,41 @@ +dependencies = [ + dep_dino, + dep_gee, + dep_glib, + dep_gmodule, + dep_gtk4, + dep_libadwaita, + dep_qlite, + dep_xmpp_vala, +] + +sources = files( + 'src/plugin.vala', + 'src/register_plugin.vala', +) + +sources += gnome.compile_resources( + 'resources', + 'data/gresource.xml', + source_dir: 'data', +) + +c_args = [] +vala_args = [] +if dep_libadwaita.version() == 'unknown' or dep_libadwaita.version().version_compare('>=1.2') + vala_args += ['-D', 'Adw_1_2'] +endif +if dep_gtk4.version() == 'unknown' or dep_gtk4.version().version_compare('>=4.6') + vala_args += ['-D', 'GTK_4_6'] +endif +if dep_gtk4.version() == 'unknown' or dep_gtk4.version().version_compare('>=4.8') + vala_args += ['-D', 'GTK_4_8'] +endif + +link_args = [] +if host_machine.system() == 'windows' + link_args += ['-Wl,--export-all-symbols'] +endif + +libwin32_fonts = shared_library('win32-fonts', sources: sources, name_prefix:'', c_args: c_args, vala_args:vala_args, dependencies: dependencies, install: true, install_dir: get_option('libdir')/'dino/plugins', link_args: link_args) +dep_win32_fonts = declare_dependency(link_with: libwin32_fonts, include_directories: include_directories('.'))