Skip to content

Commit

Permalink
Android.mk: add a check for NDK_ROOT
Browse files Browse the repository at this point in the history
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
  • Loading branch information
jzern committed Jan 18, 2023
1 parent 2f9fc05 commit e14008c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Android.mk
@@ -1,3 +1,5 @@
# Ignore this file during non-NDK builds.
ifdef NDK_ROOT
LOCAL_PATH:= $(call my-dir)

include $(CLEAR_VARS)
Expand All @@ -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

0 comments on commit e14008c

Please sign in to comment.