blob: 9f69e95dca9770116e9f4ff8a7ef0d152aa2f488 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
|
CLEANFILES =
lib_sources = \
flickr-proxy.c \
flickr-proxy-call.c \
flickr-proxy-private.h \
lastfm-proxy.c \
lastfm-proxy-call.c \
lastfm-proxy-private.h
lib_headers = \
flickr-proxy.h \
flickr-proxy-call.h \
lastfm-proxy.h \
lastfm-proxy-call.h
lib_LTLIBRARIES = librest-extras-@API_VERSION@.la
librest_extras_@API_VERSION@_la_CFLAGS = $(GLIB_CFLAGS) $(GTHREAD_CFLAGS) \
$(SOUP_CFLAGS) $(SOUP_GNOME_CFLAGS) \
$(XML_CFLAGS) \
-I$(top_srcdir) -Wall -DG_LOG_DOMAIN=\"Rest\"
librest_extras_@API_VERSION@_la_LIBADD = $(GLIB_LIBS) $(GTHREAD_LIBS) \
$(SOUP_LIBS) $(SOUP_GNOME_LIBS) $(XML_LIBS) \
$(top_builddir)/rest/librest-@API_VERSION@.la
librest_extras_@API_VERSION@_la_SOURCES = $(lib_sources) $(lib_headers)
librest_extras_@API_VERSION@_la_HEADERS = $(lib_headers)
librest_extras_@API_VERSION@_ladir = $(includedir)/rest-@API_VERSION@/rest-extras
# Test suite
TESTS = test-runner
check_PROGRAMS = test-runner
test_runner_SOURCES = test-runner.c $(lib_sources) $(lib_headers)
test_runner_CFLAGS = -DBUILD_TESTS $(librest_extras_@API_VERSION@_la_CFLAGS)
test_runner_LDFLAGS = $(librest_extras_@API_VERSION@_la_LIBADD)
# TODO: use gtester
# intospection
-include $(INTROSPECTION_MAKEFILE)
if HAVE_INTROSPECTION
INTROSPECTION_GIRS = RestExtras-@API_VERSION@.gir
# need to include ../rest when scanning/compiling
INTROSPECTION_SCANNER_ARGS = --add-include-path=$(top_builddir)/rest
INTROSPECTION_COMPILER_ARGS = --includedir=$(top_builddir)/rest
RestExtras-@API_VERSION@.gir: librest-extras-@API_VERSION@.la Makefile
RestExtras_@API_VERSION_AM@_gir_NAMESPACE = RestExtras
RestExtras_@API_VERSION_AM@_gir_VERSION = @API_VERSION@
RestExtras_@API_VERSION_AM@_gir_LIBS = librest-extras-@API_VERSION@.la
RestExtras_@API_VERSION_AM@_gir_FILES = $(addprefix $(top_srcdir)/rest-extras/, $(lib_headers))
RestExtras_@API_VERSION_AM@_gir_CFLAGS = -I$(top_srcdir)
RestExtras_@API_VERSION_AM@_gir_INCLUDES = GObject-2.0 Soup-2.4 libxml2-2.0 Rest-@API_VERSION@
RestExtras_@API_VERSION_AM@_gir_PACKAGES = gobject-2.0 libsoup-2.4 libxml-2.0
girdir = $(datadir)/gir-1.0
dist_gir_DATA = $(INTROSPECTION_GIRS)
typelibsdir = $(libdir)/girepository-1.0/
typelibs_DATA = $(INTROSPECTION_GIRS:.gir=.typelib)
CLEANFILES += $(dist_gir_DATA) $(typelibs_DATA)
endif # HAVE_INTROSPECTION
|