diff options
author | Mikkel Krautz <mikkel@krautz.dk> | 2012-08-10 01:53:09 +0400 |
---|---|---|
committer | Mikkel Krautz <mikkel@krautz.dk> | 2012-08-10 01:53:09 +0400 |
commit | c2655fc265a43e25322086726f3436224ce35a45 (patch) | |
tree | e25a888145dc3c27cbce4ce837588e472b046715 /sbcelt-lib-build | |
parent | f5bac3d130cf90961a753f432ff9655c240a7b03 (diff) |
Mumble: allow client to use SBCELT for CELT decoding via CONFIG(sbcelt).
Diffstat (limited to 'sbcelt-lib-build')
-rw-r--r-- | sbcelt-lib-build/sbcelt-lib-build.pro | 69 |
1 files changed, 69 insertions, 0 deletions
diff --git a/sbcelt-lib-build/sbcelt-lib-build.pro b/sbcelt-lib-build/sbcelt-lib-build.pro new file mode 100644 index 000000000..46113e194 --- /dev/null +++ b/sbcelt-lib-build/sbcelt-lib-build.pro @@ -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) |