diff options
author | Mikkel Krautz <mikkel@krautz.dk> | 2015-01-06 01:11:59 +0300 |
---|---|---|
committer | Mikkel Krautz <mikkel@krautz.dk> | 2015-01-06 01:11:59 +0300 |
commit | faa67303bd2db4d7c6d3c21f935d81453c2c64d2 (patch) | |
tree | 5b4877edbd87291bcbdfb961cd64752b87d2902a /3rdparty/sbcelt-helper-build | |
parent | ec3120c1ab6e2eb944b8701bb2350ad92c185a25 (diff) |
Move speex, celt-0.7.0, celt-0.11.0, opus and sbcelt to the 3rdparty directory.
Diffstat (limited to '3rdparty/sbcelt-helper-build')
-rw-r--r-- | 3rdparty/sbcelt-helper-build/sbcelt-helper-build.pro | 79 |
1 files changed, 79 insertions, 0 deletions
diff --git a/3rdparty/sbcelt-helper-build/sbcelt-helper-build.pro b/3rdparty/sbcelt-helper-build/sbcelt-helper-build.pro new file mode 100644 index 000000000..2b504c750 --- /dev/null +++ b/3rdparty/sbcelt-helper-build/sbcelt-helper-build.pro @@ -0,0 +1,79 @@ +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. Please update your submodules (git submodule update --init).") + 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) |