misc/libfreetype/Android.mk
branchhedgeroid
changeset 6039 d75329716a02
child 6043 9bd2d6b1ba52
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/misc/libfreetype/Android.mk	Sat Oct 08 14:55:13 2011 +0200
@@ -0,0 +1,28 @@
+LOCAL_PATH := $(call my-dir)
+
+include $(CLEAR_VARS)
+
+LOCAL_MODULE := freetype
+
+APP_SUBDIRS := $(patsubst $(LOCAL_PATH)/%, %, $(shell find $(LOCAL_PATH)/src -type d))
+
+# Add more subdirs here, like src/subdir1 src/subdir2
+
+LOCAL_CFLAGS := $(foreach D, $(APP_SUBDIRS), -I$(LOCAL_PATH)/$(D)) \
+				-I$(LOCAL_PATH)/include -DFT2_BUILD_LIBRARY
+
+
+#Change C++ file extension as appropriate
+LOCAL_CPP_EXTENSION := .cpp
+
+LOCAL_SRC_FILES := $(foreach F, $(APP_SUBDIRS), $(addprefix $(F)/,$(notdir $(wildcard $(LOCAL_PATH)/$(F)/*.cpp))))
+# Uncomment to also add C sources
+LOCAL_SRC_FILES += $(foreach F, $(APP_SUBDIRS), $(addprefix $(F)/,$(notdir $(wildcard $(LOCAL_PATH)/$(F)/*.c))))
+
+LOCAL_SHARED_LIBRARIES := 
+
+LOCAL_STATIC_LIBRARIES := 
+
+LOCAL_LDLIBS :=
+
+include $(BUILD_STATIC_LIBRARY)