2011-05-30 13:51:34 +02:00
|
|
|
# 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.
|
|
|
|
|
2011-08-05 23:01:02 +02:00
|
|
|
# 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' \
|
|
|
|
'-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]
|
|
|
|
ifeq ($(TARGET_ARCH),arm)
|
|
|
|
MY_WEBRTC_COMMON_DEFS += \
|
|
|
|
'-DWEBRTC_ARCH_ARM'
|
2011-12-03 19:34:50 +01:00
|
|
|
# '-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.
|
2011-08-08 17:40:10 +02:00
|
|
|
|
|
|
|
# TODO(kma): test if the code under next two macros works with generic GCC compilers
|
2011-08-05 23:01:02 +02:00
|
|
|
ifeq ($(ARCH_ARM_HAVE_NEON),true)
|
|
|
|
MY_WEBRTC_COMMON_DEFS += \
|
2011-08-08 17:40:10 +02:00
|
|
|
'-DWEBRTC_ARCH_ARM_NEON'
|
2011-08-15 19:40:56 +02:00
|
|
|
MY_ARM_CFLAGS_NEON := \
|
|
|
|
-flax-vector-conversions
|
2011-08-08 17:40:10 +02:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(ARCH_ARM_HAVE_ARMV7A),true)
|
2011-08-05 23:01:02 +02:00
|
|
|
MY_WEBRTC_COMMON_DEFS += \
|
2011-08-08 17:40:10 +02:00
|
|
|
'-DWEBRTC_ARCH_ARM_V7A'
|
2011-07-25 23:28:22 +02:00
|
|
|
endif
|
2011-08-09 06:30:06 +02:00
|
|
|
|
2011-08-05 23:01:02 +02:00
|
|
|
else ifeq ($(TARGET_ARCH),x86)
|
|
|
|
MY_WEBRTC_COMMON_DEFS += \
|
|
|
|
'-DWEBRTC_USE_SSE2'
|
2011-07-25 23:28:22 +02:00
|
|
|
endif
|