qulogic/pidgin

Don't build/install AppData and Desktop files on Windows

8 months ago, Elliott Sales de Andrade
6e536023f78f
Parents 0459fca48457
Children b19ffc40278d
Don't build/install AppData and Desktop files on Windows

These are unlikely to be of any use there.

Testing Done:
Configured on Linux/Windows.

Reviewed at https://reviews.imfreedom.org/r/2739/
--- a/libpurple/data/meson.build Thu Oct 26 22:51:00 2023 -0500
+++ b/libpurple/data/meson.build Thu Oct 26 23:06:05 2023 -0500
@@ -1,16 +1,18 @@
-PURPLE3_URL_HANDLER_DESKTOP = 'purple3-url-handler.desktop'
-i18n = import('i18n')
-desktop_file_in = configure_file(
- input : PURPLE3_URL_HANDLER_DESKTOP + '.in.in',
- output : PURPLE3_URL_HANDLER_DESKTOP + '.in',
- configuration : conf)
-i18n.merge_file(
- input : desktop_file_in,
- output : PURPLE3_URL_HANDLER_DESKTOP,
- po_dir : meson.project_source_root() / 'po',
- type : 'desktop',
- install : true,
- install_dir : get_option('datadir') / 'applications')
+if host_machine.system() != 'windows'
+ PURPLE3_URL_HANDLER_DESKTOP = 'purple3-url-handler.desktop'
+ i18n = import('i18n')
+ desktop_file_in = configure_file(
+ input : f'@PURPLE3_URL_HANDLER_DESKTOP@.in.in',
+ output : f'@PURPLE3_URL_HANDLER_DESKTOP@.in',
+ configuration : conf)
+ i18n.merge_file(
+ input : desktop_file_in,
+ output : PURPLE3_URL_HANDLER_DESKTOP,
+ po_dir : meson.project_source_root() / 'po',
+ type : 'desktop',
+ install : true,
+ install_dir : get_option('datadir') / 'applications')
+endif
schemas_dir = get_option('prefix') / get_option('datadir') / 'glib-2.0' / 'schemas'
settings_schemas = [
--- a/pidgin/meson.build Thu Oct 26 22:51:00 2023 -0500
+++ b/pidgin/meson.build Thu Oct 26 23:06:05 2023 -0500
@@ -253,26 +253,28 @@
requires : [gtk, libadwaita, libpurple, 'talkatu', 'gplugin-gtk4'],
variables : [f'plugindir=${libdir}/pidgin-@purple_major_version@'])
-PIDGIN_DESKTOP_FILE = 'im.pidgin.Pidgin3.desktop'
-i18n = import('i18n')
-desktop_file_in = configure_file(
- input : 'data' / (PIDGIN_DESKTOP_FILE + '.in.in'),
- output : PIDGIN_DESKTOP_FILE + '.in',
- configuration : conf)
-i18n.merge_file(
- input : desktop_file_in,
- output : PIDGIN_DESKTOP_FILE,
- po_dir : meson.project_source_root() / 'po',
- type : 'desktop',
- install : true,
- install_dir : get_option('datadir') / 'applications')
+if host_machine.system() != 'windows'
+ PIDGIN_DESKTOP_FILE = 'im.pidgin.Pidgin3.desktop'
+ i18n = import('i18n')
+ desktop_file_in = configure_file(
+ input : 'data' / f'@PIDGIN_DESKTOP_FILE@.in.in',
+ output : f'@PIDGIN_DESKTOP_FILE@.in',
+ configuration : conf)
+ i18n.merge_file(
+ input : desktop_file_in,
+ output : PIDGIN_DESKTOP_FILE,
+ po_dir : meson.project_source_root() / 'po',
+ type : 'desktop',
+ install : true,
+ install_dir : get_option('datadir') / 'applications')
-i18n.merge_file(
- input : 'data/im.pidgin.Pidgin3.appdata.xml.in',
- output : 'im.pidgin.Pidgin3.appdata.xml',
- po_dir : meson.project_source_root() / 'po',
- install : true,
- install_dir : get_option('datadir') / 'metainfo')
+ i18n.merge_file(
+ input : 'data/im.pidgin.Pidgin3.appdata.xml.in',
+ output : 'im.pidgin.Pidgin3.appdata.xml',
+ po_dir : meson.project_source_root() / 'po',
+ install : true,
+ install_dir : get_option('datadir') / 'metainfo')
+endif
if enable_introspection
introspection_sources = libpidgin_SOURCES + libpidgin_headers + libpidgin_prefs_headers