source: trunk/gtk/Makefile.am @ 14323

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

use pkg-config to get the zlib cflags/libs; remove obsolete zlib.m4 macro

File size: 3.3 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
28noinst_HEADERS = \
29    actions.h \
30    conf.h \
31    details.h \
32    dialogs.h \
33    favicon.h \
34    file-list.h \
35    filter.h \
36    hig.h \
37    icons.h \
38    icon-lock.h \
39    icon-logo-24.h \
40    icon-logo-48.h \
41    icon-ratio.h \
42    icon-turtle.h \
43    icon-utilities.h \
44    makemeta-ui.h \
45    msgwin.h \
46    notify.h \
47    open-dialog.h \
48    relocate.h \
49    stats.h \
50    torrent-cell-renderer.h \
51    transmission-resources.h \
52    tr-core.h \
53    tr-icon.h \
54    tr-prefs.h \
55    tr-window.h \
56    util.h
57
58bin_PROGRAMS = transmission-gtk
59
60transmission_gtk_SOURCES = \
61    actions.c \
62    conf.c \
63    details.c \
64    dialogs.c \
65    favicon.c \
66    file-list.c \
67    filter.c \
68    hig.c \
69    icons.c \
70    main.c \
71    makemeta-ui.c \
72    msgwin.c \
73    notify.c \
74    open-dialog.c \
75    relocate.c \
76    stats.c \
77    torrent-cell-renderer.c \
78    transmission-resources.c \
79    tr-core.c \
80    tr-icon.c \
81    tr-prefs.c \
82    tr-window.c \
83    util.c
84
85dist_man_MANS = transmission-gtk.1
86
87transmission_gtk_LDADD = \
88    $(top_builddir)/libtransmission/libtransmission.a \
89    @LIBUPNP_LIBS@ \
90    @LIBNATPMP_LIBS@ \
91    @DHT_LIBS@ \
92    @LIBUTP_LIBS@ \
93    @GTK_LIBS@ \
94    @LIBAPPINDICATOR_LIBS@ \
95    @LIBEVENT_LIBS@ \
96    @LIBCURL_LIBS@ \
97    @OPENSSL_LIBS@ \
98    @ZLIB_LIBS@ \
99    @PTHREAD_LIBS@
100
101DESKTOP_IN_FILES=transmission-gtk.desktop.in
102DESKTOP_FILES=$(DESKTOP_IN_FILES:.desktop.in=.desktop)
103@INTLTOOL_DESKTOP_RULE@
104
105Productivitydir = $(datadir)/applications
106Productivity_DATA = $(DESKTOP_FILES)
107
108icon_DATA = transmission.png
109icondir = $(datadir)/pixmaps
110
111UI_FILES = transmission-ui.xml
112
113transmission-resources.c: transmission.gresource.xml $(UI_FILES)
114        $(AM_V_GEN)glib-compile-resources --target=$@ --sourcedir=$(srcdir) \
115          --generate-source --c-name transmission $<
116
117transmission-resources.h: transmission.gresource.xml $(UI_FILES)
118        $(AM_V_GEN)glib-compile-resources --target=$@ --sourcedir=$(srcdir) \
119          --generate-header --c-name transmission $<
120
121CLEANFILES += \
122        transmission-resources.c \
123        transmission-resources.h
124BUILT_SOURCES += \
125        transmission-resources.c \
126        transmission-resources.h
127
128EXTRA_DIST = \
129        $(DESKTOP_IN_FILES) \
130        $(UI_FILES) \
131        transmission.gresource.xml \
132        transmission.png
133
134DISTCLEANFILES = \
135        transmission-gtk.desktop
136
137if WIN32
138
139transmission.res: transmission.rc
140        $(WINDRES) -J rc -i transmission.rc -O coff -o transmission.res
141
142BUILT_SOURCES += transmission.res
143CLEANFILES += transmission.res
144transmission_gtk_LDADD += transmission.res
145transmission_gtk_LDFLAGS = -mwindows
146
147endif
Note: See TracBrowser for help on using the repository browser.