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 15sh = find_program('sh') 16 17themes = [] 18foreach color: get_option('colors') 19foreach size: get_option('sizes') 20color_suffix = color == 'default' ? '' : '-@0@'.format(color) 21size_suffix = size == 'default' ? '' : '-@0@'.format(size) 22 23scss_dark_theme = color == 'dark' ? 'true' : 'false' 24scss_light_topbar = color == 'light' ? 'true' : 'false' 25scss_compact = size == 'compact' ? 'true' : 'false' 26 27themes += { 28'name': theme_base_name + color_suffix + size_suffix, 29'dir': theme_base_dir + color_suffix + size_suffix, 30'color': color_suffix, 31'size': size_suffix, 32'scss_dark_theme': scss_dark_theme, 33'scss_light_topbar': scss_light_topbar, 34'scss_compact': scss_compact, 35} 36endforeach 37endforeach 38 39foreach theme: themes 40install_data( 41'COPYING', 42install_dir: theme['dir'], 43) 44endforeach 45 46if not get_option('flatpak') 47subdir('src') 48else 49subdir('src/gtk-3.0') 50subdir('src/gtk-4.0') 51endif 52