| 1 |
raven_plugin_usage_monitor_dir = raven_plugin_dir + '.UsageMonitor' |
| 2 |
|
| 3 |
custom_target('raven-plugin-usage-monitor-file', |
| 4 |
input : 'UsageMonitor.plugin.in', |
| 5 |
output : 'UsageMonitor.plugin', |
| 6 |
command : [intltool, '--desktop-style', podir, '@INPUT@', '@OUTPUT@'], |
| 7 |
install : true, |
| 8 |
install_dir : raven_plugin_usage_monitor_dir) |
| 9 |
|
| 10 |
raven_plugin_usage_monitor_gresource = join_paths(meson.current_source_dir(), 'plugin.gresource.xml') |
| 11 |
|
| 12 |
# Compile the assets into the binary |
| 13 |
raven_plugin_usage_monitor_resources = gnome.compile_resources( |
| 14 |
'raven-plugin-usage-monitor-resources', |
| 15 |
raven_plugin_usage_monitor_gresource, |
| 16 |
source_dir: meson.current_source_dir(), |
| 17 |
c_name: 'budgie_raven_plugin_usage_monitor', |
| 18 |
) |
| 19 |
|
| 20 |
raven_plugin_usage_monitor_sources = [ |
| 21 |
'usage_monitor.vala', |
| 22 |
raven_plugin_usage_monitor_resources, |
| 23 |
] |
| 24 |
|
| 25 |
raven_plugin_usage_monitor_deps = [ |
| 26 |
libravenplugin_vapi, |
| 27 |
dep_gtk3, |
| 28 |
dep_peas, |
| 29 |
link_libravenplugin |
| 30 |
] |
| 31 |
|
| 32 |
shared_library( |
| 33 |
'org.buddiesofbudgie.budgie-desktop.raven.widget.UsageMonitor', |
| 34 |
raven_plugin_usage_monitor_sources, |
| 35 |
dependencies: raven_plugin_usage_monitor_deps, |
| 36 |
install: true, |
| 37 |
install_dir: raven_plugin_usage_monitor_dir, |
| 38 |
) |
| 39 |
|
| 40 |
install_data( |
| 41 |
'org.buddiesofbudgie.budgie-desktop.raven.widget.UsageMonitor.gschema.xml', |
| 42 |
install_dir: join_paths(datadir, 'glib-2.0', 'schemas'), |
| 43 |
) |