Skip to content
This repository
Fetching contributors…

Cannot retrieve contributors at this time

file 61 lines (51 sloc) 1.651 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61
DEFINES += -D_LINUX -DUSE_LZO_PACKING
ifneq ($(or $(findstring powerpc,@ARCH@),$(findstring ppc, @ARCH@)),)
DEFINES += -DHOST_BIGENDIAN
endif

CXXFLAGS+= \
  -I. \
  -I@abs_top_srcdir@/lib \
  -I@abs_top_srcdir@/xbmc \
  -I@abs_top_srcdir@/xbmc/linux

RPATH=-Wl,-rpath=$(NATIVE_ROOT_PATH)/lib

ifeq (@USE_TEXTUREPACKER_NATIVE@,1)
NATIVE_ROOT_PATH=@USE_TEXTUREPACKER_NATIVE_ROOT@
ifdef NATIVE_ROOT_PATH
ifeq ($(findstring Darwin,$(shell uname -s)),Darwin)
DEFINES += -DTARGET_DARWIN
NATIVE_ARCH=@DARWIN_NATIVE_ARCH@
RPATH=
endif
NATIVE_CXXFLAGS+= -I. \
                  -I$(NATIVE_ROOT_PATH)/include \
                  -I@abs_top_srcdir@/lib \
                  -I@abs_top_srcdir@/xbmc \
                  -I@abs_top_srcdir@/xbmc/linux
NATIVE_LIBS += -L$(NATIVE_ROOT_PATH)/lib
endif
NATIVE_LIBS += -lSDL_image -lSDL -llzo2
NATIVE_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 = \
  md5.cpp \
  SDL_anigif.cpp \
  XBTFWriter.cpp \
  XBMCTex.cpp \
  @abs_top_srcdir@/xbmc/guilib/XBTF.cpp


TARGET = TexturePacker
CLEAN_FILES=$(TARGET)

all: $(TARGET)

ifeq (@USE_TEXTUREPACKER_NATIVE@,1)
# TexturePacker run native on build system, build it with native tools
$(TARGET): $(SRCS) @abs_top_srcdir@/xbmc/guilib/XBTF.h
g++ $(DEFINES) $(NATIVE_ARCH) $(NATIVE_CXXFLAGS) $(SRCS) $(NATIVE_LIBS) $(RPATH) -o $(TARGET)
clean:
rm -f $(TARGET)
else
include @abs_top_srcdir@/Makefile.include

$(TARGET): $(SRCS) @abs_top_srcdir@/xbmc/guilib/XBTF.h
$(CXX) $(CXXFLAGS) $(DEFINES) $(INCLUDES) $(SRCS) $(LDFLAGS) $(LIBS) -o $(TARGET)
endif
Something went wrong with that request. Please try again.