Home | History | Annotate | Download | only in etc1tool
      1 # Copyright 2009 Google Inc. All Rights Reserved.
      2 #
      3 # Android.mk for etc1tool 
      4 #
      5 
      6 LOCAL_PATH:= $(call my-dir)
      7 
      8 include $(CLEAR_VARS)
      9 
     10 LOCAL_SRC_FILES := etc1tool.cpp
     11 
     12 LOCAL_C_INCLUDES += external/libpng
     13 LOCAL_C_INCLUDES += external/zlib
     14 LOCAL_C_INCLUDES += build/libs/host/include
     15 LOCAL_C_INCLUDES += frameworks/base/opengl/include
     16 
     17 #LOCAL_WHOLE_STATIC_LIBRARIES := 
     18 LOCAL_STATIC_LIBRARIES := \
     19 	libhost \
     20 	libexpat \
     21 	libpng \
     22 	libETC1
     23 
     24 ifeq ($(HOST_OS),linux)
     25 LOCAL_LDLIBS += -lrt
     26 endif
     27 
     28 # Statically link libz for MinGW (Win SDK under Linux),
     29 # and dynamically link for all others.
     30 ifneq ($(strip $(USE_MINGW)),)
     31   LOCAL_STATIC_LIBRARIES += libz
     32 else
     33   LOCAL_LDLIBS += -lz
     34 endif
     35 
     36 LOCAL_MODULE := etc1tool
     37 
     38 include $(BUILD_HOST_EXECUTABLE)
     39