Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mumble-voip/mumble.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThorvald Natvig <slicer@users.sourceforge.net>2009-10-21 18:37:16 +0400
committerThorvald Natvig <slicer@users.sourceforge.net>2009-10-21 18:37:16 +0400
commite73c9b0ec21d97b9add7f44e4e5f9cb1bb1acb1f (patch)
treec19ae7c2f917716248cb4e7a8a48d50884994912 /speexbuild
parent6216f4acb17ed53a70f4bd9e834f79ca472cd20c (diff)
Compile released snapshots with IPP
Diffstat (limited to 'speexbuild')
-rw-r--r--speexbuild/speexbuild.pro11
-rw-r--r--speexbuild/win32/config.h26
2 files changed, 32 insertions, 5 deletions
diff --git a/speexbuild/speexbuild.pro b/speexbuild/speexbuild.pro
index 5753a21b3..024dd9548 100644
--- a/speexbuild/speexbuild.pro
+++ b/speexbuild/speexbuild.pro
@@ -24,12 +24,13 @@ DEFINES += NDEBUG HAVE_CONFIG_H
INCLUDEPATH = ../speex/include ../speex/libspeex
win32 {
- INCLUDEPATH += ../speex/win32
+ INCLUDEPATH += ../speexbuild/win32
DEFINES+=WIN32 _WINDOWS _USE_SSE _USE_MATH_DEFINES
-}
-
-unix {
- INCLUDEPATH += ../speexbuild
+ !CONFIG(intelcpp) {
+ DEFINES+=USE_SMALLFT
+ }
+} else {
+ INCLUDEPATH += ../speexbuild
}
macx {
diff --git a/speexbuild/win32/config.h b/speexbuild/win32/config.h
new file mode 100644
index 000000000..47a4ffd13
--- /dev/null
+++ b/speexbuild/win32/config.h
@@ -0,0 +1,26 @@
+// Microsoft version of 'inline'
+#define inline __inline
+
+// In Visual Studio, _M_IX86_FP=1 means /arch:SSE was used, likewise
+// _M_IX86_FP=2 means /arch:SSE2 was used.
+// Also, enable both _USE_SSE and _USE_SSE2 if we're compiling for x86-64
+#if _M_IX86_FP >= 1 || defined(_M_X64)
+#define _USE_SSE
+#endif
+
+#if _M_IX86_FP >= 2 || defined(_M_X64)
+#define _USE_SSE2
+#endif
+
+// Visual Studio support alloca(), but it always align variables to 16-bit
+// boundary, while SSE need 128-bit alignment. So we disable alloca() when
+// SSE is enabled.
+#ifndef _USE_SSE
+# define USE_ALLOCA
+#endif
+
+/* Default to floating point */
+#define FLOATING_POINT
+
+/* We don't support visibility on Win32 */
+#define EXPORT