Skip to content

Commit

Permalink
Add plugin build
Browse files Browse the repository at this point in the history
  • Loading branch information
whs authored and raveit65 committed Apr 20, 2023
1 parent faf2001 commit 94abc67
Show file tree
Hide file tree
Showing 6 changed files with 92 additions and 2 deletions.
3 changes: 2 additions & 1 deletion meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ libdir = join_paths(get_option('prefix'), get_option('libdir'))
schemadir = datadir / 'glib-2.0' / 'schemas'
localedir = join_paths(get_option('prefix'), get_option('localedir'))
includedir = join_paths(get_option('prefix'), get_option('includedir'))
pluginsdir = libdir / 'eom' / 'plugins'

# Dependencies
glib_required = '2.52.0'
Expand Down Expand Up @@ -200,7 +201,7 @@ endif
subdir('cut-n-paste')
subdir('src')
subdir('man')
#subdir('plugins')
subdir('plugins')
subdir('help')
subdir('data')
subdir('doc')
Expand Down
27 changes: 27 additions & 0 deletions plugins/fullscreen/meson.build
Original file line number Diff line number Diff line change
@@ -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
)
8 changes: 8 additions & 0 deletions plugins/meson.build
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
plugins_c_args = ['-DEOM_LOCALEDIR=' + join_paths(datadir / 'locale')]

subdir('fullscreen')
subdir('reload')

if exif.found()
subdir('statusbar-date')
endif
27 changes: 27 additions & 0 deletions plugins/reload/meson.build
Original file line number Diff line number Diff line change
@@ -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
)
27 changes: 27 additions & 0 deletions plugins/statusbar-date/meson.build
Original file line number Diff line number Diff line change
@@ -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
)
2 changes: 1 addition & 1 deletion src/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ cflags = [
'-DG_LOG_DOMAIN="EOM"',
'-DEOM_DATA_DIR="' + pkgdatadir + '"',
'-DEOM_LOCALE_DIR="' + localedir + '"',
'-DEOM_PLUGIN_DIR="' + (libdir / 'eom' / 'plugins') + '"',
'-DEOM_PLUGIN_DIR="' + pluginsdir + '"',
'-DLIBDIR="' + libdir + '"',
]

Expand Down

0 comments on commit 94abc67

Please sign in to comment.