1# Copyright (c) 2013 The WebM 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# 9# This make file builds vpx_test app for android. 10# The test app itself runs on the command line through adb shell 11# The paths are really messed up as the libvpx make file 12# expects to be made from a parent directory. 13 14# Ignore this file during non-NDK builds. 15ifdef NDK_ROOT 16CUR_WD := $(call my-dir) 17BINDINGS_DIR := $(CUR_WD)/../../.. 18LOCAL_PATH := $(CUR_WD)/../../.. 19 20#libwebm 21include $(CLEAR_VARS) 22include $(BINDINGS_DIR)/libvpx/third_party/libwebm/Android.mk 23LOCAL_PATH := $(CUR_WD)/../../.. 24 25#libvpx 26include $(CLEAR_VARS) 27LOCAL_STATIC_LIBRARIES := libwebm 28include $(BINDINGS_DIR)/libvpx/build/make/Android.mk 29LOCAL_PATH := $(CUR_WD)/../.. 30 31#libgtest 32include $(CLEAR_VARS) 33LOCAL_ARM_MODE := arm 34LOCAL_CPP_EXTENSION := .cc 35LOCAL_MODULE := gtest 36LOCAL_C_INCLUDES := $(LOCAL_PATH)/third_party/googletest/src/ 37LOCAL_C_INCLUDES += $(LOCAL_PATH)/third_party/googletest/src/include/ 38LOCAL_EXPORT_C_INCLUDES := $(LOCAL_PATH)/third_party/googletest/src/include/ 39LOCAL_SRC_FILES := ./third_party/googletest/src/src/gtest-all.cc 40LOCAL_LICENSE_KINDS := SPDX-license-identifier-BSD 41LOCAL_LICENSE_CONDITIONS := notice 42LOCAL_NOTICE_FILE := $(LOCAL_PATH)/../../LICENSE $(LOCAL_PATH)/../../PATENTS 43include $(BUILD_STATIC_LIBRARY) 44 45#libvpx_test 46include $(CLEAR_VARS) 47LOCAL_ARM_MODE := arm 48LOCAL_MODULE := libvpx_test 49LOCAL_STATIC_LIBRARIES := gtest libwebm 50 51ifeq ($(ENABLE_SHARED),1) 52 LOCAL_SHARED_LIBRARIES := vpx 53else 54 LOCAL_STATIC_LIBRARIES += vpx 55endif 56 57LOCAL_LICENSE_KINDS := SPDX-license-identifier-BSD 58LOCAL_LICENSE_CONDITIONS := notice 59LOCAL_NOTICE_FILE := $(LOCAL_PATH)/../../LICENSE $(LOCAL_PATH)/../../PATENTS 60include $(LOCAL_PATH)/test/test.mk 61LOCAL_C_INCLUDES := $(BINDINGS_DIR) 62FILTERED_SRC := $(sort $(filter %.cc %.c, $(LIBVPX_TEST_SRCS-yes))) 63LOCAL_SRC_FILES := $(addprefix ./test/, $(FILTERED_SRC)) 64# some test files depend on *_rtcd.h, ensure they're generated first. 65$(eval $(call rtcd_dep_template)) 66include $(BUILD_EXECUTABLE) 67endif # NDK_ROOT 68