summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorManatsawin Hanmongkolchai <[email protected]>2022-11-14 23:52:41 +0700
committerraveit65 <[email protected]>2023-04-20 18:07:49 +0200
commit94abc672375a68425d210bec872167922808391c (patch)
tree9376b2dfc478aa304e9dfae79883ff3720d4a72c /plugins
parentfaf2001f46509a7434fc10ee848ce1ce84255dcd (diff)
downloadeom-94abc672375a68425d210bec872167922808391c.tar.bz2
eom-94abc672375a68425d210bec872167922808391c.tar.xz
Add plugin build
Diffstat (limited to 'plugins')
-rw-r--r--plugins/fullscreen/meson.build27
-rw-r--r--plugins/meson.build8
-rw-r--r--plugins/reload/meson.build27
-rw-r--r--plugins/statusbar-date/meson.build27
4 files changed, 89 insertions, 0 deletions
diff --git a/plugins/fullscreen/meson.build b/plugins/fullscreen/meson.build
new file mode 100644
index 0000000..9688a12
--- /dev/null
+++ b/plugins/fullscreen/meson.build
@@ -0,0 +1,27 @@
+desktopfile = configure_file(input: 'fullscreen.plugin.desktop.in.in', configuration: pkg_info, output: 'fullscreen.plugin.desktop.in')
+if get_option('nls')
+ i18n.merge_file(
+ input: desktopfile,
+ output: 'fullscreen.plugin.desktop',
+ install: true,
+ install_dir: pluginsdir,
+ type: 'desktop',
+ po_dir: po_dir,
+ )
+else
+ install_data(desktopfile, install_dir: pluginsdir)
+endif
+
+shared_library(
+ 'fullscreen',
+ sources: [
+ 'eom-fullscreen-plugin.h',
+ 'eom-fullscreen-plugin.c',
+ ],
+ c_args: plugins_c_args,
+ dependencies: all_deps,
+ include_directories: [top_inc, src_inc],
+ link_with: [eom_links],
+ install: true,
+ install_dir: pluginsdir
+)
diff --git a/plugins/meson.build b/plugins/meson.build
new file mode 100644
index 0000000..3513e60
--- /dev/null
+++ b/plugins/meson.build
@@ -0,0 +1,8 @@
+plugins_c_args = ['-DEOM_LOCALEDIR=' + join_paths(datadir / 'locale')]
+
+subdir('fullscreen')
+subdir('reload')
+
+if exif.found()
+ subdir('statusbar-date')
+endif
diff --git a/plugins/reload/meson.build b/plugins/reload/meson.build
new file mode 100644
index 0000000..de76d56
--- /dev/null
+++ b/plugins/reload/meson.build
@@ -0,0 +1,27 @@
+desktopfile = configure_file(input: 'reload.plugin.desktop.in.in', configuration: pkg_info, output: 'reload.plugin.desktop.in')
+if get_option('nls')
+ i18n.merge_file(
+ input: desktopfile,
+ output: 'reload.plugin.desktop',
+ install: true,
+ install_dir: pluginsdir,
+ type: 'desktop',
+ po_dir: po_dir,
+ )
+else
+ install_data(desktopfile, install_dir: pluginsdir)
+endif
+
+shared_library(
+ 'reload',
+ sources: [
+ 'eom-reload-plugin.h',
+ 'eom-reload-plugin.c',
+ ],
+ c_args: plugins_c_args,
+ dependencies: all_deps,
+ include_directories: [top_inc, src_inc],
+ link_with: [eom_links],
+ install: true,
+ install_dir: pluginsdir
+)
diff --git a/plugins/statusbar-date/meson.build b/plugins/statusbar-date/meson.build
new file mode 100644
index 0000000..7ddf83c
--- /dev/null
+++ b/plugins/statusbar-date/meson.build
@@ -0,0 +1,27 @@
+desktopfile = configure_file(input: 'statusbar-date.plugin.desktop.in.in', configuration: pkg_info, output: 'statusbar-date.plugin.desktop.in')
+if get_option('nls')
+ i18n.merge_file(
+ input: desktopfile,
+ output: 'statusbar-date.plugin.desktop',
+ install: true,
+ install_dir: pluginsdir,
+ type: 'desktop',
+ po_dir: po_dir,
+ )
+else
+ install_data(desktopfile, install_dir: pluginsdir)
+endif
+
+shared_library(
+ 'statusbar-date',
+ sources: [
+ 'eom-statusbar-date-plugin.h',
+ 'eom-statusbar-date-plugin.c',
+ ],
+ c_args: plugins_c_args,
+ dependencies: all_deps,
+ include_directories: [top_inc, src_inc],
+ link_with: [eom_links],
+ install: true,
+ install_dir: pluginsdir
+)