I am trying to create an Android project using ndk, but I ran into some problems.
Here is the Android.mk file that works:
LOCAL_PATH:= $(call my-dir) include $(CLEAR_VARS) LOCAL_MODULE := mylib LOCAL_CFLAGS := -Werror LOCAL_SRC_FILES := main.cpp, Screen.cpp, ScreenManager.cpp LOCAL_LDLIBS := -llog include $(BUILD_SHARED_LIBRARY)
Is there a way that allows me to list all * .cpp files in a directory without manually specifying them in LOCAL_SRC_FILES?
So far I tried to use LOCAL_SRC_FILES = $ (wildcard * .cpp), but now it worked, it seems that no files were selected.
android android-ndk
gq3 Jan 23 '12 at 23:50 2012-01-23 23:50
source share