blob: 2c470f2ce3aab41a31e0e2fdd2a645288f41c489 (
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
68
69
70
71
72
73
74
75
76
77
|
CLEANFILES =
lib_sources = \
flickr-proxy.c \
flickr-proxy-call.c \
flickr-proxy-private.h
lib_headers = \
flickr-proxy.h \
flickr-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
if HAVE_INTROSPECTION
BUILT_GIRSOURCES =
RestExtras-@API_VERSION@.gir: $(INTROSPECTION_SCANNER) librest-extras-@API_VERSION@.la
$(AM_V_GEN)$(INTROSPECTION_SCANNER) -v \
--namespace RestExtras --nsversion=@API_VERSION@ \
--add-include-path=$(top_builddir)/rest \
--include=GObject-2.0 \
--include=Soup-2.4 \
--include=libxml2-2.0 \
--include=Rest-@API_VERSION@ \
--library=librest-extras-@API_VERSION@.la \
--libtool="$(top_builddir)/libtool" \
--pkg gobject-2.0 \
--pkg libsoup-2.4 \
--pkg libxml-2.0 \
--output $@ \
-I$(top_srcdir) \
$(addprefix $(top_srcdir)/rest-extras/, $(lib_headers)) \
$(addprefix $(top_srcdir)/rest-extras/, $(lib_sources))
BUILT_GIRSOURCES += RestExtras-@API_VERSION@.gir
# INTROSPECTION_GIRDIR/INTROSPECTION_TYPELIBDIR aren't the right place to
# install anything - we need to install inside our prefix.
girdir = $(datadir)/gir-1.0
gir_DATA = $(BUILT_GIRSOURCES)
typelibsdir = $(libdir)/girepository-1.0/
typelibs_DATA = $(BUILT_GIRSOURCES:.gir=.typelib)
%.typelib: %.gir $(INTROSPECTION_COMPILER)
$(AM_V_GEN) \
LD_LIBRARY_PATH=.libs${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH} \
$(INTROSPECTION_COMPILER) \
--includedir=$(srcdir) \
--includedir=. \
--includedir=$(top_builddir)/rest \
$(INTROSPECTION_COMPILER_OPTS) $< -o $(@F)
CLEANFILES += $(BUILT_GIRSOURCES) $(typelibs_DATA)
endif #HAVE_INTROSPECTION
|