email-client

A gtk4 Email Client
git clone git://archive.git.mtrnord.blog/erooster-mail/email-client.git
Log | Files | Refs | LICENSE

meson.build (1144B)


      1 # Icons #
      2 subdir('icons')
      3 
      4 metainfo_file = '@0@.metainfo.xml'.format(application_id)
      5 desktop_file = '@0@.desktop'.format(application_id)
      6 
      7 appstream_util = find_program('appstream-util', required: false)
      8 desktop_file_validate = find_program('desktop-file-validate', required: false)
      9 
     10 install_data(
     11     desktop_file,
     12     install_dir: datadir / 'applications'
     13 )
     14 
     15 
     16 # Validate Desktop file
     17 if desktop_file_validate.found()
     18   test(
     19     'validate-desktop',
     20     desktop_file_validate,
     21     args: [
     22       datadir / 'applications' / desktop_file
     23     ]
     24   )
     25 endif
     26 
     27 install_data(
     28     metainfo_file,
     29     install_dir: datadir / 'metainfo'
     30 )
     31 
     32 # Validate Appdata
     33 if appstream_util.found()
     34   test(
     35     'validate-appdata', appstream_util,
     36     args: [
     37       'validate', '--nonet', datadir / 'metainfo' / metainfo_file
     38     ]
     39   )
     40 endif
     41 
     42 #install_data(
     43 #    '@0@.svg'.format(application_id),
     44 #    install_dir: datadir / 'icons' / 'hicolor' / 'scalable' / 'apps'
     45 #)
     46 
     47 gnome.compile_resources(
     48   application_id,
     49   '@0@.gresource.xml'.format(application_id),
     50   gresource_bundle: true,
     51   source_dir: meson.current_build_dir(),
     52   install: true,
     53   install_dir: pkgdatadir
     54 )
     55