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: Ic669f33931ad294d6570341b4e39fccd7e7f1ad8
Reviewed-on: https://chromium-review.googlesource.com/c/libyuv/libyuv/+/7897896
Commit-Queue: James Zern <jzern@google.com>
Reviewed-by: Frank Barchard <fbarchard@google.com>
This commit is contained in:
James Zern 2026-06-02 20:47:52 -07:00 committed by libyuv-scoped@luci-project-accounts.iam.gserviceaccount.com
parent 62fffa9eeb
commit af36de328f

View File

@ -1,4 +1,7 @@
# This is the Android makefile for libyuv for NDK.
# Ignore this file during non-NDK builds.
ifdef NDK_ROOT
LOCAL_PATH:= $(call my-dir)
include $(CLEAR_VARS)
@ -104,3 +107,4 @@ LOCAL_SRC_FILES := \
LOCAL_MODULE := libyuv_unittest
include $(BUILD_NATIVE_TEST)
endif # NDK_ROOT