source: trunk/gtk/Makefile.am @ 7996

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

(gtk trunk) #628: Show thumbnails next to torrents

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    blocklist.h \
41    conf.h \
42    details.h \
43    dialogs.h \
44    hig.h \
45    icons.h \
46    file-list.h \
47    lock.h \
48    logo.h \
49    makemeta-ui.h \
50    msgwin.h \
51    notify.h \
52    stats.h \
53    sexy-icon-entry.h \
54    sexy-marshal.h \
55    torrent-cell-renderer.h \
56    tracker-list.h \
57    tr-core.h \
58    tr-core-dbus.h \
59    tr-icon.h \
60    tr-prefs.h \
61    tr-torrent.h \
62    tr-window.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    blocklist.c \
74    conf.c \
75    details.c \
76    dialogs.c \
77    file-list.c \
78    hig.c \
79    icons.c \
80    main.c \
81    makemeta-ui.c \
82    msgwin.c \
83    notify.c \
84    sexy-icon-entry.c \
85    sexy-marshal.c \
86    stats.c \
87    torrent-cell-renderer.c \
88    tracker-list.c \
89    tr-core.c \
90    tr-icon.c \
91    tr-prefs.c \
92    tr-torrent.c \
93    tr-window.c \
94    util.c \
95    $(dbus_generated_sources)
96
97dist_man_MANS = transmission.1
98
99transmission_LDADD = \
100    $(top_builddir)/libtransmission/libtransmission.a \
101    $(top_builddir)/third-party/libevent/libevent.la \
102    $(top_builddir)/third-party/miniupnp/libminiupnp.a \
103    $(top_builddir)/third-party/libnatpmp/libnatpmp.a \
104    $(GTK_LIBS) \
105    $(GIO_LIBS) \
106    $(LIBNOTIFY_LIBS) \
107    $(DBUS_GLIB_LIBS) \
108    $(OPENSSL_LIBS) \
109    $(LIBCURL_LIBS) \
110    $(ZLIB_LIBS) \
111    $(PTHREAD_LIBS) -lm
112
113DESKTOP_IN_FILES=transmission.desktop.in
114DESKTOP_FILES=$(DESKTOP_IN_FILES:.desktop.in=.desktop)
115@INTLTOOL_DESKTOP_RULE@
116
117Productivitydir = $(datadir)/applications
118Productivity_DATA = $(DESKTOP_FILES)
119
120icon_DATA = transmission.png
121icondir = $(datadir)/pixmaps
122
123EXTRA_DIST = \
124    $(DESKTOP_IN_FILES) \
125    marshal.list \
126    tr-core-dbus.xml \
127    transmission.png
128
129DISTCLEANFILES = \
130    transmission.desktop
131
132CLEANFILES = $(dbus_generated_sources)
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 --prefix=tr_core $< > $(@F)
138
139if WIN32
140
141transmission.res: transmission.rc
142        $(WINDRES) -J rc -i transmission.rc -O coff -o transmission.res
143
144BUILT_SOURCES = \
145        sexy-marshal.h \
146        sexy-marshal.c \
147        setransmission.res
148
149CLEANFILES += \
150        transmission.res
151
152transmission_LDADD += \
153        transmission.res
154
155transmission_LDFLAGS = \
156        -mwindows
157
158else
159
160BUILT_SOURCES = \
161        sexy-marshal.h \
162        sexy-marshal.c
163
164endif
Note: See TracBrowser for help on using the repository browser.