diff options
Diffstat (limited to 'jni/glib.mk')
-rwxr-xr-x | jni/glib.mk | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/jni/glib.mk b/jni/glib.mk new file mode 100755 index 0000000..14d7a1c --- /dev/null +++ b/jni/glib.mk @@ -0,0 +1,20 @@ +include $(CLEAR_VARS) +LOCAL_MODULE := glib-2.0 +LOCAL_SRC_FILES := $(filter-out \ + %/giowin32.c %/gwin32.c %/gwin32-private.c %/gstdio-private.c %/gspawn-win32.c %/gspawn-win32-helper.c \ + %/gthread-win32.c %/win_iconv.c, $(wildcard jni/glib/glib/*.c)) +LOCAL_CFLAGS := -DGLIB_COMPILATION +LOCAL_C_INCLUDES := jni/glib jni/glib/glib jni/glib/$(TARGET_ARCH_ABI) +LOCAL_EXPORT_C_INCLUDES := $(LOCAL_C_INCLUDES) +LOCAL_STATIC_LIBRARIES := libintl + +jni/glib/$(TARGET_ARCH_ABI)/glibconfig.h: jni/glib.glibconfig.$(TARGET_ARCH_ABI).h + mkdir -p jni/glib/$(TARGET_ARCH_ABI) + cp $^ $@ + +jni/glib/$(TARGET_ARCH_ABI)/config.h: jni/glib.config.h + mkdir -p jni/glib/$(TARGET_ARCH_ABI) + cp $^ $@ + +mkxp: jni/glib/$(TARGET_ARCH_ABI)/config.h jni/glib/$(TARGET_ARCH_ABI)/glibconfig.h +include $(BUILD_STATIC_LIBRARY) |