Files
android_development/ndk/apps/unit-tests/test-CLEAR_VARS/Android.mk
David 'Digit' Turner eee1675aa4 Look for Android.mk in $(APP_PROJECT_PATH)/jni by default.
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.
2009-07-29 19:04:44 +02:00

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)