summaryrefslogtreecommitdiff
path: root/res/styles/meson.build
diff options
context:
space:
mode:
authorHannes Schulze <haschu0103@outlook.de>2024-05-06 13:42:55 +0200
committerHannes Schulze <haschu0103@outlook.de>2024-05-06 14:33:54 +0200
commit37d5ef75306c45ca95550f4af40d9750c5b9cb88 (patch)
tree7125c8e8445eeecb86097bc99bb2d1febfb7e2a5 /res/styles/meson.build
initial commit
yup, i definitely wrote all of this in a single commit
Diffstat (limited to 'res/styles/meson.build')
-rw-r--r--res/styles/meson.build32
1 files changed, 32 insertions, 0 deletions
diff --git a/res/styles/meson.build b/res/styles/meson.build
new file mode 100644
index 0000000..fbc904c
--- /dev/null
+++ b/res/styles/meson.build
@@ -0,0 +1,32 @@
+sassc = find_program('sassc')
+
+styles = ['default', 'monokai-pro', 'teatime']
+style_targets = []
+
+common_inputs = files(
+ 'partials/_base.scss',
+ 'partials/_notification.scss',
+ 'partials/_panel.scss',
+ 'partials/_launcher.scss',
+ 'partials/_control-center.scss',
+ '_common.scss',
+)
+
+foreach style : styles
+ style_targets += custom_target(
+ style + '.scss',
+ input: [style + '.scss'] + common_inputs,
+ output: style + '.css',
+ command: [sassc, '-a', '-M', '-t', 'compact', '@INPUT0@', '@OUTPUT@'],
+ )
+endforeach
+
+styles_resource = gnome.compile_resources(
+ 'styles-resource',
+ 'styles.gresource.xml',
+ source_dir: [
+ meson.current_build_dir(),
+ meson.current_source_dir(),
+ ],
+ dependencies: style_targets,
+)