summaryrefslogtreecommitdiff
path: root/src/gtk3-ui/gtk-ui.am
blob: 523d5f822978757d14b076c0406c198bcbb46ddd (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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
EXTRA_DIST += src/gtk3-ui/ui.xml

if COND_GUI
if !COND_GTK2

dist_noinst_DATA += \
  src/gtk3-ui/README

src_gtk3_ui_applicationsdir = $(datadir)/applications
src_gtk3_ui_applications_in_files = \
  src/gtk3-ui/sync.desktop.in \
  src/gtk3-ui/sync-gtk.desktop.in
src_gtk3_ui_applications_generated = $(src_gtk3_ui_applications_in_files:.desktop.in=.desktop)
src_gtk3_ui_applications_DATA = @GUI_DESKTOP_FILES@

# if this will pose a problem then see the link below, probably the solution
# here will need to be used.
# http://mail.gnome.org/archives/commits-list/2010-October/msg05148.html
@INTLTOOL_DESKTOP_RULE@

# When installing both the plain GTK and the Moblin-themed version,
# the Moblin version uses the normal "Sync - Up to date" name/comment
# and the GTK version uses "Sync (GTK)" as name with the same
# comment. This is a somewhat arbitrary choice, with the rationale
# being that a Moblin user is less likely to care about the
# distinction while a GTK user might understand what "(GTK)" means.
src/gtk3-ui/sync-moblin.desktop: src/gtk3-ui/sync.desktop
	$(AM_V_GEN)cp $< $@

src_gtk3_ui_gladedir = $(datadir)/syncevolution/
src_gtk3_ui_glade_DATA = src/gtk3-ui/ui.xml

src_gtk3_ui_icondir = $(datadir)/icons/hicolor/48x48/apps
dist_src_gtk3_ui_icon_DATA = src/gtk3-ui/sync.png

src_gtk3_ui_themercfiles = \
  src/gtk3-ui/sync-generic.png \
  src/gtk3-ui/sync-spinner.gif \
  src/gtk3-ui/sync-ui.css

src_gtk3_ui_themercdir = $(datadir)/syncevolution/
dist_src_gtk3_ui_themerc_DATA = $(src_gtk3_ui_themercfiles)

src_gtk3_ui_desktopdir = $(datadir)/applications

dist_noinst_DATA += \
  $(src_gtk3_ui_applications_in_files)

# sync-ui: default GUI, could be plain GTK or Moblin UX
# sync-ui-gtk: GTK GUI
# sync-ui-moblin: Moblin UX
#
# The later two are built when --enable-gui=all was used.
EXTRA_PROGRAMS += \
  src/gtk3-ui/sync-ui \
  src/gtk3-ui/sync-ui-gtk \
  src/gtk3-ui/sync-ui-moblin
bin_PROGRAMS += @GUI_PROGRAMS@

src_gtk3_ui_sync_ui_SOURCES = \
  src/gtk3-ui/main.c \
  src/gtk3-ui/sync-ui.c \
  src/gtk3-ui/sync-ui.h \
  src/gtk3-ui/sync-ui-config.c \
  src/gtk3-ui/sync-ui-config.h \
  src/gtk3-ui/mux-frame.c \
  src/gtk3-ui/mux-frame.h \
  src/gtk3-ui/sync-config-widget.c \
  src/gtk3-ui/sync-config-widget.h

src_gtk3_ui_sync_ui_LDADD = \
  $(GUI_LIBS) \
  $(DBUS_GLIB_LIBS) \
  $(top_builddir)/src/dbus/glib/libsyncevo-dbus.la
src_gtk3_ui_sync_ui_CFLAGS = \
  $(GUI_CFLAGS) \
  $(DBUS_GLIB_CFLAGS) \
  -DGLADEDIR=\""$(src_gtk3_ui_gladedir)"\" \
  -DTHEMEDIR=\""$(src_gtk3_ui_themercdir)"\" \
  -DLIBEXECDIR=\"@libexecdir@\" \
  -DSYNCEVOLUTION_LOCALEDIR=\"${SYNCEVOLUTION_LOCALEDIR}\" \
  $(SYNCEVO_WFLAGS)
src_gtk3_ui_sync_ui_CPPFLAGS = \
  -I$(top_builddir) \
  -I$(top_srcdir) \
  -I$(top_builddir)/src/dbus/glib \
  -I$(top_srcdir)/src/dbus/glib \
  $(SYNTHESIS_CFLAGS)

src_gtk3_ui_sync_ui_gtk_SOURCES = $(src_gtk3_ui_sync_ui_SOURCES)
src_gtk3_ui_sync_ui_gtk_LDADD = $(src_gtk3_ui_sync_ui_LDADD)
src_gtk3_ui_sync_ui_gtk_CFLAGS = $(src_gtk3_ui_sync_ui_CFLAGS)
src_gtk3_ui_sync_ui_gtk_CPPFLAGS = $(src_gtk3_ui_sync_ui_CPPFLAGS)

src_gtk3_ui_sync_ui_moblin_SOURCES = $(src_gtk3_ui_sync_ui_SOURCES)
src_gtk3_ui_sync_ui_moblin_LDADD = $(src_gtk3_ui_sync_ui_LDADD)
src_gtk3_ui_sync_ui_moblin_CFLAGS = $(src_gtk3_ui_sync_ui_CFLAGS)
src_gtk3_ui_sync_ui_moblin_CPPFLAGS = $(src_gtk3_ui_sync_ui_CPPFLAGS) -DUSE_MOBLIN_UX

CLEANFILES += \
  src/gtk3-ui/sync-moblin.desktop \
  $(src_gtk3_ui_applications_generated)

endif !COND_GTK2
endif COND_GUI