diff options
author | Aylur <[email protected]> | 2024-09-22 00:16:56 +0000 |
---|---|---|
committer | Aylur <[email protected]> | 2024-09-22 00:16:56 +0000 |
commit | bcd912764fb6a709284aaa07399403d045a50ef2 (patch) | |
tree | 0a313dc788e3f390aab1d810f5f59911623431ea /examples/vala/simple-bar/meson.build | |
parent | 5ae0a9ed1cba13242d12ffe2ad4848eac7dd8915 (diff) |
examples: add vala bar
Diffstat (limited to 'examples/vala/simple-bar/meson.build')
-rw-r--r-- | examples/vala/simple-bar/meson.build | 38 |
1 files changed, 33 insertions, 5 deletions
diff --git a/examples/vala/simple-bar/meson.build b/examples/vala/simple-bar/meson.build index 960ce0d..d0ef209 100644 --- a/examples/vala/simple-bar/meson.build +++ b/examples/vala/simple-bar/meson.build @@ -1,23 +1,51 @@ project('simple-bar', 'vala', 'c') -sources = files( - 'widget/Bar.vala', - 'app.vala', -) +bindir = get_option('prefix') / get_option('bindir') +libdir = get_option('prefix') / get_option('libdir') pkgconfig_deps = [ dependency('glib-2.0'), dependency('gobject-2.0'), dependency('gtk+-3.0'), + dependency('libnm'), dependency('astal-0.1'), dependency('astal-battery-0.1'), + dependency('astal-wireplumber-0.1'), + dependency('astal-network-0.1'), + dependency('astal-tray-0.1'), + dependency('astal-mpris-0.1'), + dependency('astal-hyprland-0.1'), ] # needed for GLib.Math deps = pkgconfig_deps + meson.get_compiler('c').find_library('m') +custom_target( + 'style.css', + command: [ + find_program('sass'), + meson.project_source_root() / 'style.scss', + '@OUTPUT@', + ], + output: 'style.css', + install: true, + install_dir: libdir, +) + +main = configure_file( + input: 'app.in.vala', + output: 'app.vala', + configuration: {'STYLE': libdir / 'style.css'}, +) + +sources = files( + 'widget/Bar.vala', +) + executable( 'simple-bar', - sources, + [sources, main], dependencies: deps, + install: true, + install_dir: bindir, ) |