File: Makefile.am

package info (click to toggle)
libmediaart 1.9.0-2
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 7,968 kB
  • ctags: 609
  • sloc: sh: 11,785; ansic: 3,420; makefile: 168; cpp: 132
file content (113 lines) | stat: -rw-r--r-- 3,320 bytes parent folder | download | duplicates (2)
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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
AM_CPPFLAGS = \
	$(BUILD_CFLAGS) \
	$(LIBMEDIAART_CFLAGS)

#
# Binaries
#
lib_LTLIBRARIES = libmediaart-@LIBMEDIAART_API_VERSION@.la

libmediaartdir = $(libdir)/libmediaart-$(LIBMEDIAART_API_VERSION)/
libmediaartincludedir=$(includedir)/libmediaart-$(LIBMEDIAART_API_VERSION)/libmediaart/

libmediaart_sources = \
	cache.c \
	cache.h \
	extract.c \
	extract.h \
	extractgeneric.h \
	storage.c \
	storage.h

libmediaartinclude_HEADERS = \
	mediaart.h \
	cache.h \
	extract.h \
	extractgeneric.h

libmediaart_@LIBMEDIAART_API_VERSION@_la_SOURCES = \
	$(libmediaart_sources) \
	marshal.c \
	marshal.h

if HAVE_GDKPIXBUF
libmediaart_@LIBMEDIAART_API_VERSION@_la_SOURCES += extractpixbuf.c
libmediaart_@LIBMEDIAART_API_VERSION@_la_LINK = $(LINK) $(libmediaart_@LIBMEDIAART_API_VERSION@_la_LDFLAGS)
else
if HAVE_QT
libmediaart_@LIBMEDIAART_API_VERSION@_la_SOURCES += extractqt.cpp
libmediaart_@LIBMEDIAART_API_VERSION@_la_LINK = $(CXXLINK) $(libmediaart_@LIBMEDIAART_API_VERSION@_la_LDFLAGS)
else
libmediaart_@LIBMEDIAART_API_VERSION@_la_SOURCES += extractdummy.c
libmediaart_@LIBMEDIAART_API_VERSION@_la_LINK = $(LINK) $(libmediaart_@LIBMEDIAART_API_VERSION@_la_LDFLAGS)
endif
endif

libmediaart_@LIBMEDIAART_API_VERSION@_la_LDFLAGS = \
	-version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE) \
	-export-symbols-regex '^media_art_.*'

libmediaart_@LIBMEDIAART_API_VERSION@_la_LIBADD = \
	$(BUILD_LIBS) \
	$(LIBMEDIAART_LIBS)


marshal.h: marshal.list
	$(AM_V_GEN)$(GLIB_GENMARSHAL) $< --prefix=_media_art_marshal --header > $@

marshal.c: marshal.list
	$(AM_V_GEN)(echo "#include \"marshal.h\""; \
	    $(GLIB_GENMARSHAL) $< --prefix=_media_art_marshal --body) > $@


BUILT_SOURCES = \
	marshal.c \
	marshal.h

CLEANFILES = $(BUILT_SOURCES)

EXTRA_DIST = \
	marshal.list


-include $(INTROSPECTION_MAKEFILE)
INTROSPECTION_GIRS =
INTROSPECTION_SCANNER_ARGS = --add-include-path=$(srcdir) --symbol-prefix=media_art
INTROSPECTION_COMPILER_ARGS = --includedir=$(srcdir)

if HAVE_INTROSPECTION
introspection_sources = $(libmediaart_sources) extractdummy.c

MediaArt-@LIBMEDIAART_API_VERSION@.gir: libmediaart-@LIBMEDIAART_API_VERSION@.la
MediaArt_@LIBMEDIAART_API_VERSION_U@_gir_INCLUDES = GObject-2.0 Gio-2.0
MediaArt_@LIBMEDIAART_API_VERSION_U@_gir_CFLAGS = $(INCLUDES) -DLIBMEDIAART_COMPILATION
MediaArt_@LIBMEDIAART_API_VERSION_U@_gir_LIBS = libmediaart-@LIBMEDIAART_API_VERSION@.la
MediaArt_@LIBMEDIAART_API_VERSION_U@_gir_SCANNERFLAGS = --c-include=libmediaart/mediaart.h
MediaArt_@LIBMEDIAART_API_VERSION_U@_gir_FILES = $(introspection_sources)
INTROSPECTION_GIRS += MediaArt-@LIBMEDIAART_API_VERSION@.gir

girdir = $(datadir)/gir-1.0
gir_DATA = $(INTROSPECTION_GIRS)

typelibdir = $(libdir)/girepository-1.0
typelib_DATA = $(INTROSPECTION_GIRS:.gir=.typelib)

BUILT_SOURCES += $(gir_DATA) $(typelib_DATA)
endif

if ENABLE_VAPIGEN
-include $(VAPIGEN_MAKEFILE)

libmediaart-@LIBMEDIAART_API_VERSION@.vapi: MediaArt-@LIBMEDIAART_API_VERSION@.gir

VAPIGEN_VAPIS = libmediaart-@LIBMEDIAART_API_VERSION@.vapi

libmediaart_@LIBMEDIAART_API_VERSION_U@_vapi_METADATADIRS = $(srcdir)
libmediaart_@LIBMEDIAART_API_VERSION_U@_vapi_DEPS = gio-2.0
libmediaart_@LIBMEDIAART_API_VERSION_U@_vapi_FILES = MediaArt-@LIBMEDIAART_API_VERSION@.gir

vapidir = $(datadir)/vala/vapi
vapi_DATA = $(VAPIGEN_VAPIS)

BUILT_SOURCES += $(vapi_DATA)
endif