Android.mk 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  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. #libwebm
  17. include $(CLEAR_VARS)
  18. include $(BINDINGS_DIR)/libvpx/third_party/libwebm/Android.mk
  19. LOCAL_PATH := $(CUR_WD)/../../..
  20. #libvpx
  21. include $(CLEAR_VARS)
  22. LOCAL_STATIC_LIBRARIES := libwebm
  23. include $(BINDINGS_DIR)/libvpx/build/make/Android.mk
  24. LOCAL_PATH := $(CUR_WD)/../..
  25. #libgtest
  26. include $(CLEAR_VARS)
  27. LOCAL_ARM_MODE := arm
  28. LOCAL_CPP_EXTENSION := .cc
  29. LOCAL_MODULE := gtest
  30. LOCAL_C_INCLUDES := $(LOCAL_PATH)/third_party/googletest/src/
  31. LOCAL_C_INCLUDES += $(LOCAL_PATH)/third_party/googletest/src/include/
  32. LOCAL_EXPORT_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. #libvpx_test
  36. include $(CLEAR_VARS)
  37. LOCAL_ARM_MODE := arm
  38. LOCAL_MODULE := libvpx_test
  39. LOCAL_STATIC_LIBRARIES := gtest libwebm
  40. ifeq ($(ENABLE_SHARED),1)
  41. LOCAL_SHARED_LIBRARIES := vpx
  42. else
  43. LOCAL_STATIC_LIBRARIES += vpx
  44. endif
  45. include $(LOCAL_PATH)/test/test.mk
  46. LOCAL_C_INCLUDES := $(BINDINGS_DIR)
  47. FILTERED_SRC := $(sort $(filter %.cc %.c, $(LIBVPX_TEST_SRCS-yes)))
  48. LOCAL_SRC_FILES := $(addprefix ./test/, $(FILTERED_SRC))
  49. # some test files depend on *_rtcd.h, ensure they're generated first.
  50. $(eval $(call rtcd_dep_template))
  51. include $(BUILD_EXECUTABLE)