summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames Zern <jzern@google.com>2023-01-18 15:38:56 -0800
committerJames Zern <jzern@google.com>2023-01-18 15:38:56 -0800
commite14008c67f0b738cff49d731671abf9e7a2b942b (patch)
tree7829227b6c7b16ec5dd8f1fbf0bc4bd31026fe4f
parent2f9fc054ab9547ca06071ec68dab9d54960abb2e (diff)
downloadlibwebm-e14008c67f0b738cff49d731671abf9e7a2b942b.tar.gz
Android.mk: add a check for NDK_ROOT
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: I027ded298ae518db5388a7e514f2ef7b1d940b4b
-rw-r--r--Android.mk3
1 files changed, 3 insertions, 0 deletions
diff --git a/Android.mk b/Android.mk
index 1185198..e6c17df 100644
--- a/Android.mk
+++ b/Android.mk
@@ -1,3 +1,5 @@
+# Ignore this file during non-NDK builds.
+ifdef NDK_ROOT
LOCAL_PATH:= $(call my-dir)
include $(CLEAR_VARS)
@@ -18,3 +20,4 @@ LOCAL_LICENSE_KINDS := SPDX-license-identifier-BSD
LOCAL_LICENSE_CONDITIONS := notice
LOCAL_NOTICE_FILE := $(LOCAL_PATH)/LICENSE.TXT $(LOCAL_PATH)/PATENTS.TXT
include $(BUILD_STATIC_LIBRARY)
+endif # NDK_ROOT