Skip to content

Commit 30d4287

Browse files
committed
DO NOT MERGE Tool for compressing/decompressing ETC1 textures.
The ETC1 texture format is commonly supported by OpenGL ES 2.0-capable GPUs. For historical reasons ETC1 texture files have the default extension .PKM This tool relies on the libETC1 library to compress and decompress the image data.
1 parent 1d15167 commit 30d4287

File tree

2 files changed

+622
-0
lines changed

2 files changed

+622
-0
lines changed

tools/etc1tool/Android.mk

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
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+
26+
LOCAL_LDLIBS := -lz
27+
28+
ifeq ($(HOST_OS),linux)
29+
LOCAL_LDLIBS += -lrt
30+
endif
31+
32+
ifeq ($(HOST_OS),windows)
33+
ifeq ($(strip $(USE_CYGWIN),),)
34+
LOCAL_LDLIBS += -lws2_32
35+
endif
36+
endif
37+
38+
LOCAL_MODULE := etc1tool
39+
40+
include $(BUILD_HOST_EXECUTABLE)

0 commit comments

Comments
 (0)