summaryrefslogtreecommitdiff
path: root/plugins/Makefile.am
blob: 48cb92f64954bc0c163359a8d801cd2b919b033c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
AUTOMAKE_OPTIONS = subdir-objects

pluginsdir = $(libdir)/eom/plugins

AM_CPPFLAGS = \
	-I$(top_srcdir)/src 				\
	$(EOM_CFLAGS) 					\
	$(WARN_CFLAGS)					\
	-DEOM_LOCALEDIR=\""$(prefix)/$(DATADIRNAME)/locale"\"

AM_LDFLAGS = -avoid-version -module

plugins_LTLIBRARIES = \
	fullscreen/libfullscreen.la  \
	reload/libreload.la

plugins_in_files = \
	fullscreen/fullscreen.plugin.desktop.in  \
	reload/reload.plugin.desktop.in

# Fullscreen plugin
fullscreen_libfullscreen_la_SOURCES = \
	fullscreen/eom-fullscreen-plugin.h  \
	fullscreen/eom-fullscreen-plugin.c

fullscreen_libfullscreen_la_LIBADD = $(EOM_LIBS)

# Reload plugin
reload_libreload_la_SOURCES = \
	reload/eom-reload-plugin.h  \
	reload/eom-reload-plugin.c

reload_libreload_la_LIBADD = $(EOM_LIBS)

# Statusbar Date Plugin
if HAVE_EXIF
plugins_LTLIBRARIES += statusbar-date/libstatusbar-date.la

statusbar_date_libstatusbar_date_la_SOURCES = \
	statusbar-date/eom-statusbar-date-plugin.h  \
	statusbar-date/eom-statusbar-date-plugin.c

statusbar_date_libstatusbar_date_la_LIBADD = $(EOM_LIBS)
plugins_in_files += statusbar-date/statusbar-date.plugin.desktop.in
endif

# Generate plugin info files

plugins_in_in_files = $(plugins_in_files:.desktop.in=.desktop.in.in)
plugins_DATA = $(plugins_in_files:.plugin.desktop.in=.plugin)

%.plugin: %.plugin.desktop.in
if USE_NLS
	$(AM_V_GEN) $(MSGFMT) --desktop --keyword=Name --keyword=Description --template $< -d $(top_srcdir)/po -o $@
else
	$(AM_V_GEN) cp $< $@
endif

DISTCLEANFILES = $(plugins_in_files)
CLEANFILES = $(plugins_DATA)

EXTRA_DIST = $(plugins_in_in_files)

-include $(top_srcdir)/git.mk