]> granicus.if.org Git - libvpx/commitdiff
*/Android.mk: add a check for NDK_ROOT
authorJames Zern <jzern@google.com>
Thu, 19 Jan 2023 03:19:01 +0000 (19:19 -0800)
committerJames Zern <jzern@google.com>
Thu, 19 Jan 2023 03:19:01 +0000 (19:19 -0800)
This simplifies integration with the Android platform and avoids the
files from being used when a non-NDK build is performed. In that case
Android.bp is preferred.

Change-Id: I803912146dac788b7f0af27199c7613cabbc9fa0

build/make/Android.mk
test/android/Android.mk

index b8032e67aa9725087f8c165d9c4d8786b0ede4ce..ba24f541b101507d233ceb3d963edc8c43c3db80 100644 (file)
@@ -8,6 +8,8 @@
 ##  be found in the AUTHORS file in the root of the source tree.
 ##
 
+# Ignore this file during non-NDK builds.
+ifdef NDK_ROOT
 #
 # This file is to be used for compiling libvpx for Android using the NDK.
 # In an Android project place a libvpx checkout in the jni directory.
@@ -212,3 +214,4 @@ endif
 ifeq ($(CONFIG_RUNTIME_CPU_DETECT),yes)
 $(call import-module,android/cpufeatures)
 endif
+endif  # NDK_ROOT
index 87155fcb58dfba251628332daf78a21367003496..9a7533ebba3a3ff88175930baad92249f3cd79ee 100644 (file)
@@ -10,6 +10,9 @@
 # The test app itself runs on the command line through adb shell
 # The paths are really messed up as the libvpx make file
 # expects to be made from a parent directory.
+
+# Ignore this file during non-NDK builds.
+ifdef NDK_ROOT
 CUR_WD := $(call my-dir)
 BINDINGS_DIR := $(CUR_WD)/../../..
 LOCAL_PATH := $(CUR_WD)/../../..
@@ -61,3 +64,4 @@ LOCAL_SRC_FILES := $(addprefix ./test/, $(FILTERED_SRC))
 # some test files depend on *_rtcd.h, ensure they're generated first.
 $(eval $(call rtcd_dep_template))
 include $(BUILD_EXECUTABLE)
+endif  # NDK_ROOT