source: trunk/gtk/Makefile.am @ 8174

Last change on this file since 8174 was 8174, checked in by charles, 13 years ago

(trunk gtk) use the RPC API for updating the blocklist and for testing the port.

File size: 3.4 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
10sexy-marshal.h: marshal.list
11        glib-genmarshal --prefix=sexy_marshal ./marshal.list --header > sexy-marshal.h
12
13sexy-marshal.c: marshal.list
14        echo '#include "sexy-marshal.h"' > sexy-marshal.c
15        glib-genmarshal --prefix=sexy_marshal ./marshal.list --body >> sexy-marshal.c
16
17AM_CPPFLAGS = \
18    -I$(top_srcdir) \
19    -I$(top_srcdir)/third-party/ \
20    $(LIBEVENT_CPPFLAGS) \
21    -DTRANSMISSIONLOCALEDIR=\""$(transmissionlocaledir)"\" \
22    $(GTK_EXTRA_CPPFLAGS)
23
24AM_CFLAGS = \
25    $(GTK_CFLAGS) \
26    $(LIBCURL_CFLAGS) \
27    $(GIO_CFLAGS) \
28    $(DBUS_GLIB_CFLAGS) \
29    $(LIBNOTIFY_CFLAGS) \
30    $(OPENSSL_CFLAGS) \
31    $(ZLIB_CFLAGS) \
32    $(PTHREAD_CFLAGS)
33
34AM_LDFLAGS = \
35    $(ZLIB_LDFLAGS)
36
37noinst_HEADERS = \
38    actions.h \
39    add-dialog.h \
40    conf.h \
41    details.h \
42    dialogs.h \
43    hig.h \
44    icons.h \
45    file-list.h \
46    lock.h \
47    logo.h \
48    makemeta-ui.h \
49    msgwin.h \
50    notify.h \
51    stats.h \
52    sexy-icon-entry.h \
53    sexy-marshal.h \
54    torrent-cell-renderer.h \
55    tracker-list.h \
56    tr-core.h \
57    tr-core-dbus.h \
58    tr-icon.h \
59    tr-prefs.h \
60    tr-torrent.h \
61    tr-window.h \
62    turtles.h \
63    ui.h \
64    util.h
65
66bin_PROGRAMS = transmission
67
68dbus_generated_sources = tr-core-dbus.h
69
70transmission_SOURCES = \
71    actions.c \
72    add-dialog.c \
73    conf.c \
74    details.c \
75    dialogs.c \
76    file-list.c \
77    hig.c \
78    icons.c \
79    main.c \
80    makemeta-ui.c \
81    msgwin.c \
82    notify.c \
83    sexy-icon-entry.c \
84    sexy-marshal.c \
85    stats.c \
86    torrent-cell-renderer.c \
87    tracker-list.c \
88    tr-core.c \
89    tr-icon.c \
90    tr-prefs.c \
91    tr-torrent.c \
92    tr-window.c \
93    util.c \
94    $(dbus_generated_sources)
95
96dist_man_MANS = transmission.1
97
98transmission_LDADD = \
99    $(top_builddir)/libtransmission/libtransmission.a \
100    $(top_builddir)/third-party/libevent/libevent.la \
101    $(top_builddir)/third-party/miniupnp/libminiupnp.a \
102    $(top_builddir)/third-party/libnatpmp/libnatpmp.a \
103    $(GTK_LIBS) \
104    $(GIO_LIBS) \
105    $(LIBNOTIFY_LIBS) \
106    $(DBUS_GLIB_LIBS) \
107    $(OPENSSL_LIBS) \
108    $(LIBCURL_LIBS) \
109    $(ZLIB_LIBS) \
110    $(PTHREAD_LIBS) -lm
111
112DESKTOP_IN_FILES=transmission.desktop.in
113DESKTOP_FILES=$(DESKTOP_IN_FILES:.desktop.in=.desktop)
114@INTLTOOL_DESKTOP_RULE@
115
116Productivitydir = $(datadir)/applications
117Productivity_DATA = $(DESKTOP_FILES)
118
119icon_DATA = transmission.png
120icondir = $(datadir)/pixmaps
121
122EXTRA_DIST = \
123    $(DESKTOP_IN_FILES) \
124    marshal.list \
125    tr-core-dbus.xml \
126    transmission.png
127
128DISTCLEANFILES = \
129    transmission.desktop
130
131CLEANFILES = $(dbus_generated_sources)
132
133$(srcdir)/tr-core.c: tr-core-dbus.h
134
135tr-core-dbus.h: $(srcdir)/tr-core-dbus.xml
136        $(DBUS_BINDING_TOOL) --mode=glib-server --prefix=tr_core $< > $(@F)
137
138if WIN32
139
140transmission.res: transmission.rc
141        $(WINDRES) -J rc -i transmission.rc -O coff -o transmission.res
142
143BUILT_SOURCES = \
144        sexy-marshal.h \
145        sexy-marshal.c \
146        setransmission.res
147
148CLEANFILES += \
149        transmission.res
150
151transmission_LDADD += \
152        transmission.res
153
154transmission_LDFLAGS = \
155        -mwindows
156
157else
158
159BUILT_SOURCES = \
160        sexy-marshal.h \
161        sexy-marshal.c
162
163endif
Note: See TracBrowser for help on using the repository browser.