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 CUR_WD := $(call my-dir) 14 BINDINGS_DIR := $(CUR_WD)/../../.. 15 LOCAL_PATH := $(CUR_WD)/../../.. 16 17 #libvpx 18 include $(CLEAR_VARS) 19 include $(BINDINGS_DIR)/libvpx/build/make/Android.mk 20 LOCAL_PATH := $(CUR_WD)/../.. 21 22 #libgtest 23 include $(CLEAR_VARS) 24 LOCAL_ARM_MODE := arm 25 LOCAL_CPP_EXTENSION := .cc 26 LOCAL_MODULE := gtest 27 LOCAL_C_INCLUDES := $(LOCAL_PATH)/third_party/googletest/src/ 28 LOCAL_C_INCLUDES += $(LOCAL_PATH)/third_party/googletest/src/include/ 29 LOCAL_SRC_FILES := ./third_party/googletest/src/src/gtest-all.cc 30 include $(BUILD_STATIC_LIBRARY) 31 32 #libvpx_test 33 include $(CLEAR_VARS) 34 LOCAL_ARM_MODE := arm 35 LOCAL_MODULE := libvpx_test 36 LOCAL_STATIC_LIBRARIES := gtest 37 LOCAL_SHARED_LIBRARIES := vpx 38 include $(LOCAL_PATH)/test/test.mk 39 LOCAL_C_INCLUDES := $(BINDINGS_DIR) 40 FILTERED_SRC := $(sort $(filter %.cc %.c, $(LIBVPX_TEST_SRCS-yes))) 41 LOCAL_SRC_FILES := $(addprefix ./test/, $(FILTERED_SRC)) 42 include $(BUILD_EXECUTABLE) 43