Skip to content

Commit

Permalink
Add initial revision of the ice_lite module to provide basic ICE
Browse files Browse the repository at this point in the history
support for WebRTC clients.
  • Loading branch information
sobomax committed Jul 4, 2024
1 parent 7fd91ad commit 413f916
Show file tree
Hide file tree
Showing 6 changed files with 672 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ if BUILD_DOCS
SUBD_DOCS= doc
endif

SUBDIRS= libexecinfo libucl libxxHash makeann $(SUBD_MOD) \
SUBDIRS= libexecinfo libucl libxxHash libre makeann $(SUBD_MOD) \
$(SUBD_ELP) src $(SUBD_UDCNT) tests \
$(SUBD_EAUD) ${SUBD_DOCS}

Expand Down
2 changes: 1 addition & 1 deletion configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -411,7 +411,7 @@ AC_CONFIG_FILES([Makefile src/Makefile makeann/Makefile tests/Makefile
extractaudio/Makefile libexecinfo/Makefile modules/Makefile
modules/acct_csv/Makefile modules/acct_rtcp_hep/Makefile
modules/catch_dtmf/Makefile modules/badmod/Makefile libxxHash/Makefile
modules/dtls_gw/Makefile
libre/Makefile modules/dtls_gw/Makefile modules/ice_lite/Makefile
pertools/Makefile pertools/udp_contention/Makefile libucl/Makefile
python/sippy_lite/sippy/Time/clock_dtime.py doc/Makefile])

Expand Down
2 changes: 1 addition & 1 deletion modules/Makefile.am
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
SUBDIRS= acct_csv acct_rtcp_hep catch_dtmf badmod
SUBDIRS= acct_csv acct_rtcp_hep catch_dtmf badmod ice_lite
if BUILD_CRYPTO
SUBDIRS+= dtls_gw
endif
33 changes: 33 additions & 0 deletions modules/ice_lite/Makefile.am
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
include $(top_srcdir)/m4/memdeb.ami
include $(top_srcdir)/m4/ccflags.ami
include $(top_srcdir)/m4/coverage.ami
include $(top_srcdir)/m4/rtpp_module.ami

pkglib_LTLIBRARIES = rtpp_ice_lite.la rtpp_ice_lite_debug.la

if ENABLE_LIBRTPPROXY
noinst_LTLIBRARIES = librtpp_ice_lite.la
endif

rtpp_ice_lite_la_SOURCES = rtpp_ice_lite.c
rtpp_ice_lite_la_LDFLAGS = -avoid-version -module -shared $(LTO_FLAG) $(LDFLAG_SYMEXPORT)
rtpp_ice_lite_la_CPPFLAGS = -DRTPP_MODULE -Dmalloc=mod_malloc \
-Dfree=mod_free -Drealloc=mod_realloc -DRTPP_MOD_NAME="ice_lite" \
-I$(top_srcdir)/external/libre/include -I$(top_srcdir)/external/libre/src \
-I$(top_srcdir)/libre
CFLAGS_rtpp_ice_lite_common = -std=c11 -D_BSD_SOURCE -D_XOPEN_SOURCE $(LTO_FLAG)
rtpp_ice_lite_la_CFLAGS = $(OPT_CFLAGS) $(CFLAGS_rtpp_ice_lite_common)
rtpp_ice_lite_la_LIBADD = $(top_srcdir)/libre/libre.la -lcrypto

rtpp_ice_lite_debug_la_SOURCES = $(rtpp_ice_lite_la_SOURCES)
rtpp_ice_lite_debug_la_LIBADD = $(top_srcdir)/libre/libre_debug.la $(RTPP_MEMDEB_LDADD) -lcrypto
rtpp_ice_lite_debug_la_LDFLAGS = $(rtpp_ice_lite_la_LDFLAGS)
rtpp_ice_lite_debug_la_CPPFLAGS = $(rtpp_ice_lite_la_CPPFLAGS) \
$(RTPP_MEMDEB_CPPFLAGS) -DMEMDEB_APP="ice_lite"
rtpp_ice_lite_debug_la_CFLAGS = $(NOPT_CFLAGS) $(CFLAGS_rtpp_ice_lite_common) \
$(RTPP_MEMDEB_CFLAGS)

librtpp_ice_lite_la_SOURCES = $(rtpp_ice_lite_la_SOURCES)
librtpp_ice_lite_la_CPPFLAGS = $(rtpp_ice_lite_la_CPPFLAGS) -DLIBRTPPROXY
librtpp_ice_lite_la_CFLAGS = $(rtpp_ice_lite_la_CFLAGS)
librtpp_ice_lite_la_LIBADD = $(rtpp_ice_lite_la_LIBADD)
Loading

0 comments on commit 413f916

Please sign in to comment.