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 | |
Jack Palevich | c164515 | 2009-12-24 16:18:25 +0800 | [diff] [blame] | 12 | LOCAL_STATIC_LIBRARIES := \ |
| 13 | libhost \ |
Jack Palevich | c164515 | 2009-12-24 16:18:25 +0800 | [diff] [blame] | 14 | libexpat \ |
| 15 | libpng \ |
| 16 | libETC1 |
| 17 | |
Raphael | 0db059b | 2010-04-15 22:02:08 -0700 | [diff] [blame] | 18 | # Statically link libz for MinGW (Win SDK under Linux), |
| 19 | # and dynamically link for all others. |
Dan Willemsen | b2fa10b | 2015-08-25 16:24:01 -0700 | [diff] [blame] | 20 | LOCAL_STATIC_LIBRARIES_windows := libz |
| 21 | LOCAL_LDLIBS_darwin := -lz |
| 22 | LOCAL_LDLIBS_linux := -lrt -lz |
Jack Palevich | c164515 | 2009-12-24 16:18:25 +0800 | [diff] [blame] | 23 | |
| 24 | LOCAL_MODULE := etc1tool |
Dan Willemsen | b2fa10b | 2015-08-25 16:24:01 -0700 | [diff] [blame] | 25 | LOCAL_MODULE_HOST_OS := darwin linux windows |
Jack Palevich | c164515 | 2009-12-24 16:18:25 +0800 | [diff] [blame] | 26 | |
| 27 | include $(BUILD_HOST_EXECUTABLE) |