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 	external/zopfli/src
     17 
     18 LOCAL_STATIC_LIBRARIES := \
     19 	libandroidfw \
     20 	libutils \
     21 	libcutils \
     22 	liblog \
     23 	libzopfli
     24 
     25 ifeq ($(HOST_OS),linux)
     26 LOCAL_LDLIBS += -lrt
     27 endif
     28 
     29 ifneq ($(strip $(USE_MINGW)),)
     30 LOCAL_STATIC_LIBRARIES += libz
     31 else
     32 LOCAL_LDLIBS += -lz
     33 endif
     34 
     35 ifneq ($(strip $(BUILD_HOST_static)),)
     36 LOCAL_LDLIBS += -lpthread
     37 endif # BUILD_HOST_static
     38 
     39 LOCAL_MODULE := zipalign
     40 
     41 include $(BUILD_HOST_EXECUTABLE)
     42