blob: a0dfd65fc0d12828e6e37993eeacbd9293011303 [file] [log] [blame]
# Copyright (c) 2011 The WebRTC project authors. All Rights Reserved.
#
# Use of this source code is governed by a BSD-style license
# that can be found in the LICENSE file in the root of the source
# tree. An additional intellectual property rights grant can be found
# in the file PATENTS. All contributing project authors may
# be found in the AUTHORS file in the root of the source tree.
# These defines will apply to all source files
# Think again before changing it
MY_WEBRTC_COMMON_DEFS := \
'-DWEBRTC_POSIX' \
'-DWEBRTC_LINUX' \
'-DWEBRTC_THREAD_RR' \
'-DWEBRTC_CLOCK_TYPE_REALTIME' \
'-DWEBRTC_ANDROID'
# The following macros are used by modules,
# we might need to re-organize them
# '-DWEBRTC_ANDROID_OPENSLES' [module audio_device]
# '-DNETEQ_VOICEENGINE_CODECS' [module audio_coding neteq]
# '-DWEBRTC_MODULE_UTILITY_VIDEO' [module media_file] [module utility]
MY_WEBRTC_COMMON_DEFS_arm := \
'-DWEBRTC_ARCH_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.
# 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
# The following warnings are disabled in most webrtc modules,
# until we upgrade to newer cleaner upstream webrtc.
MY_WEBRTC_COMMON_CFLAGS_WARNINGS := \
-Wno-missing-field-initializers \
-Wno-unused-parameter \
# The following clang-tidy checks are disabled in most webrtc modules,
# until we upgrade to newer cleaner upstream webrtc.
MY_WEBRTC_COMMON_TIDY_CHECKS := \
-cert-*, \
-clang-analyzer-*, \
-hicpp-*, \
-llvm-*, \
-google-build-namespaces, \
-google-default-arguments, \
-google-explicit-constructor, \
-google-runtime-int, \
-google-runtime-operator, \
-misc-incorrect-roundings, \
-misc-macro-parentheses, \
-misc-misplaced-widening-cast, \
-misc-noexcept-move-constructor, \
-misc-suspicious-string-compare, \
-misc-unused-parameters, \
-misc-unused-using-decls, \
-performance-type-promotion-in-math-fn, \
-performance-unnecessary-copy-initialization, \
-performance-unnecessary-value-param, \