Commit 403a57b5 authored by Erik Reider's avatar Erik Reider

Improved SCSS compilation reliability

parent 127cfbff
...@@ -23,44 +23,27 @@ if get_option('buildtype') != 'release' ...@@ -23,44 +23,27 @@ if get_option('buildtype') != 'release'
dev_env.set('GSETTINGS_SCHEMA_DIR', meson.current_source_dir()) dev_env.set('GSETTINGS_SCHEMA_DIR', meson.current_source_dir())
endif endif
# SCSS Dependency style_files = []
sassc = find_program('sassc') subdir('style')
assert(sassc.found())
# SCSS Compilation blueprints = custom_target(
style_css = custom_target( 'blueprints',
'SCSS Compilation',
build_by_default: true,
build_always_stale: true,
input : 'style/style.scss',
output : 'style.css',
install: true,
install_dir: config_path,
command : [
sassc,
'-t',
'expanded',
'@INPUT@',
'@OUTPUT@'
],
)
message(style_css.full_path())
blueprints = custom_target('blueprints',
input: files(run_command('find', '.', '-name', '*.blp').stdout().strip().split('\n')), input: files(run_command('find', '.', '-name', '*.blp').stdout().strip().split('\n')),
output: '.', output: '.',
command: [ command: [
find_program('blueprint-compiler', required: true), find_program('blueprint-compiler', required: true),
'batch-compile', 'batch-compile',
'@OUTPUT@', '@CURRENT_SOURCE_DIR@', '@INPUT@' '@OUTPUT@',
'@CURRENT_SOURCE_DIR@',
'@INPUT@',
], ],
build_always_stale: true, build_always_stale: true,
build_by_default: true, build_by_default: true,
) )
app_resources += gnome.compile_resources('sway_notification_center-resources', app_resources += gnome.compile_resources(
'sway_notification_center-resources',
'sway_notification_center.gresource.xml', 'sway_notification_center.gresource.xml',
dependencies: [ blueprints ], dependencies: [style_files, blueprints],
c_name: 'sway_notification_center' c_name: 'sway_notification_center',
) )
# SCSS
sassc = find_program('sassc')
assert(sassc.found())
# SCSS Compilation
style_files += custom_target(
'SCSS Compilation',
input: 'style.scss',
output: 'style.css',
depend_files: files(run_command('find', '.', '-name', '*.scss').stdout().strip().split('\n')),
install: true,
install_dir: config_path,
command: [
sassc,
'-t', 'expanded',
'@INPUT@',
'@OUTPUT@',
],
)
...@@ -40,7 +40,7 @@ ...@@ -40,7 +40,7 @@
$margin: 8px; $margin: 8px;
notificationwindow, blankwindow, blankwindow { notificationwindow, blankwindow {
background: transparent; background: transparent;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment