This gets rid of the 'sources' directory and allows all sources of a given Android application to be in the same directory tree without using a symlink trick. Note that apps/<name>/Application.mk is still required though. A later release of the NDK will get rid of it too, but the change is too drastic for the upcoming release. The change moves various source files from sources into their app/<name>/project/jni directory as well. The whole documentation is updated to reflect the change.
44 lines
875 B
Makefile
44 lines
875 B
Makefile
# This test is used to check that include $(CLEAR_VARS) does
|
|
# indeed clear all variables we care for.
|
|
|
|
LOCAL_PATH := $(call my-dir)
|
|
|
|
# The list of LOCAL_XXX variables documented by docs/ANDROID-MK.TXT
|
|
# Note that LOCAL_PATH is not cleared
|
|
VARS_LOCAL := \
|
|
MODULE \
|
|
SRC_FILES \
|
|
CPP_EXTENSION \
|
|
C_INCLUDES \
|
|
CFLAGS \
|
|
CPPFLAGS \
|
|
CXXFLAGS \
|
|
STATIC_LIBRARIES \
|
|
SHARED_LIBRARIES \
|
|
LDLIBS \
|
|
ALLOW_UNDEFINED_SYMBOLS \
|
|
ARM_MODE \
|
|
|
|
include $(CLEAR_VARS)
|
|
|
|
$(for _var,$(VARS_LOCAL),\
|
|
$(eval LOCAL_$(_var) := 1)\
|
|
)
|
|
|
|
include $(CLEAR_VARS)
|
|
|
|
STATUS := ok
|
|
$(foreach _var,$(VARS_LOCAL),\
|
|
$(if $(LOCAL_$(_var)),\
|
|
$(info variable LOCAL_$(_var) is not cleared by CLEAR_VARS)\
|
|
$(eval STATUS := ko)\
|
|
,)\
|
|
)
|
|
|
|
ifeq ($(STATUS),ko)
|
|
$(error Aborting: CLEAR_VARS does not work !)
|
|
endif
|
|
|
|
VARS_LOCAL := $(empty)
|
|
STATUS := $(empty)
|