Files
android_development/ndk/apps/unit-tests/test-LOCAL_CPPFLAGS/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

18 lines
436 B
Makefile

# Test that LOCAL_CPPFLAGS only works for C++ sources
#
LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)
LOCAL_MODULE := test-LOCAL_CPPFLAGS
LOCAL_SRC_FILES := test-LOCAL_CPPFLAGS-1.c \
test-LOCAL_CPPFLAGS-2.cpp \
LOCAL_CFLAGS := -DBANANA=200
# Note, the -UBANANA is only there to prevent a warning
# the test works well without it.
LOCAL_CPPFLAGS := -UBANANA -DBANANA=300
include $(BUILD_SHARED_LIBRARY)