Skip to content
This repository has been archived by the owner on Sep 30, 2018. It is now read-only.

Commit

Permalink
[droid] - fix TexturePacker build - darwin doesn't know anything abou…
Browse files Browse the repository at this point in the history
…t rpath
  • Loading branch information
Memphiz authored and Cory Fields committed Jul 2, 2012
1 parent a424514 commit de58cf9
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tools/TexturePacker/Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,15 @@ CXXFLAGS+= \
-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=$(shell echo $(CXXFLAGS) | grep x86_64 >/dev/null && echo -m64 || echo -m32)
RPATH=
endif
CXXFLAGS+= -I$(NATIVE_ROOT_PATH)/include
LIBS += -L$(NATIVE_ROOT_PATH)/lib
Expand Down Expand Up @@ -42,7 +45,7 @@ all: $(TARGET)
ifeq (@USE_TEXTUREPACKER_NATIVE@,1)
# TexturePacker run native on build system, build it with native tools
$(TARGET): $(SRCS)
g++ $(DEFINES) $(NATIVE_ARCH) $(CXXFLAGS) $(SRCS) $(LIBS) -Wl,-rpath=$(NATIVE_ROOT_PATH)/lib -o $(TARGET)
g++ $(DEFINES) $(NATIVE_ARCH) $(CXXFLAGS) $(SRCS) $(LIBS) $(RPATH) -o $(TARGET)
clean:
rm -f $(TARGET)
else
Expand Down

0 comments on commit de58cf9

Please sign in to comment.