Source

wiesel / libraries / android-native / wiesel-core / Android.mk

# wiesel-core

LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)

# define source folders of this library
MY_LOCAL_FOLDERS := \
				$(LOCAL_PATH)/src								\
				$(LOCAL_PATH)/../../../src/core					\

MY_SUBFOLDERS := \
				$(foreach dir,$(MY_LOCAL_FOLDERS),$(shell /usr/bin/find $(dir) -type d -print))

MY_FILES := \
				$(subst $(LOCAL_PATH), ,$(foreach dir,$(MY_SUBFOLDERS),$(wildcard $(dir)/*.cpp)))

# configure the module
LOCAL_MODULE               := wiesel-core
LOCAL_MODULE_FILENAME      := libwieselcore
LOCAL_CFLAGS               := -Werror
LOCAL_LDLIBS               := 
LOCAL_STATIC_LIBRARIES     := wiesel-base libxml2-static android_native_app_glue
LOCAL_SRC_FILES            := $(MY_FILES)
LOCAL_C_INCLUDES           := $(MY_LOCAL_FOLDERS)
LOCAL_EXPORT_C_INCLUDES    := $(MY_LOCAL_FOLDERS)
LOCAL_EXPORT_LDLIBS        := -landroid -llog -lEGL -lGLESv2

# Build the static library
include $(BUILD_STATIC_LIBRARY)

# External third-party modules
$(call import-module,third-party/libxml)

# NativeActivity stuff
$(call import-module,android/native_app_glue)