@@ -5,53 +5,53 @@ install_data (
55 rename : meson .project_name() + ' .gschema.xml'
66)
77
8- #======== Internationalization ========
9- #Translate and install our .desktop file
10- i18n.merge_file(
11- input : ' jorts.desktop.in' ,
12- output : meson .project_name() + ' .desktop' ,
13- po_dir : meson .project_source_root() / ' po' / ' extra' ,
14- type : ' desktop' ,
15- install : true ,
16- install_dir : get_option (' datadir' ) / ' applications'
17- )
18-
19-
20- # metainfo confuses windows
8+ # metainfo confuses windows, and icons are
219if not windows_build
2210
23- #Translate and install our .metainfo file
24- i18n.merge_file(
25- input : ' jorts.metainfo.xml.in ' ,
26- output : meson .project_name() + ' .metainfo.xml ' ,
27- po_dir : meson .project_source_root () / ' po ' / ' extra ' ,
28- install : true ,
29- install_dir : get_option ( ' datadir ' ) / ' metainfo '
30- )
31-
32- endif
11+ #======== Internationalization ========
12+ #Translate and install our .desktop file
13+ i18n.merge_file(
14+ input : ' jorts.desktop.in ' ,
15+ output : meson .project_name () + ' .desktop ' ,
16+ po_dir : meson .project_source_root() / ' po ' / ' extra ' ,
17+ type : ' desktop ' ,
18+ install : true ,
19+ install_dir : get_option ( ' datadir ' ) / ' applications '
20+ )
3321
34- #======== ICONS ========
22+ #======== Metainfo ========
23+ #Translate and install our .metainfo file
24+ i18n.merge_file(
25+ input : ' jorts.metainfo.xml.in' ,
26+ output : meson .project_name() + ' .metainfo.xml' ,
27+ po_dir : meson .project_source_root() / ' po' / ' extra' ,
28+ install : true ,
29+ install_dir : get_option (' datadir' ) / ' metainfo'
30+ )
3531
36- # Install our icons in all the required sizes
37- # "variant" variable has been declared earlier in the base meson
38- icon_sizes = [' 16' , ' 24' , ' 32' , ' 48' , ' 64' , ' 128' ]
32+ #======== ICONS ========
33+ # Install our icons in all the required sizes
34+ # "variant" variable has been declared earlier in the base meson
35+ icon_sizes = [' 16' , ' 24' , ' 32' , ' 48' , ' 64' , ' 128' ]
36+
37+ foreach i : icon_sizes
38+ install_data (
39+ ' icons' / variant / ' hicolor' / i + ' .png' ,
40+ install_dir : get_option (' datadir' ) / ' icons' / ' hicolor' / i + ' x' + i / ' apps' ,
41+ rename : meson .project_name() + ' .png'
42+ )
43+ install_data (
44+ ' icons' / variant / ' hicolor@2' / i + ' @2.png' ,
45+ install_dir : get_option (' datadir' ) / ' icons' / ' hicolor' / i + ' x' + i + ' @2' / ' apps' ,
46+ rename : meson .project_name() + ' .png'
47+ )
48+ endforeach
3949
40- foreach i : icon_sizes
41- install_data (
42- ' icons' / variant / ' hicolor' / i + ' .png' ,
43- install_dir : get_option (' datadir' ) / ' icons' / ' hicolor' / i + ' x' + i / ' apps' ,
44- rename : meson .project_name() + ' .png'
45- )
4650 install_data (
47- ' icons' / variant / ' hicolor@2 ' / i + ' @2.png ' ,
48- install_dir : get_option (' datadir' ) / ' icons' / ' hicolor ' / i + ' x ' + i + ' @2 ' / ' apps' ,
49- rename : meson .project_name() + ' .png '
51+ ' icons' / variant / ' scalable.svg ' ,
52+ install_dir : get_option (' datadir' ) / ' icons' / ' scalable ' / ' apps' ,
53+ rename : meson .project_name() + ' .svg '
5054 )
51- endforeach
5255
53- install_data (
54- ' icons' / variant / ' scalable.svg' ,
55- install_dir : get_option (' datadir' ) / ' icons' / ' scalable' / ' apps' ,
56- rename : meson .project_name() + ' .svg'
57- )
56+ endif
57+
0 commit comments