| Jack Palevich | c164515 | 2009-12-24 16:18:25 +0800 | [diff] [blame] | 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 \ | 
| Jack Palevich | c164515 | 2009-12-24 16:18:25 +0800 | [diff] [blame] | 20 | libexpat \ | 
|  | 21 | libpng \ | 
|  | 22 | libETC1 | 
|  | 23 |  | 
| Jack Palevich | c164515 | 2009-12-24 16:18:25 +0800 | [diff] [blame] | 24 | ifeq ($(HOST_OS),linux) | 
| Raphael | 0db059b | 2010-04-15 22:02:08 -0700 | [diff] [blame] | 25 | LOCAL_LDLIBS += -lrt | 
| Jack Palevich | c164515 | 2009-12-24 16:18:25 +0800 | [diff] [blame] | 26 | endif | 
|  | 27 |  | 
| Raphael | 0db059b | 2010-04-15 22:02:08 -0700 | [diff] [blame] | 28 | # Statically link libz for MinGW (Win SDK under Linux), | 
|  | 29 | # and dynamically link for all others. | 
| Raphael | 3988438 | 2010-04-13 15:20:37 -0700 | [diff] [blame] | 30 | ifneq ($(strip $(USE_MINGW)),) | 
| Raphael | 0db059b | 2010-04-15 22:02:08 -0700 | [diff] [blame] | 31 | LOCAL_STATIC_LIBRARIES += libz | 
|  | 32 | else | 
|  | 33 | LOCAL_LDLIBS += -lz | 
| Jack Palevich | c164515 | 2009-12-24 16:18:25 +0800 | [diff] [blame] | 34 | endif | 
|  | 35 |  | 
|  | 36 | LOCAL_MODULE := etc1tool | 
|  | 37 |  | 
|  | 38 | include $(BUILD_HOST_EXECUTABLE) |