1# This is the Android makefile for google3/third_party/libsrtp so that we can
2# build it with the Android NDK.
3ifeq ($(TARGET_ARCH),arm)
4
5LOCAL_PATH := $(call my-dir)
6
7common_SRC_FILES := \
8    files/source/compare.cc \
9    files/source/convert.cc \
10    files/source/convert_argb.cc \
11    files/source/convert_from.cc \
12    files/source/cpu_id.cc \
13    files/source/format_conversion.cc \
14    files/source/planar_functions.cc \
15    files/source/rotate.cc \
16    files/source/rotate_argb.cc \
17    files/source/row_common.cc \
18    files/source/row_posix.cc \
19    files/source/scale.cc \
20    files/source/scale_argb.cc \
21    files/source/video_common.cc
22
23common_CFLAGS := -Wall -fexceptions
24
25ifeq ($(TARGET_ARCH_VARIANT),armv7-a-neon)
26    common_CFLAGS += -DLIBYUV_NEON
27    common_SRC_FILES += \
28        files/source/compare_neon.cc \
29        files/source/rotate_neon.cc \
30        files/source/row_neon.cc \
31        files/source/scale_neon.cc
32endif
33
34common_C_INCLUDES = $(LOCAL_PATH)/files/include
35
36# For the device
37# =====================================================
38# Device static library
39
40include $(CLEAR_VARS)
41
42LOCAL_CPP_EXTENSION := .cc
43
44LOCAL_SDK_VERSION := 9
45LOCAL_NDK_STL_VARIANT := stlport_static
46
47LOCAL_SRC_FILES := $(common_SRC_FILES)
48LOCAL_CFLAGS += $(common_CFLAGS)
49LOCAL_C_INCLUDES += $(common_C_INCLUDES)
50
51LOCAL_MODULE:= libyuv_static
52LOCAL_MODULE_TAGS := optional
53
54include $(BUILD_STATIC_LIBRARY)
55
56endif
57