19b35249446b07f40ac5fcc3205f2c048616efacchkuang# Copyright (c) 2013 The WebM project authors. All Rights Reserved.
29b35249446b07f40ac5fcc3205f2c048616efacchkuang#
39b35249446b07f40ac5fcc3205f2c048616efacchkuang# Use of this source code is governed by a BSD-style license
49b35249446b07f40ac5fcc3205f2c048616efacchkuang# that can be found in the LICENSE file in the root of the source
59b35249446b07f40ac5fcc3205f2c048616efacchkuang# tree. An additional intellectual property rights grant can be found
69b35249446b07f40ac5fcc3205f2c048616efacchkuang# in the file PATENTS.  All contributing project authors may
79b35249446b07f40ac5fcc3205f2c048616efacchkuang# be found in the AUTHORS file in the root of the source tree.
89b35249446b07f40ac5fcc3205f2c048616efacchkuang#
99b35249446b07f40ac5fcc3205f2c048616efacchkuang# This make file builds vpx_test app for android.
109b35249446b07f40ac5fcc3205f2c048616efacchkuang# The test app itself runs on the command line through adb shell
119b35249446b07f40ac5fcc3205f2c048616efacchkuang# The paths are really messed up as the libvpx make file
129b35249446b07f40ac5fcc3205f2c048616efacchkuang# expects to be made from a parent directory.
139b35249446b07f40ac5fcc3205f2c048616efacchkuangCUR_WD := $(call my-dir)
149b35249446b07f40ac5fcc3205f2c048616efacchkuangBINDINGS_DIR := $(CUR_WD)/../../..
159b35249446b07f40ac5fcc3205f2c048616efacchkuangLOCAL_PATH := $(CUR_WD)/../../..
169b35249446b07f40ac5fcc3205f2c048616efacchkuang
179b35249446b07f40ac5fcc3205f2c048616efacchkuang#libvpx
189b35249446b07f40ac5fcc3205f2c048616efacchkuanginclude $(CLEAR_VARS)
199b35249446b07f40ac5fcc3205f2c048616efacchkuanginclude $(BINDINGS_DIR)/libvpx/build/make/Android.mk
209b35249446b07f40ac5fcc3205f2c048616efacchkuangLOCAL_PATH := $(CUR_WD)/../..
219b35249446b07f40ac5fcc3205f2c048616efacchkuang
229b35249446b07f40ac5fcc3205f2c048616efacchkuang#libgtest
239b35249446b07f40ac5fcc3205f2c048616efacchkuanginclude $(CLEAR_VARS)
249b35249446b07f40ac5fcc3205f2c048616efacchkuangLOCAL_ARM_MODE := arm
259b35249446b07f40ac5fcc3205f2c048616efacchkuangLOCAL_CPP_EXTENSION := .cc
269b35249446b07f40ac5fcc3205f2c048616efacchkuangLOCAL_MODULE := gtest
279b35249446b07f40ac5fcc3205f2c048616efacchkuangLOCAL_C_INCLUDES := $(LOCAL_PATH)/third_party/googletest/src/
289b35249446b07f40ac5fcc3205f2c048616efacchkuangLOCAL_C_INCLUDES += $(LOCAL_PATH)/third_party/googletest/src/include/
299b35249446b07f40ac5fcc3205f2c048616efacchkuangLOCAL_SRC_FILES := ./third_party/googletest/src/src/gtest-all.cc
309b35249446b07f40ac5fcc3205f2c048616efacchkuanginclude $(BUILD_STATIC_LIBRARY)
319b35249446b07f40ac5fcc3205f2c048616efacchkuang
329b35249446b07f40ac5fcc3205f2c048616efacchkuang#libvpx_test
339b35249446b07f40ac5fcc3205f2c048616efacchkuanginclude $(CLEAR_VARS)
349b35249446b07f40ac5fcc3205f2c048616efacchkuangLOCAL_ARM_MODE := arm
359b35249446b07f40ac5fcc3205f2c048616efacchkuangLOCAL_MODULE := libvpx_test
369b35249446b07f40ac5fcc3205f2c048616efacchkuangLOCAL_STATIC_LIBRARIES := gtest
379b35249446b07f40ac5fcc3205f2c048616efacchkuangLOCAL_SHARED_LIBRARIES := vpx
389b35249446b07f40ac5fcc3205f2c048616efacchkuanginclude $(LOCAL_PATH)/test/test.mk
399b35249446b07f40ac5fcc3205f2c048616efacchkuangLOCAL_C_INCLUDES := $(BINDINGS_DIR)
409b35249446b07f40ac5fcc3205f2c048616efacchkuangFILTERED_SRC := $(sort $(filter %.cc %.c, $(LIBVPX_TEST_SRCS-yes)))
419b35249446b07f40ac5fcc3205f2c048616efacchkuangLOCAL_SRC_FILES := $(addprefix ./test/, $(FILTERED_SRC))
429b35249446b07f40ac5fcc3205f2c048616efacchkuanginclude $(BUILD_EXECUTABLE)
43