aboutsummaryrefslogtreecommitdiff
path: root/android-webrtc.mk
diff options
context:
space:
mode:
authorChih-Hung Hsieh <chh@google.com>2015-10-06 14:52:49 -0700
committerChih-Hung Hsieh <chh@google.com>2015-10-12 14:14:38 -0700
commitf227a451a070f0abf3eb655e028d7381ab2bd92d (patch)
tree6ea5ca7e58c1cc3140443c597e9b472440ec462b /android-webrtc.mk
parentbe87b97f104370e49f94a53978b52d6d8712a168 (diff)
parent9b1cf54a4ab3f965e24fb9b736bbd5790fe57541 (diff)
downloadwebrtc-f227a451a070f0abf3eb655e028d7381ab2bd92d.tar.gz
Merge from upstream SVN r2699, git SHA 9b1cf54.
* Last major but partial merge from upstream was from r2699 on 9/17/2012. Manual changes after "git merge 9b1cf54" * Remove LOCAL_CLANG:=false * Fix or workaround clang compilation error: * Remove unnecessary LOCAL_CLANG_* flags or add comment. * Fix type cast error and asm code error in src/modules/audio_coding/codecs/isac/fix/source/filters_neon.c * Keep AOSP's Android.mk files, but update include path, local source file lists, and new -D predefined macros. * Remove new Android.mk files from r2699. We do not need new features from r2699. * Remove all definition and use of WEBRTC_TARGET_PC and WEBRTC_USE_SSE2. They are not needed with new upgraded Android.mk files. * Keep old AOSP patches to compile on Android in src/system_wrappers/source/android/cpu-features.c src/modules/audio_coding/codecs/isac/fix/test/kenny.c src/common_audio/signal_processing/spl_sqrt_floor.c src/typedefs.h * In /src/common_audio/signal_processing, the following C files have new definitions from r2699, and some .s files for neon. The new .s files have compilation error on AOSP, so we skip them. The .s files are changed to .S in newer upstream versions that we could merge in later and hopefully resolve all the problems. The new .c files should also work, no worse than current AOSP .c files. min_mnax_operations_neon.c cross_correlation.c downsample_fast.c filter_ar_fast_q12.c complex_bit_reverse.c * Use nsx_core_neon.c instead of nsx_core_neon.S for arm64 target because of arm64 compilation errors on AOSP. * Remove unused parameter in src/modules/interface/module.h. * Remove ./test, src/.../Testsort.cpp, and other files that were in AOSP but not used and not in r2699. * Some r2699 features are not ported to AOSP: MY_WEBRTC_ROOT_PATH, LOCAL_PRELINK_MODULE, libstlport, TARGET_SIMULATOR, webrtc_audioproc, webrtc_audioproc_unittest, external/gtest/include, libgtest, libstlport * Remove WEBRTC_USE_SSE2, no need after upgrade. * Copy upstream *.gypi files, but they are not used in AOSP build. After this merge of r2699, we should have git merge history to simplify future merges. Change-Id: I703e59bdb27d60cd5aab9f0744dd8ce25d0ea339
Diffstat (limited to 'android-webrtc.mk')
-rw-r--r--android-webrtc.mk39
1 files changed, 19 insertions, 20 deletions
diff --git a/android-webrtc.mk b/android-webrtc.mk
index f131004a9d..2b8b5b9ba2 100644
--- a/android-webrtc.mk
+++ b/android-webrtc.mk
@@ -9,7 +9,6 @@
# These defines will apply to all source files
# Think again before changing it
MY_WEBRTC_COMMON_DEFS := \
- '-DWEBRTC_TARGET_PC' \
'-DWEBRTC_LINUX' \
'-DWEBRTC_THREAD_RR' \
'-DWEBRTC_CLOCK_TYPE_REALTIME' \
@@ -24,23 +23,23 @@ MY_WEBRTC_COMMON_DEFS_arm := \
# '-DWEBRTC_DETECT_ARM_NEON' # only used in a build configuration without Neon
# TODO(kma): figure out if the above define could be moved to NDK build only.
-# TODO(kma): test if the code under next two macros works with generic GCC compilers
-ifeq ($(ARCH_ARM_HAVE_NEON),true)
-MY_WEBRTC_COMMON_DEFS_arm += \
- '-DWEBRTC_ARCH_ARM_NEON'
-MY_ARM_CFLAGS_NEON := \
- -flax-vector-conversions
-endif
-ifneq (,$(filter '-DWEBRTC_DETECT_ARM_NEON' '-DWEBRTC_ARCH_ARM_NEON', \
- $(MY_WEBRTC_COMMON_DEFS_arm)))
-WEBRTC_BUILD_NEON_LIBS := true
-endif
-
-ifeq ($(ARCH_ARM_HAVE_ARMV7A),true)
-MY_WEBRTC_COMMON_DEFS_arm += \
- '-DWEBRTC_ARCH_ARM_V7A'
-endif
-
-MY_WEBRTC_COMMON_DEFS_x86 := \
- '-DWEBRTC_USE_SSE2'
+# The following upstram ARM_NEON and ARMV7A defintions do not work on AOSP yet.
+# They should be fixed in the next merge from upstream.
+## TODO(kma): test if the code under next two macros works with generic GCC compilers
+#ifeq ($(ARCH_ARM_HAVE_NEON),true)
+#MY_WEBRTC_COMMON_DEFS_arm += \
+# '-DWEBRTC_ARCH_ARM_NEON'
+#MY_ARM_CFLAGS_NEON := \
+# -flax-vector-conversions
+#endif
+#
+#ifneq (,$(filter '-DWEBRTC_DETECT_ARM_NEON' '-DWEBRTC_ARCH_ARM_NEON', \
+# $(MY_WEBRTC_COMMON_DEFS_arm)))
+#WEBRTC_BUILD_NEON_LIBS := true
+#endif
+#
+#ifeq ($(ARCH_ARM_HAVE_ARMV7A),true)
+#MY_WEBRTC_COMMON_DEFS_arm += \
+# '-DWEBRTC_ARCH_ARM_V7A'
+#endif