Change android makefile to build webrtc for android/x86 as well
Review URL: http://webrtc-codereview.appspot.com/68002 git-svn-id: http://webrtc.googlecode.com/svn/trunk@208 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
parent
3c0a86f83d
commit
43ea04236b
@ -16,9 +16,9 @@ LOCAL_MODULE_TAGS := optional
|
||||
LOCAL_GENERATED_SOURCES :=
|
||||
LOCAL_SRC_FILES := \
|
||||
echo_cancellation.c \
|
||||
resampler.c \
|
||||
aec_core.c \
|
||||
aec_rdft.c \
|
||||
resampler.c
|
||||
aec_rdft.c
|
||||
|
||||
# Flags passed to both C and C++ files.
|
||||
MY_CFLAGS :=
|
||||
@ -27,9 +27,16 @@ MY_DEFS := '-DNO_TCMALLOC' \
|
||||
'-DNO_HEAPCHECKER' \
|
||||
'-DWEBRTC_TARGET_PC' \
|
||||
'-DWEBRTC_LINUX' \
|
||||
'-DWEBRTC_THREAD_RR' \
|
||||
'-DWEBRTC_THREAD_RR'
|
||||
ifeq ($(TARGET_ARCH),arm)
|
||||
MY_DEFS += \
|
||||
'-DWEBRTC_ANDROID' \
|
||||
'-DANDROID'
|
||||
else
|
||||
LOCAL_SRC_FILES += \
|
||||
aec_core_sse2.c \
|
||||
aec_rdft_sse2.c
|
||||
endif
|
||||
LOCAL_CFLAGS := $(MY_CFLAGS_C) $(MY_CFLAGS) $(MY_DEFS)
|
||||
|
||||
# Include paths placed before CFLAGS/CPPFLAGS
|
||||
|
@ -25,9 +25,12 @@ MY_DEFS := '-DNO_TCMALLOC' \
|
||||
'-DNO_HEAPCHECKER' \
|
||||
'-DWEBRTC_TARGET_PC' \
|
||||
'-DWEBRTC_LINUX' \
|
||||
'-DWEBRTC_THREAD_RR' \
|
||||
'-DWEBRTC_THREAD_RR'
|
||||
ifeq ($(TARGET_ARCH),arm)
|
||||
MY_DEFS += \
|
||||
'-DWEBRTC_ANDROID' \
|
||||
'-DANDROID'
|
||||
endif
|
||||
LOCAL_CFLAGS := $(MY_CFLAGS_C) $(MY_CFLAGS) $(MY_DEFS)
|
||||
|
||||
# Include paths placed before CFLAGS/CPPFLAGS
|
||||
|
@ -19,9 +19,12 @@ MY_DEFS := '-DNO_TCMALLOC' \
|
||||
'-DNO_HEAPCHECKER' \
|
||||
'-DWEBRTC_TARGET_PC' \
|
||||
'-DWEBRTC_LINUX' \
|
||||
'-DWEBRTC_THREAD_RR' \
|
||||
'-DWEBRTC_THREAD_RR'
|
||||
ifeq ($(TARGET_ARCH),arm)
|
||||
MY_DEFS += \
|
||||
'-DWEBRTC_ANDROID' \
|
||||
'-DANDROID'
|
||||
endif
|
||||
LOCAL_CFLAGS := $(MY_CFLAGS_C) $(MY_CFLAGS) $(MY_DEFS)
|
||||
|
||||
# Include paths placed before CFLAGS/CPPFLAGS
|
||||
|
@ -35,11 +35,14 @@ MY_DEFS := '-DNO_TCMALLOC' \
|
||||
'-DWEBRTC_TARGET_PC' \
|
||||
'-DWEBRTC_LINUX' \
|
||||
'-DWEBRTC_THREAD_RR' \
|
||||
'-DWEBRTC_ANDROID' \
|
||||
'-DANDROID' \
|
||||
'-DWEBRTC_NS_FIXED'
|
||||
# floating point
|
||||
# -DWEBRTC_NS_FLOAT'
|
||||
ifeq ($(TARGET_ARCH),arm)
|
||||
MY_DEFS += \
|
||||
'-DWEBRTC_ANDROID' \
|
||||
'-DANDROID'
|
||||
endif
|
||||
LOCAL_CFLAGS := $(MY_CFLAGS_C) $(MY_CFLAGS) $(MY_DEFS)
|
||||
|
||||
# Include paths placed before CFLAGS/CPPFLAGS
|
||||
|
@ -22,10 +22,12 @@ MY_DEFS := '-DNO_TCMALLOC' \
|
||||
'-DNO_HEAPCHECKER' \
|
||||
'-DWEBRTC_TARGET_PC' \
|
||||
'-DWEBRTC_LINUX' \
|
||||
'-DWEBRTC_THREAD_RR' \
|
||||
'-DWEBRTC_THREAD_RR'
|
||||
ifeq ($(TARGET_ARCH),arm)
|
||||
MY_DEFS += \
|
||||
'-DWEBRTC_ANDROID' \
|
||||
'-DANDROID'
|
||||
|
||||
endif
|
||||
LOCAL_CFLAGS := $(MY_CFLAGS_C) $(MY_CFLAGS) $(MY_DEFS)
|
||||
|
||||
# Include paths placed before CFLAGS/CPPFLAGS
|
||||
|
Loading…
Reference in New Issue
Block a user