Skip to content

Commit

Permalink
build: Generate easier-to-debug CSS from SASS for debug builds
Browse files Browse the repository at this point in the history
  • Loading branch information
jnsh committed Jan 22, 2022
1 parent 7677aee commit ef6c380
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,10 @@ project(
'arc-theme',
version : '20220105',
meson_version: '>= 0.53.0',
license : 'GPL3'
license : 'GPL3',
default_options : [
'debug=false'
]
)

fs = import('fs')
Expand All @@ -28,7 +31,11 @@ install_dir = {
foreach theme : ['cinnamon', 'gnome-shell', 'gtk3', 'gtk4']
if theme in get_option('themes')
sassc = find_program('sassc')
sassc_options = ['--style', 'compact']
if get_option('debug')
sassc_options = ['--line-numbers', '--style', 'nested']
else
sassc_options = ['--style', 'compact']
endif
break
endif
endforeach
Expand Down

0 comments on commit ef6c380

Please sign in to comment.