meson.build revision a4e54154
1conf_files = [ 2 '05-reset-dirs-sample.conf', 3 '09-autohint-if-no-hinting.conf', 4 '10-autohint.conf', 5 '10-hinting-full.conf', 6 '10-hinting-medium.conf', 7 '10-hinting-none.conf', 8 '10-hinting-slight.conf', 9 '10-no-sub-pixel.conf', 10 '10-scale-bitmap-fonts.conf', 11 '10-sub-pixel-bgr.conf', 12 '10-sub-pixel-rgb.conf', 13 '10-sub-pixel-vbgr.conf', 14 '10-sub-pixel-vrgb.conf', 15 '10-unhinted.conf', 16 '11-lcdfilter-default.conf', 17 '11-lcdfilter-legacy.conf', 18 '11-lcdfilter-light.conf', 19 '20-unhint-small-vera.conf', 20 '25-unhint-nonlatin.conf', 21 '30-metric-aliases.conf', 22 '40-nonlatin.conf', 23 '45-generic.conf', 24 '45-latin.conf', 25 '48-spacing.conf', 26 '49-sansserif.conf', 27 '50-user.conf', 28 '51-local.conf', 29 '60-generic.conf', 30 '60-latin.conf', 31 '65-fonts-persian.conf', 32 '65-khmer.conf', 33 '65-nonlatin.conf', 34 '69-unifont.conf', 35 '70-no-bitmaps.conf', 36 '70-yes-bitmaps.conf', 37 '80-delicious.conf', 38 '90-synthetic.conf', 39] 40 41preferred_hinting = 'slight' 42 43conf_links = [ 44 '10-hinting-@0@.conf'.format(preferred_hinting), 45 '10-scale-bitmap-fonts.conf', 46 '11-lcdfilter-default.conf', 47 '20-unhint-small-vera.conf', 48 '30-metric-aliases.conf', 49 '40-nonlatin.conf', 50 '45-generic.conf', 51 '45-latin.conf', 52 '48-spacing.conf', 53 '49-sansserif.conf', 54 '50-user.conf', 55 '51-local.conf', 56 '60-generic.conf', 57 '60-latin.conf', 58 '65-fonts-persian.conf', 59 '65-nonlatin.conf', 60 '69-unifont.conf', 61 '80-delicious.conf', 62 '90-synthetic.conf', 63] 64 65install_data(conf_files, install_dir: join_paths(get_option('datadir'), 'fontconfig/conf.avail')) 66 67meson.add_install_script('link_confs.py', 68 join_paths(get_option('prefix'), get_option('datadir'), 'fontconfig/conf.avail'), 69 join_paths(get_option('sysconfdir'), 'fonts', 'conf.d'), 70 conf_links, 71) 72 73# 35-lang-normalize.conf 74orths = [] 75foreach o : orth_files # orth_files is from fc-lang/meson.build 76 o = o.split('.')[0] # strip filename suffix 77 if not o.contains('_') # ignore those with an underscore 78 orths += [o] 79 endif 80endforeach 81 82custom_target('35-lang-normalize.conf', 83 output: '35-lang-normalize.conf', 84 command: [find_program('write-35-lang-normalize-conf.py'), ','.join(orths), '@OUTPUT@'], 85 install_dir: join_paths(get_option('datadir'), 'fontconfig/conf.avail'), 86 install: true) 87 88# README 89readme_cdata = configuration_data() 90readme_cdata.set('TEMPLATEDIR', fc_templatedir) 91configure_file(output: 'README', 92 input: 'README.in', 93 configuration: readme_cdata, 94 install_dir: join_paths(get_option('sysconfdir'), 'fonts', 'conf.d'), 95 install: true) 96