transmission/gtk/Makefile.am

143 lines
3.2 KiB
Makefile

BUILT_SOURCES =
CLEANFILES =
SUBDIRS = icons
if TR_UNSTABLE
#FIXME: migrate from GtkUIManager to GtkBuilder in 2.90
#GTK_EXTRA_CPPFLAGS=-DG_DISABLE_DEPRECATED -DGDK_PIXBUF_DISABLE_DEPRECATED -DGDK_DISABLE_DEPRECATED -DGTK_DISABLE_DEPRECATED -DPANGO_DISABLE_DEPRECATED
GTK_EXTRA_CPPFLAGS=-DG_DISABLE_DEPRECATED -DGDK_PIXBUF_DISABLE_DEPRECATED -DGDK_DISABLE_DEPRECATED -DPANGO_DISABLE_DEPRECATED
endif
# these should go in GTK_EXTRA_CPPFLAGS at some point, but not yet because it breaks libnotify's headers
# -DG_DISABLE_SINGLE_INCLUDES -DGTK_DISABLE_SINGLE_INCLUDES
AM_CPPFLAGS = \
-I$(top_srcdir) \
-DTRANSMISSIONLOCALEDIR=\""$(transmissionlocaledir)"\" \
$(GTK_EXTRA_CPPFLAGS)
AM_CFLAGS = \
@LIBAPPINDICATOR_CFLAGS@ \
@LIBEVENT_CFLAGS@ \
@GTK_CFLAGS@ \
@LIBCURL_CFLAGS@ \
@ZLIB_CFLAGS@ \
@PTHREAD_CFLAGS@
noinst_HEADERS = \
actions.h \
conf.h \
details.h \
dialogs.h \
favicon.h \
file-list.h \
filter.h \
hig.h \
icons.h \
makemeta-ui.h \
msgwin.h \
notify.h \
open-dialog.h \
relocate.h \
stats.h \
torrent-cell-renderer.h \
transmission-resources.h \
tr-core.h \
tr-icon.h \
tr-prefs.h \
tr-window.h \
util.h
bin_PROGRAMS = transmission-gtk
transmission_gtk_SOURCES = \
actions.c \
conf.c \
details.c \
dialogs.c \
favicon.c \
file-list.c \
filter.c \
hig.c \
icons.c \
main.c \
makemeta-ui.c \
msgwin.c \
notify.c \
open-dialog.c \
relocate.c \
stats.c \
torrent-cell-renderer.c \
transmission-resources.c \
tr-core.c \
tr-icon.c \
tr-prefs.c \
tr-window.c \
util.c
dist_man_MANS = transmission-gtk.1
transmission_gtk_LDADD = \
$(top_builddir)/libtransmission/libtransmission.a \
@LIBUPNP_LIBS@ \
@LIBNATPMP_LIBS@ \
@DHT_LIBS@ \
@LIBB64_LIBS@ \
@LIBUTP_LIBS@ \
@GTK_LIBS@ \
@LIBAPPINDICATOR_LIBS@ \
@LIBEVENT_LIBS@ \
@LIBCURL_LIBS@ \
@CRYPTO_LIBS@ \
@ZLIB_LIBS@ \
@PTHREAD_LIBS@ \
${LIBM}
DESKTOP_IN_FILES=transmission-gtk.desktop.in
DESKTOP_FILES=$(DESKTOP_IN_FILES:.desktop.in=.desktop)
@INTLTOOL_DESKTOP_RULE@
Productivitydir = $(datadir)/applications
Productivity_DATA = $(DESKTOP_FILES)
icon_DATA = transmission.png
icondir = $(datadir)/pixmaps
UI_FILES = transmission-ui.xml
transmission-resources.c: transmission.gresource.xml $(UI_FILES)
$(AM_V_GEN)glib-compile-resources --target=$@ --sourcedir=$(srcdir) \
--generate-source --c-name transmission $<
transmission-resources.h: transmission.gresource.xml $(UI_FILES)
$(AM_V_GEN)glib-compile-resources --target=$@ --sourcedir=$(srcdir) \
--generate-header --c-name transmission $<
CLEANFILES += \
transmission-resources.c \
transmission-resources.h
BUILT_SOURCES += \
transmission-resources.c \
transmission-resources.h
EXTRA_DIST = \
$(DESKTOP_IN_FILES) \
$(UI_FILES) \
transmission.gresource.xml \
transmission.png
DISTCLEANFILES = \
transmission-gtk.desktop
if WIN32
transmission.res: transmission.rc
$(WINDRES) -J rc -i transmission.rc -O coff -o transmission.res
BUILT_SOURCES += transmission.res
CLEANFILES += transmission.res
transmission_gtk_LDADD += transmission.res
transmission_gtk_LDFLAGS = -mwindows
endif