droidVncServer/jni/libpng/Android.mk

83 lines
1.7 KiB
Makefile
Raw Normal View History

2012-06-10 14:34:51 -04:00
LOCAL_PATH:= $(call my-dir)
# We need to build this for both the device (as a shared library)
# and the host (as a static library for tools to use).
common_SRC_FILES := \
png.c \
pngerror.c \
pngget.c \
pngmem.c \
pngpread.c \
pngread.c \
pngrio.c \
pngrtran.c \
pngrutil.c \
pngset.c \
pngtrans.c \
pngwio.c \
pngwrite.c \
pngwtran.c \
pngwutil.c
2012-06-12 13:11:52 -04:00
2012-06-10 14:34:51 -04:00
common_CFLAGS := -fvisibility=hidden ## -fomit-frame-pointer
ifeq ($(HOST_OS),windows)
ifeq ($(USE_MINGW),)
# Case where we're building windows but not under linux (so it must be cygwin)
# In this case, gcc cygwin doesn't recognize -fvisibility=hidden
$(info libpng: Ignoring gcc flag $(common_CFLAGS) on Cygwin)
common_CFLAGS :=
endif
endif
common_C_INCLUDES +=
2012-06-12 13:11:52 -04:00
ifeq ($(TARGET_ARCH_ABI),armeabi-v7a)
LOCAL_CFLAGS += $(common_CFLAGS) -DPNG_ARM_NEON
common_SRC_FILES += arm/filter_neon.S
endif
2012-06-10 14:34:51 -04:00
#common_COPY_HEADERS_TO := libpng
#common_COPY_HEADERS := png.h pngconf.h pngusr.h
# For the host
# =====================================================
#include $(CLEAR_VARS)
#
#LOCAL_SRC_FILES := $(common_SRC_FILES)
#LOCAL_CFLAGS += $(common_CFLAGS)
#LOCAL_C_INCLUDES += $(common_C_INCLUDES) external/zlib
#
#LOCAL_MODULE:= libpng
#
#LOCAL_COPY_HEADERS_TO := $(common_COPY_HEADERS_TO)
#LOCAL_COPY_HEADERS := $(common_COPY_HEADERS)
#
#include $(BUILD_HOST_STATIC_LIBRARY)
# For the device
# =====================================================
include $(CLEAR_VARS)
LOCAL_SRC_FILES := $(common_SRC_FILES)
LOCAL_CFLAGS += $(common_CFLAGS)
LOCAL_C_INCLUDES += $(common_C_INCLUDES)
# external/zlib
LOCAL_SHARED_LIBRARIES := \
libz
LOCAL_MODULE:= libpng
2012-06-12 13:11:52 -04:00
include $(BUILD_STATIC_LIBRARY)
2012-06-10 14:34:51 -04:00
#LOCAL_COPY_HEADERS_TO := $(common_COPY_HEADERS_TO)
#LOCAL_COPY_HEADERS := $(common_COPY_HEADERS)