Skip to content

Commit

Permalink
Move sass compilation to its own custom target so it shows up in the …
Browse files Browse the repository at this point in the history
…build log. Support both pysassc and sassc. (#12588)
  • Loading branch information
SparkyBluefang authored Jan 16, 2025
1 parent 52d6af3 commit 5ea1203
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 8 deletions.
3 changes: 1 addition & 2 deletions data/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,7 @@ install_subdir(
'theme',
exclude_files: [
'theme-changelog.txt',
'meson.build',
'parse-sass.sh'
'meson.build'
],
exclude_directories: ['cinnamon-sass'],
install_dir: pkgdatadir,
Expand Down
11 changes: 11 additions & 0 deletions data/theme/cinnamon-sass/meson.build
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
sassc = find_program('pysassc', 'sassc')

custom_target(
'cinnamon_css',
input: 'cinnamon.scss',
output: 'cinnamon.css',
command: [sassc, '@INPUT@', '@OUTPUT@'],
build_always_stale: true,
install: true,
install_dir: join_paths(pkgdatadir, 'theme')
)
4 changes: 1 addition & 3 deletions data/theme/meson.build
Original file line number Diff line number Diff line change
@@ -1,3 +1 @@
sassc = find_program('pysassc')

run_command('parse-sass.sh', check: true)
subdir('cinnamon-sass')
3 changes: 0 additions & 3 deletions data/theme/parse-sass.sh

This file was deleted.

0 comments on commit 5ea1203

Please sign in to comment.