mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-07-23 04:31:50 +00:00
FS-7519: add pkg-config checks for avformat and avcodec and move modules to use automke
This commit is contained in:
committed by
Michael Jerris
parent
697107547a
commit
25dade86aa
@@ -0,0 +1,18 @@
|
||||
include $(top_srcdir)/build/modmake.rulesam
|
||||
MODNAME=mod_avcodec
|
||||
|
||||
if HAVE_AVCODEC
|
||||
|
||||
mod_LTLIBRARIES = mod_avcodec.la
|
||||
mod_avcodec_la_SOURCES = mod_avcodec.c
|
||||
mod_avcodec_la_CFLAGS = $(AM_CFLAGS) $(AVCODEC_CFLAGS)
|
||||
mod_avcodec_la_LIBADD = $(switch_builddir)/libfreeswitch.la $(AVCODEC_LIBS)
|
||||
mod_avcodec_la_LDFLAGS = -avoid-version -module -no-undefined -shared -lm -lz
|
||||
|
||||
else
|
||||
install: error
|
||||
all: error
|
||||
error:
|
||||
$(error You must install libavcodec-dev to build mod_avcodec)
|
||||
endif
|
||||
|
||||
@@ -0,0 +1,18 @@
|
||||
include $(top_srcdir)/build/modmake.rulesam
|
||||
MODNAME=mod_avformat
|
||||
|
||||
if HAVE_AVFORMAT
|
||||
|
||||
mod_LTLIBRARIES = mod_avformat.la
|
||||
mod_avformat_la_SOURCES = mod_avformat.c
|
||||
mod_avformat_la_CFLAGS = $(AM_CFLAGS) $(AVFORMAT_CFLAGS)
|
||||
mod_avformat_la_LIBADD = $(switch_builddir)/libfreeswitch.la $(AVFORMAT_LIBS)
|
||||
mod_avformat_la_LDFLAGS = -avoid-version -module -no-undefined -shared -lm -lz
|
||||
|
||||
else
|
||||
install: error
|
||||
all: error
|
||||
error:
|
||||
$(error You must install libavformat-dev to build mod_avformat)
|
||||
endif
|
||||
|
||||
Reference in New Issue
Block a user