30 Commits

Author SHA1 Message Date
Svante Signell
9def8cf10d Add support for non-Linux GNU
GNU/Hurd and GNU/kFreeBSD have basically the same userland as GNU/Linux,
just not the same kernel.
2019-08-31 23:00:29 +02:00
Arun Raghavan
e882a5442a build: Update version to 0.3.1 2018-07-23 18:28:08 +05:30
Mirko Vogt
ee8cfef49b build: Fix configure option '--with-ns-mode'
Make *really* take '--with-ns-mode'-option into account.
Before it was bogus (wrong if-check) and it always resulted
in the float version being used.

Signed-off-by: Mirko Vogt <mirko-dev@nanl.de>
2017-01-06 10:31:17 +05:30
Thomas Petazzoni
ff77a85c28 build: fix architecture detection
The current architecture detection, based on the "host_cpu" part of the
tuple does not work properly for a number of reason:

 - The code assumes that if host_cpu starts with "arm" then ARM
   instructions are available, which is incorrect. Indeed, Cortex-M
   platforms can run Linux, they are ARM platforms (so host_cpu = arm),
   but they don't support ARM instructions: they support only the
   Thumb-2 instruction set.

 - The armv7 case is also not very useful, as it is not standard at all
   to pass armv7 as host_cpu even if the host system is actually ARMv7
   based.

 - For the same reason, the armv8 case is not very useful: ARMv8 is
   AArch64, and there is already a separate case to handle this
   architecture.

So, this commit moves away from a host_cpu based logic, and instead
tests using AC_CHECK_DECLS() the built-in definitions of the compiler:

 - If we have __ARM_ARCH_ISA_ARM defined, then it's an ARM processor
   that supports the ARM instruction set (this allows to exclude Thumb-2
   only processors).

 - If we have __ARM_ARCH_7A__, then we have an ARMv7-A processor, and
   we can enable the corresponding optimizations

 - Same for __aarch64__, __i386__ and __x86_64__.

In addition, we remove the AC_MSG_ERROR() that makes the build fail for
all architectures but the ones that are explicitly supported. Indeed,
webrtc-audio-processing builds just fine for other architectures (tested
on MIPS), it's just that none of the architecture-specific optimizations
will be used.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
2016-08-10 20:37:27 +05:30
Nicolas Dufresne
7d15b10fb0 build: Add ARM 64bit support 2016-07-14 12:57:43 +09:00
Nicolas Dufresne
7a37a8bca3 build: Re-add pthread linking on linux 2016-07-14 12:57:43 +09:00
Nicolas Dufresne
c9cffb9e3d build: Sync defines and libs with build.gn 2016-07-14 12:57:43 +09:00
Nicolas Dufresne
1378babdf0 osx: Fix type OS_FLAGS instead of OS_CFLAGS 2016-07-14 12:57:43 +09:00
Nicolas Dufresne
75ef0de241 build: Protect against unsupported CPU types 2016-07-14 12:57:43 +09:00
Nicolas Dufresne
db2f422578 build: Define MSVC _WIN32 so we can build on mingw
https://bugs.freedesktop.org/show_bug.cgi?id=96754
2016-07-14 12:57:43 +09:00
Nicolas Dufresne
bf6b9de143 build: Properly select the right system wrappers
This is needed for windows build to be usable.

https://bugs.freedesktop.org/show_bug.cgi?id=96754
2016-07-14 12:57:43 +09:00
Nicolas Dufresne
12ac8441f7 build: Add required define for Windows
This will also add it to the .pc file as WEBRTC_WIN leaks into the
public interface and undefined __STRICT_ANSI__ so M_PI is available.

https://bugs.freedesktop.org/show_bug.cgi?id=96754
2016-07-14 12:57:43 +09:00
Nicolas Dufresne
560f300a3d build: Add cerbero gnustl support for Android 2016-07-14 12:49:29 +09:00
Arun Raghavan
fc0e761394 build: Bump version to 0.3 2016-06-22 12:16:50 +05:30
Arun Raghavan
9a0e28cab0 build: Update library version info 2015-11-04 13:20:05 +05:30
Arun Raghavan
8d0c073e56 doc: Update README 2015-10-19 11:51:55 +05:30
Arun Raghavan
88a8b62f3f build: Define ARM arch preprocessor macros 2015-10-19 11:40:05 +05:30
Arun Raghavan
d6a338cb01 build: Use CXXFLAGS instead of CFLAGS in compile testing
This is needed since we're using AC_LANG_CPLUSPLUS
2015-10-19 11:29:40 +05:30
Arun Raghavan
e4b1cac207 build: Minor whitespace changes
Makes syntax highlighting in vim unbreak.
2015-10-19 11:24:40 +05:30
Arun Raghavan
98454ed265 build: Add architecture checks for x86 and ARM
On x86, SSE optimisations are always compiled in, and used based on
runtime checks.

On ARM, we try to autodetect NEON support (with an option of runtime
detection). This has not been build-tested on ARM yet.

This leaves MIPS to be done.
2015-10-15 16:18:47 +05:30
Arun Raghavan
f6941fbf6a build: Stop hard-coding OS/platform CFLAGS 2015-10-15 16:18:47 +05:30
Arun Raghavan
407bfbf651 build: Make build succeed without test and non-audio deps 2015-10-15 16:18:47 +05:30
Arun Raghavan
753eada3aa Update audio_processing module
Corresponds to upstream commit 524e9b043e7e86fd72353b987c9d5f6a1ebf83e1

Update notes:

 * Pull in third party license file

 * Replace .gypi files with BUILD.gn to keep track of what changes
   upstream

 * Bunch of new filse pulled in as dependencies

 * Won't build yet due to changes needed on top of these
2015-10-15 16:18:45 +05:30
Arun Raghavan
c4fb4e38de Update common_audio
Corresponds to upstream commit 524e9b043e7e86fd72353b987c9d5f6a1ebf83e1

Update notes:

 * Moved src/ to webrtc/ to easily diff against the third_party/webrtc
   in the chromium tree

 * ARM/NEON/MIPS support is not yet hooked up

 * Tests have not been copied
2015-10-15 16:18:25 +05:30
Arun Raghavan
fbbb9ccdbf Add xz for for dist tarballs 2011-11-10 15:43:59 +05:30
Arun Raghavan
4d764a17f0 Update code to upstream revision r789
Very minor changes.
2011-10-21 10:03:40 +05:30
Arun Raghavan
693d686b0f Update code to upstream revision r767
Just reorganisation of the audio_processing code.
2011-10-21 09:53:02 +05:30
Arun Raghavan
7e71fffb59 Update code to upstream revision r766
Removes matlab tests, adds delay estimation logging, and some other
minor fixes/improvements.
2011-10-20 13:23:11 +05:30
Arun Raghavan
1232e518c6 Add a pkg-config file for clients to use 2011-10-17 13:55:21 +05:30
Arun Raghavan
91478c13cd Initial commit of build system 2011-10-17 13:55:20 +05:30