aboutsummaryrefslogtreecommitdiffstats
path: root/Android.mk
diff options
context:
space:
mode:
authorThe Android Open Source Project <initial-contribution@android.com>2008-10-21 07:00:00 -0700
committerThe Android Open Source Project <initial-contribution@android.com>2008-10-21 07:00:00 -0700
commit368f3c41d0e7f802a92a59a342c6ae37d212743d (patch)
treed69220fafcd6687fe39ca99ad8c74820b429d6a9 /Android.mk
parent0640679f04398a7d06319d5c47b0f71bf82854a0 (diff)
downloadexternal_libpng-368f3c41d0e7f802a92a59a342c6ae37d212743d.zip
external_libpng-368f3c41d0e7f802a92a59a342c6ae37d212743d.tar.gz
external_libpng-368f3c41d0e7f802a92a59a342c6ae37d212743d.tar.bz2
Initial Contribution
Diffstat (limited to 'Android.mk')
-rw-r--r--Android.mk68
1 files changed, 68 insertions, 0 deletions
diff --git a/Android.mk b/Android.mk
new file mode 100644
index 0000000..2a6eb43
--- /dev/null
+++ b/Android.mk
@@ -0,0 +1,68 @@
+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 \
+ pnggccrd.c \
+ pngget.c \
+ pngmem.c \
+ pngpread.c \
+ pngread.c \
+ pngrio.c \
+ pngrtran.c \
+ pngrutil.c \
+ pngset.c \
+ pngtrans.c \
+ pngvcrd.c \
+ pngwio.c \
+ pngwrite.c \
+ pngwtran.c \
+ pngwutil.c
+
+common_CFLAGS := ## -fomit-frame-pointer
+
+common_C_INCLUDES += \
+
+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
+
+LOCAL_COPY_HEADERS_TO := $(common_COPY_HEADERS_TO)
+LOCAL_COPY_HEADERS := $(common_COPY_HEADERS)
+
+include $(BUILD_STATIC_LIBRARY)
+
+