summaryrefslogtreecommitdiff
path: root/farstream/Makefile.am
blob: e6b509c167734dbed9a1e1bd5a68ecbac7532032 (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
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
libfarstreamincludedir = $(includedir)/farstream-@FS_APIVERSION@/farstream

libfarstreaminclude_HEADERS = \
		fs-candidate.h \
		fs-codec.h \
		fs-participant.h \
		fs-session.h \
		fs-stream.h \
		fs-conference.h \
		fs-transmitter.h \
		fs-stream-transmitter.h \
		fs-plugin.h \
		fs-element-added-notifier.h \
		fs-utils.h \
		fs-rtp.h

nodist_libfarstreaminclude_HEADERS = \
		fs-enumtypes.h


lib_LTLIBRARIES = libfarstream-@FS_APIVERSION@.la

BUILT_SOURCES = \
	$(nodist_libfarstream_@FS_APIVERSION@_la_SOURCES) \
	$(nodist_libfarstreaminclude_HEADERS)

CLEANFILES = $(BUILT_SOURCES)

libfarstream_@FS_APIVERSION@_la_SOURCES = \
		fs-candidate.c \
		fs-codec.c \
		fs-participant.c \
		fs-session.c \
		fs-stream.c \
		fs-conference.c \
		fs-transmitter.c \
		fs-stream-transmitter.c \
		fs-plugin.c \
		fs-element-added-notifier.c \
		fs-utils.c \
		fs-rtp.c \
		fs-private.h

nodist_libfarstream_@FS_APIVERSION@_la_SOURCES = \
		fs-enumtypes.c


libfarstream_@FS_APIVERSION@_la_CFLAGS = \
	$(FS_INTERNAL_CFLAGS) $(FS_CFLAGS) \
	$(GLIB_CFLAGS) \
	$(GST_PLUGINS_BASE_CFLAGS) \
	$(GST_BASE_CFLAGS) \
	$(GST_CFLAGS)
libfarstream_@FS_APIVERSION@_la_LIBADD = \
	$(GLIB_LIBS) \
	$(GST_BASE_LIBS) \
	$(GST_LIBS)
libfarstream_@FS_APIVERSION@_la_LDFLAGS = \
	$(FS_LIB_LDFLAGS) \
	$(FS_ALL_LDFLAGS) \
	$(FS_LT_LDFLAGS) 


public_headers = fs-candidate.h \
		fs-codec.h \
		fs-participant.h \
		fs-session.h \
		fs-stream.h \
		fs-conference.h \
		fs-utils.h

glib_enum_headers=$(public_headers)
glib_enum_define=FS
glib_gen_prefix=_fs
glib_gen_basename=fs
glib_gen_decl_include=\#include <glib-object.h>

include $(top_srcdir)/common-modified/gst-glib-gen.mak

if HAVE_INTROSPECTION
include $(INTROSPECTION_MAKEFILE)
introspection_sources = \
	$(libfarstream_@FS_APIVERSION@_la_SOURCES) \
	$(nodist_libfarstreaminclude_HEADERS) \
	$(libfarstreaminclude_HEADERS)


INTROSPECTION_GIRS = Farstream-@FS_APIVERSION@.gir
Farstream_@FS_API_VERSION@_gir: libfarstream_@FS_APIVERSION@.la
Farstream_@FS_API_VERSION@_gir_NAMESPACE = Farstream
Farstream_@FS_API_VERSION@_gir_VERSION = @FS_APIVERSION@
Farstream_@FS_API_VERSION@_gir_LIBS = libfarstream-@FS_APIVERSION@.la
Farstream_@FS_API_VERSION@_gir_FILES = $(introspection_sources)
Farstream_@FS_API_VERSION@_gir_INCLUDES = GObject-2.0 Gst-@GST_API_VERSION@
Farstream_@FS_API_VERSION@_gir_CFLAGS = $(FS_INTERNAL_CFLAGS)
Farstream_@FS_API_VERSION@_gir_PACKAGES = gstreamer-@GST_API_VERSION@
Farstream_@FS_API_VERSION@_gir_SCANNERFLAGS = --symbol-prefix=fs \
	--identifier-prefix=Fs --add-init-section="gst_init(NULL,NULL);" \
	--pkg-export=farstream-@FS_APIVERSION@ \
	$(foreach hdr,$(public_headers),--c-include=$(hdr)) \
	--cflags-begin -include gst/gst.h --cflags-end

girdir = $(datadir)/gir-1.0
dist_gir_DATA = Farstream-@FS_APIVERSION@.gir
typelibdir = $(libdir)/girepository-1.0
typelib_DATA = Farstream-@FS_APIVERSION@.typelib
CLEANFILES += $(dist_gir_DATA) $(typelib_DATA)
endif