source: trunk/gtk/Makefile.am @ 14235

Last change on this file since 14235 was 14235, checked in by jordan, 8 years ago

remove '-DGTK_DISABLE_DEPRECATED' for now; we'll migrate from GtkUIManager to GtkBuilder? in transmission-gtk 2.90

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