Home | History | Annotate | Download | only in zipalign
      1 # 
      2 # Copyright 2008 The Android Open Source Project
      3 #
      4 # Zip alignment tool
      5 #
      6 
      7 LOCAL_PATH:= $(call my-dir)
      8 include $(CLEAR_VARS)
      9 
     10 LOCAL_SRC_FILES := \
     11 	ZipAlign.cpp \
     12 	ZipEntry.cpp \
     13 	ZipFile.cpp
     14 
     15 LOCAL_C_INCLUDES += external/zlib
     16 
     17 LOCAL_STATIC_LIBRARIES := \
     18 	libandroidfw \
     19 	libutils \
     20 	libcutils \
     21 	liblog
     22 
     23 ifeq ($(HOST_OS),linux)
     24 LOCAL_LDLIBS += -lrt
     25 endif
     26 
     27 ifneq ($(strip $(USE_MINGW)),)
     28 LOCAL_STATIC_LIBRARIES += libz
     29 else
     30 LOCAL_LDLIBS += -lz
     31 endif
     32 
     33 ifneq ($(strip $(BUILD_HOST_static)),)
     34 LOCAL_LDLIBS += -lpthread
     35 endif # BUILD_HOST_static
     36 
     37 LOCAL_MODULE := zipalign
     38 
     39 include $(BUILD_HOST_EXECUTABLE)
     40