forked from EricssonResearch/openwebrtc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile.am
178 lines (153 loc) · 4.92 KB
/
Makefile.am
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
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
## Process this file with automake to produce Makefile.in
CLEANFILES =
AM_CPPFLAGS = \
-DPACKAGE_LOCALE_DIR=\""$(localedir)"\" \
-DPACKAGE_SRC_DIR=\""$(srcdir)"\" \
-DPACKAGE_DATA_DIR=\""$(pkgdatadir)"\" \
$(GLIB_CFLAGS) \
$(GSTREAMER_CFLAGS) \
$(OWR_DEVICE_LIST_EXT_CFLAGS)
AM_CFLAGS = \
-Wall \
-Wextra \
-Werror \
-Wno-parentheses-equality \
$(DEBUG_CFLAGS)
lib_LTLIBRARIES = libopenwebrtc.la
libopenwebrtc_la_SOURCES = \
owr.c \
owr_types.c \
owr_media_source.c \
owr_bus.c \
owr_message_origin.c \
owr_utils.c
libopenwebrtc_la_LIBADD = \
$(top_builddir)/local/libopenwebrtc_local.la \
$(top_builddir)/transport/libopenwebrtc_transport.la \
$(OPENWEBRTC_GST_PLUGINS_LIBS) \
$(GSTREAMER_LIBS) \
$(GLIB_LIBS) \
$(ORC_LIBS) \
-lm
libopenwebrtc_la_DEPENDENCIES = \
$(top_builddir)/local/libopenwebrtc_local.la \
$(top_builddir)/transport/libopenwebrtc_transport.la
# 4201 is the glib version info
libopenwebrtc_la_LDFLAGS = -export-dynamic -version-info 4201
if OWR_STATIC
libopenwebrtc.sym: $(top_srcdir)/libopenwebrtc.exp
python ${srcdir}/symbols_to_sym.py $(top_srcdir)/libopenwebrtc.exp $@ ${host}
BUILT_SOURCES = libopenwebrtc.sym
libopenwebrtc_la_LDFLAGS += -export-symbols libopenwebrtc.sym
libopenwebrtc_la_SOURCES += \
owr_require_symbols.c
CLEANFILES += owr_require_symbols.c
owr_require_symbols.c: symbols_to_source.py
python ${srcdir}/symbols_to_source.py $(top_srcdir)/libopenwebrtc.exp $@ ${host}
else
libopenwebrtc_la_LDFLAGS += -export-symbols-regex '^owr_'
endif
includedir = $(prefix)/include/owr
include_HEADERS = \
owr.h \
owr_media_source.h \
owr_bus.h \
owr_message_origin.h \
owr_types.h
noinst_HEADERS = \
owr_private.h \
owr_bus_private.h \
owr_media_source_private.h \
owr_message_origin_private.h \
owr_utils.h
if OWR_STATIC
noinst_HEADERS += \
Owr-@[email protected]
endif
pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA = openwebrtc-@[email protected]
EXTRA_DIST = \
openwebrtc-@[email protected]
-include $(INTROSPECTION_MAKEFILE)
INTROSPECTION_GIRS =
INTROSPECTION_SCANNER_ARGS = --add-include-path=$(srcdir) --warn-all
if !OWR_STATIC
INTROSPECTION_SCANNER_ARGS += --pkg gstreamer-1.0 --pkg gstreamer-video-1.0 --pkg gstreamer-app-1.0
endif
INTROSPECTION_COMPILER_ARGS = --includedir=$(srcdir)
if OWR_STATIC
INTROSPECTION_COMPILER_ARGS += --shared-library=""
endif
if HAVE_INTROSPECTION
introspection_sources = $(libopenwebrtc_la_SOURCES)
Owr-@[email protected]: libopenwebrtc.la
Owr_@OWR_API_VERSION_UNDERSCORE@_gir_INCLUDES = GObject-2.0
Owr_@OWR_API_VERSION_UNDERSCORE@_gir_CFLAGS = \
$(INCLUDES) \
-I$(top_srcdir)/owr \
-I$(top_srcdir)/transport \
-I$(top_srcdir)/local
Owr_@OWR_API_VERSION_UNDERSCORE@_gir_LIBS = libopenwebrtc.la
Owr_@OWR_API_VERSION_UNDERSCORE@_gir_FILES = \
owr.h \
owr.c \
owr_types.h \
owr_types.c \
owr_media_source.h \
owr_media_source.c \
owr_bus.h \
owr_bus.c \
owr_message_origin.h \
owr_message_origin.c \
../transport/owr_candidate.h \
../transport/owr_candidate.c \
../transport/owr_session.h \
../transport/owr_session.c \
../transport/owr_data_channel.h \
../transport/owr_data_channel.c \
../transport/owr_data_session.h \
../transport/owr_data_session.c \
../transport/owr_media_session.h \
../transport/owr_media_session.c \
../transport/owr_payload.h \
../transport/owr_payload.c \
../transport/owr_audio_payload.h \
../transport/owr_audio_payload.c \
../transport/owr_video_payload.h \
../transport/owr_video_payload.c \
../transport/owr_transport_agent.h \
../transport/owr_transport_agent.c \
../transport/owr_remote_media_source.h \
../transport/owr_remote_media_source.c \
../local/owr_local.h \
../local/owr_local.c \
../local/owr_local_media_source.h \
../local/owr_local_media_source.c \
../local/owr_media_renderer.h \
../local/owr_media_renderer.c \
../local/owr_audio_renderer.h \
../local/owr_audio_renderer.c \
../local/owr_video_renderer.h \
../local/owr_video_renderer.c \
../local/owr_image_renderer.h \
../local/owr_image_renderer.c \
../local/owr_image_server.h \
../local/owr_image_server.c \
../local/owr_window_registry.h \
../local/owr_window_registry.c
INTROSPECTION_GIRS += Owr-@[email protected]
girdir = $(datadir)/gir-1.0
gir_DATA = $(INTROSPECTION_GIRS)
typelibdir = $(libdir)/girepository-1.0
typelib_DATA = $(INTROSPECTION_GIRS:.gir=.typelib)
Owr-@[email protected]: Owr-@[email protected]
xxd -i $< > $@
shasum -a 1 -b < $< | head -c 40 > $<.sha1
xxd -i $<.sha1 >> $@
rm -f $<.sha1
CLEANFILES += $(gir_DATA) $(typelib_DATA) Owr-@[email protected]
else
Owr-@[email protected]:
cp -f `find $(top_srcdir) -name Owr-@[email protected] || echo "Owr-@[email protected]"` .
endif
-include $(top_srcdir)/git.mk