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