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