meson.build
ASCII text
1project( 2'materia-theme', 3version: '20200916', 4license: 'GPLv2+', 5meson_version: '>= 0.47.0', 6default_options: ['prefix=/usr'], 7) 8 9theme_base_name = get_option('theme_name') 10theme_base_dir = join_paths(get_option('datadir'), 'themes', theme_base_name) 11 12sassc = find_program('sassc') 13sassc_opts = ['-M', '-t', 'expanded'] 14 15themes = [] 16foreach color: get_option('colors') 17foreach size: get_option('sizes') 18if color == 'default' 19color_suffix = '' 20scss_dark_theme = 'false' 21scss_light_topbar = 'false' 22elif color == 'light' 23color_suffix = '-light' 24scss_dark_theme = 'false' 25scss_light_topbar = 'true' 26elif color == 'dark' 27color_suffix = '-dark' 28scss_dark_theme = 'true' 29scss_light_topbar = 'false' 30endif 31 32if size == 'default' 33size_suffix = '' 34scss_compact = 'false' 35elif size == 'compact' 36size_suffix = '-compact' 37scss_compact = 'true' 38endif 39 40themes += { 41'name': theme_base_name + color_suffix + size_suffix, 42'dir': theme_base_dir + color_suffix + size_suffix, 43'color': color_suffix, 44'size': size_suffix, 45'scss_dark_theme': scss_dark_theme, 46'scss_light_topbar': scss_light_topbar, 47'scss_compact': scss_compact, 48} 49endforeach 50endforeach 51 52foreach theme: themes 53install_data( 54'COPYING', 55install_dir: theme['dir'], 56) 57endforeach 58 59if not get_option('flatpak') 60subdir('src') 61else 62subdir('src/gtk') 63endif 64