source: trunk/gtk/Makefile.am @ 6998

Last change on this file since 6998 was 6998, checked in by charles, 14 years ago

(gtk) don't use code marked as deprecated in gtk 2.14

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