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