]> granicus.if.org Git - libvpx/blob - test/android/Android.mk
8d8ce163d97786c76ab892bb930959524c53e5e2
[libvpx] / test / android / Android.mk
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 # TODO(joshualitt)
14 # Fix android make files so they can be built from anywhere, will require
15 # changing the libvpx make file and this one.
16 CUR_WD := $(call my-dir)
17 BINDINGS_DIR := $(CUR_WD)/../../..
18 LOCAL_PATH := $(CUR_WD)/../../..
19
20 #libvpx
21 include $(CLEAR_VARS)
22 include $(BINDINGS_DIR)/libvpx/build/make/Android.mk
23 # Restore path
24 # TODO joshualitt Fix makefiles so this is no longer needed
25 LOCAL_PATH := $(CUR_WD)/../..
26
27 #libgtest
28 include $(CLEAR_VARS)
29 LOCAL_CPP_EXTENSION := .cc
30 LOCAL_MODULE := gtest
31 LOCAL_C_INCLUDES := $(LOCAL_PATH)/third_party/googletest/src/
32 LOCAL_C_INCLUDES += $(LOCAL_PATH)/third_party/googletest/src/include/
33 LOCAL_SRC_FILES := ./third_party/googletest/src/src/gtest-all.cc
34 include $(BUILD_STATIC_LIBRARY)
35
36 #libnestegg
37 include $(CLEAR_VARS)
38 LOCAL_CPP_EXTENSION := .cc
39 LOCAL_MODULE := nestegg
40 NESTEGG_PATH := $(LOCAL_PATH)/nestegg
41 LOCAL_C_INCLUDES := $(NESTEGG_PATH)/include
42 LOCAL_C_INCLUDES += $(LOCAL_PATH)/
43 LOCAL_C_INCLUDES += $(NESTEGG_PATH)/halloc/
44 LOCAL_SRC_FILES := ./nestegg/halloc/src/halloc.c
45 LOCAL_SRC_FILES += ./nestegg/src/nestegg.c
46 include $(BUILD_STATIC_LIBRARY)
47
48 #libvpx_test
49 include $(CLEAR_VARS)
50 LOCAL_MODULE := libvpx_test
51 LOCAL_STATIC_LIBRARIES := gtest
52 LOCAL_STATIC_LIBRARIES += nestegg
53 LOCAL_STATIC_LIBRARIES += cpufeatures
54 LOCAL_SHARED_LIBRARIES := vpx
55 LOCAL_C_INCLUDES := $(LOCAL_PATH)/
56 LOCAL_C_INCLUDES += $(BINDINGS_DIR)/
57 LOCAL_C_INCLUDES += $(LOCAL_PATH)/third_party/googletest/src/include
58 LOCAL_SRC_FILES := ./args.c
59 LOCAL_SRC_FILES += ./md5_utils.c
60 LOCAL_SRC_FILES += ./test/decode_test_driver.cc
61 LOCAL_SRC_FILES += ./test/test_libvpx.cc
62 LOCAL_SRC_FILES += ./test/test_vector_test.cc
63 include $(BUILD_EXECUTABLE)