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