aboutsummaryrefslogtreecommitdiff
path: root/tools/TexturePacker
diff options
context:
space:
mode:
authorS. Davilla <davilla@4pi.com>2011-04-24 16:09:32 -0400
committerS. Davilla <davilla@4pi.com>2011-04-30 14:31:28 -0400
commit8305a846cbf5a8d1640ff6c5b2f39b60ab24bc47 (patch)
treefdfee4608ef58fb0c0c35524e3fa2e735359b951 /tools/TexturePacker
parentd1db2b156c01031612ea57558189f4220502f154 (diff)
added native build option of TexturePacker
Diffstat (limited to 'tools/TexturePacker')
-rw-r--r--tools/TexturePacker/Makefile.in18
1 files changed, 18 insertions, 0 deletions
diff --git a/tools/TexturePacker/Makefile.in b/tools/TexturePacker/Makefile.in
index 8fb6fdd1c6..94d4bd4ecb 100644
--- a/tools/TexturePacker/Makefile.in
+++ b/tools/TexturePacker/Makefile.in
@@ -9,7 +9,17 @@ CXXFLAGS+= \
-I@abs_top_srcdir@/xbmc \
-I@abs_top_srcdir@/xbmc/linux
+ifeq (@USE_TEXTUREPACKER_NATIVE@,1)
+NATIVE_ROOT_PATH=@USE_TEXTUREPACKER_NATIVE_ROOT@
+ifdef NATIVE_ROOT_PATH
+CXXFLAGS+= -I$(NATIVE_ROOT_PATH)/include
+LIBS += -L$(NATIVE_ROOT_PATH)/lib
+endif
+LIBS += -L@abs_top_srcdir@/lib/libsquish -lsquish-native
+else
LIBS += -L@abs_top_srcdir@/lib/libsquish -lsquish
+endif
+
LIBS += -lSDL_image -lSDL -llzo2
SRCS = \
@@ -25,7 +35,15 @@ CLEAN_FILES=$(TARGET)
all: $(TARGET)
+ifeq (@USE_TEXTUREPACKER_NATIVE@,1)
+# TexturePacker run native on build system, build it with native tools
+$(TARGET): $(SRCS)
+ g++ $(DEFINES) $(CXXFLAGS) $(SRCS) $(LIBS) -o $(TARGET)
+clean:
+ rm -f $(TARGET)
+else
include @abs_top_srcdir@/Makefile.include
$(TARGET): $(SRCS)
$(CXX) $(CXXFLAGS) $(DEFINES) $(INCLUDES) $(SRCS) $(LDFLAGS) $(LIBS) -o $(TARGET)
+endif