terminology/data/colorschemes/meson.build

47 lines
1.1 KiB
Meson
Raw Permalink Normal View History

2020-09-13 14:39:34 -07:00
colorschemes_desc = [
2020-11-24 13:52:34 -08:00
'Belafonte Day.ini',
'Belafonte Night.ini',
2021-01-30 02:37:57 -08:00
'Black.ini',
2020-11-26 13:50:09 -08:00
'Cobalt2.ini',
2020-11-22 14:19:17 -08:00
'Dracula.ini',
2020-11-24 14:42:46 -08:00
'Fahrenheit.ini',
2020-11-24 14:22:21 -08:00
'Material.ini',
2020-10-07 14:48:04 -07:00
'Mild.ini',
'Mustang.ini',
'Nord.ini',
'Ocean Dark.ini',
2020-11-25 14:32:23 -08:00
'One Dark.ini',
2020-11-25 14:09:44 -08:00
'PaleNight.ini',
2020-10-07 14:48:04 -07:00
'PaperColor.ini',
'Smyck.ini',
2020-11-25 14:27:00 -08:00
'Soft Era.ini',
2020-10-07 14:48:04 -07:00
'Solarized.ini',
'Solarized Light.ini',
'Tango Dark.ini',
'Tango Light.ini',
2020-11-25 14:05:48 -08:00
'Tomorrow Night Burns.ini',
2020-09-13 14:39:34 -07:00
]
colorschemes_out = []
foreach c : colorschemes_desc
colorschemes_out += c.replace('ini','eet')
endforeach
2020-09-13 14:39:34 -07:00
cs_builder = [join_paths(meson.source_root(),
'data', 'colorschemes', 'builder.sh'),
eet_bin, '@INPUT@']
2020-09-13 14:39:34 -07:00
cs_install_dir = join_paths(get_option('datadir'),
meson.project_name(),
'colorschemes')
2020-09-13 14:39:34 -07:00
custom_target('colorschemes',
2020-09-13 14:39:34 -07:00
install:true,
install_dir: cs_install_dir,
install_mode: 'rw-r--r--',
depend_files: ['builder.sh', 'ini2desc.py', 'get_name.py', 'add_color_scheme.sh'],
2020-09-13 14:39:34 -07:00
command: cs_builder,
input: colorschemes_desc,
output: colorschemes_out)