1project( 2 'arc-theme', 3 version : '20211018', 4 meson_version: '>= 0.50.0', 5 license : 'GPL3' 6) 7 8variant_name = { 9 'light' : (get_option('transparency') ? 'Arc' : 'Arc-solid'), 10 'darker' : (get_option('transparency') ? 'Arc-Darker' : 'Arc-Darker-solid'), 11 'dark' : (get_option('transparency') ? 'Arc-Dark' : 'Arc-Dark-solid'), 12 'lighter' : (get_option('transparency') ? 'Arc-Lighter' : 'Arc-Lighter-solid'), 13} 14 15prefix = get_option('prefix') 16datadir = get_option('datadir') 17 18install_dir = { 19 'light' : datadir / 'themes' / variant_name.get('light'), 20 'darker' : datadir / 'themes' / variant_name.get('darker'), 21 'dark' : datadir / 'themes' / variant_name.get('dark'), 22 'lighter' : datadir / 'themes' / variant_name.get('lighter'), 23} 24 25# sassc dependency 26foreach theme : ['cinnamon', 'gnome-shell', 'gtk3', 'gtk4'] 27 if theme in get_option('themes') 28 sassc = find_program('sassc') 29 break 30 endif 31endforeach 32 33# inkscape dependency 34foreach theme : ['gtk2', 'gtk3', 'gtk4', 'xfwm'] 35 if theme in get_option('themes') 36 inkscape = find_program('inkscape') 37 inkscape_ver = run_command(inkscape, '--version').stdout().split()[1] 38 break 39 endif 40endforeach 41 42subdir('common') 43