1 applicationsdir = $(datadir)/applications
2 applications_in_files = sync.desktop.in sync-gtk.desktop.in
3 applications_generated = $(applications_in_files:.desktop.in=.desktop)
4 applications_DATA = $(GUI_DESKTOP_FILES)
5 @INTLTOOL_DESKTOP_RULE@
7 # When installing both the plain GTK and the Moblin-themed version,
8 # the Moblin version uses the normal "Sync - Up to date" name/comment
9 # and the GTK version uses "Sync (GTK)" as name with the same
10 # comment. This is a somewhat arbitrary choice, with the rationale
11 # being that a Moblin user is less likely to care about the
12 # distinction while a GTK user might understand what "(GTK)" means.
13 sync-moblin.desktop: sync.desktop
16 gladedir = $(datadir)/syncevolution/
20 icondir = $(datadir)/icons/hicolor/48x48/apps
21 dist_icon_DATA = sync.png
23 themercdir = $(datadir)/syncevolution/
29 desktopdir = $(datadir)/applications
34 $(applications_in_files) \
38 $(GTK_BUILDER_CONV) $< $(@F)
40 # sync-ui: default GUI, could be plain GTK or Moblin UX
41 # sync-ui-gtk: GTK GUI
42 # sync-ui-moblin: Moblin UX
44 # The later two are built when --enable-gui=all was used.
49 bin_PROGRAMS = $(GUI_PROGRAMS)
52 main.c sync-ui.c sync-ui.h sync-ui-config.c sync-ui-config.h \
53 mux-frame.c mux-frame.h \
54 sync-config-widget.c sync-config-widget.h \
55 gtkinfobar.c gtkinfobar.h
57 sync_ui_LDADD = $(GUI_LIBS) $(DBUS_GLIB_LIBS) $(top_builddir)/src/dbus/libsyncevo-dbus.la
58 sync_ui_CFLAGS = $(GUI_CFLAGS) \
60 -DGLADEDIR=\""$(gladedir)"\" \
61 -DTHEMEDIR=\""$(themercdir)"\" \
62 -DLIBEXECDIR=\"@libexecdir@\" \
63 -DSYNCEVOLUTION_LOCALEDIR=\"${SYNCEVOLUTION_LOCALEDIR}\"
64 sync_ui_CPPFLAGS = -I$(top_builddir) -I$(top_srcdir) -I$(top_builddir)/src/dbus -I$(top_srcdir)/src/dbus $(SYNTHESIS_CFLAGS)
66 sync_ui_gtk_SOURCES = $(sync_ui_SOURCES)
67 nodist_sync_ui_gtk_SOURCES = $(nodist_sync_ui_SOURCES)
68 sync_ui_gtk_LDADD = $(sync_ui_LDADD)
69 sync_ui_gtk_CFLAGS = $(sync_ui_CFLAGS)
70 sync_ui_gtk_CPPFLAGS = $(sync_ui_CPPFLAGS)
72 sync_ui_moblin_SOURCES = $(sync_ui_SOURCES)
73 nodist_sync_ui_moblin_SOURCES = $(nodist_sync_ui_SOURCES)
74 sync_ui_moblin_LDADD = $(sync_ui_LDADD)
75 sync_ui_moblin_CFLAGS = $(sync_ui_CFLAGS)
76 sync_ui_moblin_CPPFLAGS = $(sync_ui_CPPFLAGS) -DUSE_MOBLIN_UX
78 CLEANFILES = $(BUILT_SOURCES) \
81 $(applications_generated)