forked from mumble-voip/mumble
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Mumble: allow client to use SBCELT for CELT decoding via CONFIG(sbcelt).
- Loading branch information
Showing
15 changed files
with
353 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,84 @@ | ||
include (../compiler.pri) | ||
|
||
BUILDDIR=$$basename(PWD) | ||
SOURCEDIR=$$replace(BUILDDIR,-helper-build,-src) | ||
CELTDIR=../celt-0.7.0-src/libcelt | ||
|
||
!exists($$CELTDIR/../COPYING) { | ||
message("The $$CELTDIR/ directory was not found. You need to do the following:") | ||
message("") | ||
message("Use CELT Git:") | ||
message("git submodule init") | ||
message("git submodule update") | ||
message("") | ||
error("Aborting configuration") | ||
} | ||
|
||
!exists(../$$SOURCEDIR/LICENSE) { | ||
message("The $$SOURCEDIR/ directory was not found. You need to do the following:") | ||
message("") | ||
message("Use SBCELT Git:") | ||
message("git submodule init") | ||
message("git submodule update") | ||
message("") | ||
error("Aborting configuration") | ||
} | ||
|
||
TEMPLATE = app | ||
CONFIG -= qt app_bundle | ||
CONFIG *= debug_and_release | ||
CONFIG -= warn-on | ||
VPATH = ../$$SOURCEDIR/helper | ||
TARGET = sbcelt-helper | ||
DEFINES += HAVE_CONFIG_H | ||
INCLUDEPATH += ../$$SOURCEDIR/helper ../$$SOURCEDIR/lib ../$$SOURCEDIR $$CELTDIR | ||
LIBS += -lpthread | ||
|
||
SOURCES = \ | ||
$$CELTDIR/bands.c \ | ||
$$CELTDIR/celt.c \ | ||
$$CELTDIR/cwrs.c \ | ||
$$CELTDIR/entcode.c \ | ||
$$CELTDIR/entdec.c \ | ||
$$CELTDIR/entenc.c \ | ||
$$CELTDIR/header.c \ | ||
$$CELTDIR/kiss_fft.c \ | ||
$$CELTDIR/kiss_fftr.c \ | ||
$$CELTDIR/laplace.c \ | ||
$$CELTDIR/mdct.c \ | ||
$$CELTDIR/modes.c \ | ||
$$CELTDIR/pitch.c \ | ||
$$CELTDIR/psy.c \ | ||
$$CELTDIR/quant_bands.c \ | ||
$$CELTDIR/rangedec.c \ | ||
$$CELTDIR/rangeenc.c \ | ||
$$CELTDIR/rate.c \ | ||
$$CELTDIR/vq.c \ | ||
sbcelt-helper.c \ | ||
alloc.c | ||
|
||
unix:!macx { | ||
UNAME=$$system(uname -s) | ||
contains(UNAME, Linux) { | ||
SOURCES *= ../lib/futex-linux.c seccomp-sandbox.c sbcelt-sandbox-linux.c pdeath-linux.c | ||
LIBS += -lrt | ||
} | ||
contains(UNAME, FreeBSD) { | ||
SOURCES *= ../lib/futex-freebsd.c sbcelt-sandbox-freebsd.c pdeath-kqueue.c | ||
} | ||
} | ||
|
||
macx { | ||
SOURCES *= ../lib/futex-stub.c sbcelt-sandbox-darwin.c pdeath-kqueue.c | ||
} | ||
|
||
CONFIG(release, debug|release) { | ||
DESTDIR = ../release | ||
} | ||
|
||
CONFIG(debug, debug|release) { | ||
DEFINES *= USE_LOGFILE | ||
DESTDIR = ../debug/ | ||
} | ||
|
||
include(../symbols.pri) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
include(../compiler.pri) | ||
|
||
BUILDDIR=$$basename(PWD) | ||
SOURCEDIR=$$replace(BUILDDIR,-lib-build,-src) | ||
CELTDIR=../celt-0.7.0-src | ||
|
||
!exists($$CELTDIR/COPYING) { | ||
message("The $$CELTDIR/ directory was not found. You need to do the following:") | ||
message("") | ||
message("Use CELT Git:") | ||
message("git submodule init") | ||
message("git submodule update") | ||
message("") | ||
error("Aborting configuration") | ||
} | ||
|
||
!exists(../$$SOURCEDIR/LICENSE) { | ||
message("The $$SOURCEDIR/ directory was not found. You need to do the following:") | ||
message("") | ||
message("Use SBCELT Git:") | ||
message("git submodule init") | ||
message("git submodule update") | ||
message("") | ||
error("Aborting configuration") | ||
} | ||
|
||
TEMPLATE = lib | ||
CONFIG -= qt | ||
CONFIG += debug_and_release | ||
CONFIG -= warn_on | ||
CONFIG += warn_off | ||
CONFIG += static | ||
VPATH = ../$$SOURCEDIR/lib | ||
TARGET = sbcelt | ||
INCLUDEPATH = $$CELTDIR/libcelt | ||
DEFINES += SBCELT_PREFIX_API | ||
|
||
QMAKE_CFLAGS -= -fPIE -pie | ||
|
||
unix { | ||
INCLUDEPATH += ../$$BUILDDIR | ||
} | ||
|
||
SOURCES *= libsbcelt.c mtime.c stub.c | ||
|
||
unix:!macx { | ||
UNAME=$$system(uname -s) | ||
contains(UNAME, Linux) { | ||
SOURCES *= futex-linux.c closefrom.c | ||
} | ||
contains(UNAME, FreeBSD) { | ||
SOURCES *= futex-freebsd.c closefrom-sys.c | ||
} | ||
} | ||
|
||
macx { | ||
SOURCES *= futex-stub.c closefrom.c | ||
} | ||
|
||
CONFIG(debug, debug|release) { | ||
CONFIG += console | ||
DESTDIR = ../debug | ||
} | ||
|
||
CONFIG(release, debug|release) { | ||
DESTDIR = ../release | ||
} | ||
|
||
include(../symbols.pri) |
Submodule sbcelt-src
added at
a2ce9c
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.