source: trunk/gtk/Makefile.am @ 12201

Last change on this file since 12201 was 12201, checked in by jordan, 11 years ago

(trunk gtk) dbus tweaks in Makefile.am based on examples from http://live.gnome.org/DBusGlibBindings .

  1. tweak the way dbus-binding-tool is invoked... use --output=$@ $
  1. add the file generated by dbus-binding-tool to BUILT_SOURCES
File size: 3.2 KB
Line 
1SUBDIRS = icons
2
3if TR_UNSTABLE
4GTK_EXTRA_CPPFLAGS=-DG_DISABLE_DEPRECATED -DGDK_PIXBUF_DISABLE_DEPRECATED -DGDK_DISABLE_DEPRECATED -DGTK_DISABLE_DEPRECATED -DPANGO_DISABLE_DEPRECATED
5endif
6
7# these should go in GTK_EXTRA_CPPFLAGS at some point, but not yet because it breaks libnotify's headers
8# -DG_DISABLE_SINGLE_INCLUDES -DGTK_DISABLE_SINGLE_INCLUDES
9
10AM_CPPFLAGS = \
11    -I$(top_srcdir) \
12    -DTRANSMISSIONLOCALEDIR=\""$(transmissionlocaledir)"\" \
13    $(GTK_EXTRA_CPPFLAGS)
14
15AM_CFLAGS = \
16    @LIBAPPINDICATOR_CFLAGS@ \
17    @LIBEVENT_CFLAGS@ \
18    @LIBCANBERRA_CFLAGS@ \
19    @GCONF2_CFLAGS@ \
20    @GTK_CFLAGS@ \
21    @LIBCURL_CFLAGS@ \
22    @GIO_CFLAGS@ \
23    @LIBNOTIFY_CFLAGS@ \
24    @DBUS_GLIB_CFLAGS@ \
25    @OPENSSL_CFLAGS@ \
26    @ZLIB_CFLAGS@ \
27    @PTHREAD_CFLAGS@
28
29AM_LDFLAGS = \
30    @ZLIB_LDFLAGS@
31
32noinst_HEADERS = \
33    actions.h \
34    conf.h \
35    details.h \
36    dialogs.h \
37    favicon.h \
38    file-list.h \
39    filter.h \
40    hig.h \
41    icons.h \
42    icon-lock.h \
43    icon-logo-24.h \
44    icon-logo-48.h \
45    icon-ratio.h \
46    icon-turtle.h \
47    icon-utilities.h \
48    makemeta-ui.h \
49    msgwin.h \
50    notify.h \
51    open-dialog.h \
52    relocate.h \
53    stats.h \
54    torrent-cell-renderer.h \
55    tr-core.h \
56    tr-core-dbus.h \
57    tr-icon.h \
58    tr-prefs.h \
59    tr-window.h \
60    ui.h \
61    util.h
62
63bin_PROGRAMS = transmission-gtk
64
65dbus_generated_sources = tr-core-dbus.h
66BUILT_SOURCES = $(dbus_generated_sources)
67CLEANFILES = $(dbus_generated_sources)
68
69transmission_gtk_SOURCES = \
70    actions.c \
71    conf.c \
72    details.c \
73    dialogs.c \
74    favicon.c \
75    file-list.c \
76    filter.c \
77    hig.c \
78    icons.c \
79    main.c \
80    makemeta-ui.c \
81    msgwin.c \
82    notify.c \
83    open-dialog.c \
84    relocate.c \
85    stats.c \
86    torrent-cell-renderer.c \
87    tr-core.c \
88    tr-icon.c \
89    tr-prefs.c \
90    tr-window.c \
91    util.c \
92    $(dbus_generated_sources)
93
94dist_man_MANS = transmission-gtk.1
95
96transmission_gtk_LDADD = \
97    $(top_builddir)/libtransmission/libtransmission.a \
98    $(top_builddir)/third-party/miniupnp/libminiupnp.a \
99    $(top_builddir)/third-party/libnatpmp/libnatpmp.a \
100    @LIBCANBERRA_LIBS@ \
101    @GCONF2_LIBS@ \
102    @DHT_LIBS@ \
103    @LIBUTP_LIBS@ \
104    @GTK_LIBS@ \
105    @GIO_LIBS@ \
106    @LIBAPPINDICATOR_LIBS@ \
107    @LIBNOTIFY_LIBS@ \
108    @LIBEVENT_LIBS@ \
109    @DBUS_GLIB_LIBS@ \
110    @LIBCURL_LIBS@ \
111    @OPENSSL_LIBS@ \
112    @ZLIB_LIBS@ \
113    @PTHREAD_LIBS@
114
115DESKTOP_IN_FILES=transmission-gtk.desktop.in
116DESKTOP_FILES=$(DESKTOP_IN_FILES:.desktop.in=.desktop)
117@INTLTOOL_DESKTOP_RULE@
118
119Productivitydir = $(datadir)/applications
120Productivity_DATA = $(DESKTOP_FILES)
121
122icon_DATA = transmission.png
123icondir = $(datadir)/pixmaps
124
125EXTRA_DIST = \
126    $(DESKTOP_IN_FILES) \
127    marshal.list \
128    tr-core-dbus.xml \
129    transmission.png
130
131DISTCLEANFILES = \
132    transmission-gtk.desktop
133
134$(srcdir)/tr-core.c: tr-core-dbus.h
135
136tr-core-dbus.h: $(srcdir)/tr-core-dbus.xml
137        $(DBUS_BINDING_TOOL) --mode=glib-server --output=$@ --prefix=gtr_core $^
138
139
140if WIN32
141
142transmission.res: transmission.rc
143        $(WINDRES) -J rc -i transmission.rc -O coff -o transmission.res
144
145BUILT_SOURCES = \
146        setransmission.res
147
148CLEANFILES += \
149        transmission.res
150
151transmission_gtk_LDADD += \
152        transmission.res
153
154transmission_gtk_LDFLAGS = \
155        -mwindows
156
157endif
Note: See TracBrowser for help on using the repository browser.