niklase@google.com | da159d6 | 2011-05-30 11:51:34 +0000 | [diff] [blame] | 1 | # Copyright (c) 2011 The WebRTC project authors. All Rights Reserved. |
| 2 | # |
| 3 | # Use of this source code is governed by a BSD-style license |
| 4 | # that can be found in the LICENSE file in the root of the source |
| 5 | # tree. An additional intellectual property rights grant can be found |
| 6 | # in the file PATENTS. All contributing project authors may |
| 7 | # be found in the AUTHORS file in the root of the source tree. |
| 8 | |
leozwang@google.com | 79835d1 | 2011-08-05 21:01:02 +0000 | [diff] [blame] | 9 | # These defines will apply to all source files |
| 10 | # Think again before changing it |
| 11 | MY_WEBRTC_COMMON_DEFS := \ |
| 12 | '-DWEBRTC_TARGET_PC' \ |
| 13 | '-DWEBRTC_LINUX' \ |
| 14 | '-DWEBRTC_THREAD_RR' \ |
| 15 | '-DWEBRTC_CLOCK_TYPE_REALTIME' \ |
| 16 | '-DWEBRTC_ANDROID' |
| 17 | # The following macros are used by modules, |
| 18 | # we might need to re-organize them |
| 19 | # '-DWEBRTC_ANDROID_OPENSLES' [module audio_device] |
| 20 | # '-DNETEQ_VOICEENGINE_CODECS' [module audio_coding neteq] |
| 21 | # '-DWEBRTC_MODULE_UTILITY_VIDEO' [module media_file] [module utility] |
| 22 | ifeq ($(TARGET_ARCH),arm) |
| 23 | MY_WEBRTC_COMMON_DEFS += \ |
| 24 | '-DWEBRTC_ARM_INLINE_CALLS' \ |
| 25 | '-DWEBRTC_ARCH_ARM' |
kma@google.com | 8811032 | 2011-08-08 15:40:10 +0000 | [diff] [blame] | 26 | |
| 27 | # TODO(kma): test if the code under next two macros works with generic GCC compilers |
leozwang@google.com | 79835d1 | 2011-08-05 21:01:02 +0000 | [diff] [blame] | 28 | ifeq ($(ARCH_ARM_HAVE_NEON),true) |
| 29 | MY_WEBRTC_COMMON_DEFS += \ |
kma@google.com | 8811032 | 2011-08-08 15:40:10 +0000 | [diff] [blame] | 30 | '-DWEBRTC_ARCH_ARM_NEON' |
kma@google.com | 579ee4d | 2011-08-09 04:30:06 +0000 | [diff] [blame^] | 31 | CFLAGS_NEON = -flax-vector-conversions |
kma@google.com | 8811032 | 2011-08-08 15:40:10 +0000 | [diff] [blame] | 32 | endif |
| 33 | |
| 34 | ifeq ($(ARCH_ARM_HAVE_ARMV7A),true) |
leozwang@google.com | 79835d1 | 2011-08-05 21:01:02 +0000 | [diff] [blame] | 35 | MY_WEBRTC_COMMON_DEFS += \ |
kma@google.com | 8811032 | 2011-08-08 15:40:10 +0000 | [diff] [blame] | 36 | '-DWEBRTC_ARCH_ARM_V7A' |
leozwang@google.com | a39ffa9 | 2011-07-25 21:28:22 +0000 | [diff] [blame] | 37 | endif |
kma@google.com | 579ee4d | 2011-08-09 04:30:06 +0000 | [diff] [blame^] | 38 | |
leozwang@google.com | 79835d1 | 2011-08-05 21:01:02 +0000 | [diff] [blame] | 39 | else ifeq ($(TARGET_ARCH),x86) |
| 40 | MY_WEBRTC_COMMON_DEFS += \ |
| 41 | '-DWEBRTC_USE_SSE2' |
leozwang@google.com | a39ffa9 | 2011-07-25 21:28:22 +0000 | [diff] [blame] | 42 | endif |