diff --git a/metadata/meson.build b/metadata/meson.build index 1f487f08..4397dec7 100644 --- a/metadata/meson.build +++ b/metadata/meson.build @@ -6,31 +6,31 @@ if ascli_exe.found() ascli_exe, args: ['validate', '--no-net', '--pedantic', metainfo_file], ) -endif -ascli_exe = find_program('appstreamcli') -custom_target( - 'gen-desktop-entry', - input: [metainfo_file], - output: ['com.karurochari.vs.desktop'], - command: [ascli_exe, 'make-desktop-file', '@INPUT@', '@OUTPUT@'], - install: true, - install_dir: join_paths(get_option('datadir'), 'applications'), -) + custom_target( + 'gen-desktop-entry', + input: [metainfo_file], + output: ['com.karurochari.vs.desktop'], + command: [ascli_exe, 'make-desktop-file', '@INPUT@', '@OUTPUT@'], + install: true, + install_dir: join_paths(get_option('datadir'), 'applications'), + ) + + install_data( + sources: ['vs.light.svg'], + rename: ['vs.svg'], + install_dir: join_paths(get_option('datadir'), 'icons', 'hicolor', 'scalable', 'apps'), + ) -install_data( - sources: ['vs.light.svg'], - rename: ['vs.svg'], - install_dir: join_paths(get_option('datadir'), 'icons', 'hicolor', 'scalable', 'apps'), -) + # NOTE: Remember to add the XML file to POTFILES.in! + #i18n.merge_file( + # input: metainfo_file, + # output: 'com.karurochari.vs.metainfo.xml', + # type: 'xml', + # po_dir: join_paths (meson.project_source_root(), 'po'), + # install: true, + # install_dir: join_paths (get_option ('datadir'), 'metainfo') + #) + i18n = import('i18n') -# NOTE: Remember to add the XML file to POTFILES.in! -#i18n.merge_file( -# input: metainfo_file, -# output: 'com.karurochari.vs.metainfo.xml', -# type: 'xml', -# po_dir: join_paths (meson.project_source_root(), 'po'), -# install: true, -# install_dir: join_paths (get_option ('datadir'), 'metainfo') -#) -i18n = import('i18n') \ No newline at end of file +endif \ No newline at end of file