mirror of https://github.com/sipwise/rtpengine.git
*) Remove packaging for -gpu packages *) Remove build profile restrictions, except for the build dependency itself *) Remove script to generate dh fragments for -gpu packages *) Convert --cudecs switch to a path argument pointing to the .so *) Don't link against libcudecs during build *) Only include the single types.h header needed for usage as a plugin *) Resolve all symbols during startup after loading the .so Change-Id: Ide99eec2156d5d3be8c40594391cb1603add4b16pull/1729/head
parent
f991930260
commit
b82b31ec2b
@ -1,28 +0,0 @@
|
||||
#!/bin/bash
|
||||
for pkg in ngcp-rtpengine-daemon ngcp-rtpengine-recording-daemon ngcp-rtpengine-perftest; do
|
||||
for file in "$pkg".*; do
|
||||
if test -f "$file"; then
|
||||
suffix=${file#"$pkg".}
|
||||
cp -v "$pkg"."$suffix" "$pkg"-gpu."$suffix"
|
||||
fi
|
||||
done
|
||||
for file in "$pkg"@.*; do
|
||||
if test -f "$file"; then
|
||||
suffix=${file#"$pkg"@.}
|
||||
cp -v "$pkg"@."$suffix" "$pkg"-gpu@."$suffix"
|
||||
fi
|
||||
done
|
||||
if test -f "$pkg"-gpu.links; then
|
||||
rm -vf "$pkg"-gpu.links.tmp
|
||||
while read -r line; do
|
||||
# rewrite link from original 'rtpengine-daemon.service -> ngcp-rtpengine-daemon.service'
|
||||
# ... to 'rtpengine-daemon-gpu.service -> ngcp-rtpengine-daemon-gpu.service'
|
||||
echo "$line" | sed 's/\(@\?\)\.service/-gpu\1.service/g' >> "$pkg"-gpu.links.tmp
|
||||
# add link 'rtpengine-daemon.service -> ngcp-rtpengine-daemon-gpu.service'
|
||||
echo "$line" | sed 's/\(@\?\)\.service/-gpu\1.service/' >> "$pkg"-gpu.links.tmp
|
||||
# add link 'ngcp-rtpengine-daemon.service -> ngcp-rtpengine-daemon-gpu.service'
|
||||
echo "$line" | sed 's/\(@\?\)\.service/-gpu\1.service/; s,system/rtpengine,system/ngcp-rtpengine,' >> "$pkg"-gpu.links.tmp
|
||||
done < "$pkg"-gpu.links
|
||||
mv -v "$pkg"-gpu.links.tmp "$pkg"-gpu.links
|
||||
fi
|
||||
done
|
@ -1,9 +1,7 @@
|
||||
ifneq (,$(filter pkg.ngcp-rtpengine.cudecs,${DEB_BUILD_PROFILES}))
|
||||
ifneq (,$(wildcard $(CUDECS_HOME)/usr/include/cudecs/g711opus.h))
|
||||
CFLAGS+= -DHAVE_CUDECS -I$(CUDECS_HOME)/usr/include
|
||||
LDLIBS+= -L$(CUDECS_HOME)/usr/lib -lcudecs
|
||||
else ifneq (,$(wildcard /usr/include/cudecs/g711opus.h))
|
||||
CFLAGS+= -DHAVE_CUDECS
|
||||
LDLIBS+= -lcudecs
|
||||
endif
|
||||
endif
|
||||
|
Loading…
Reference in new issue