This repository has been archived by the owner on Apr 15, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote branch 'upstream-ro/master'
Fixed conflicts: xbmc/addons/Skin.cpp
- Loading branch information
Showing
68 changed files
with
808 additions
and
600 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,38 @@ | ||
ARCH=@ARCH@ | ||
|
||
SRCS=alpha.cpp clusterfit.cpp colourblock.cpp colourfit.cpp colourset.cpp maths.cpp rangefit.cpp singlecolourfit.cpp squish.cpp | ||
SRCS= \ | ||
alpha.cpp \ | ||
clusterfit.cpp \ | ||
colourblock.cpp \ | ||
colourfit.cpp \ | ||
colourset.cpp \ | ||
maths.cpp \ | ||
rangefit.cpp \ | ||
singlecolourfit.cpp \ | ||
squish.cpp | ||
|
||
ifeq ($(findstring powerpc,$(ARCH)),powerpc) | ||
CXXFLAGS+=-I. -DSQUISH_USE_ALTIVEC=1 -maltivec | ||
else | ||
ifeq ($(findstring arm,$(ARCH)), arm) | ||
CXXFLAGS+=-I. | ||
ifeq ($(findstring powerpc,$(ARCH)),powerpc) | ||
CXXFLAGS+=-DSQUISH_USE_ALTIVEC=1 -maltivec | ||
else ifeq ($(findstring x86,$(ARCH)), x86) | ||
CXXFLAGS+=-DSQUISH_USE_SSE=2 -msse2 | ||
endif | ||
|
||
LIB=libsquish.a | ||
|
||
ifeq (@USE_TEXTUREPACKER_NATIVE@,1) | ||
NATIVE_LIB=libsquish-native.so | ||
CLEAN_FILES+=$(NATIVE_LIB) | ||
|
||
all: $(LIB) $(NATIVE_LIB) | ||
# TexturePacker links to libsquish and needs to run on build system, so make a native flavor. | ||
$(NATIVE_LIB): $(SRCS) | ||
ifeq ($(findstring osx,$(ARCH)),osx) | ||
g++ -DSQUISH_USE_SSE=2 -msse2 -I. $(SRCS) -dynamiclib -install_name `pwd`/libsquish-native.so -o $@ | ||
else | ||
CXXFLAGS+=-I. -DSQUISH_USE_SSE=2 -msse2 | ||
g++ -DSQUISH_USE_SSE=2 -msse2 -I. $(SRCS) -shared -fPIC -Wl,-soname,`pwd`/libsquish-native.so -o $@ | ||
endif | ||
endif | ||
LIB=libsquish.a | ||
|
||
include ../../Makefile.include | ||
-include $(patsubst %.cpp,%.P,$(patsubst %.c,%.P,$(SRCS))) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,21 @@ | ||
; filename mirror source of the file | ||
mingwrt-3.18-mingw32-dev.tar.gz http://mirrors.xbmc.org/build-deps/win32/mingw-msys/ http://downloads.sourceforge.net/project/mingw/MinGW/BaseSystem/RuntimeLibrary/MinGW-RT/mingwrt-3.18/ | ||
mingwrt-3.18-mingw32-dll.tar.gz http://mirrors.xbmc.org/build-deps/win32/mingw-msys/ http://downloads.sourceforge.net/project/mingw/MinGW/BaseSystem/RuntimeLibrary/MinGW-RT/mingwrt-3.18/ | ||
w32api-3.15-1-mingw32-dev.tar.lzma http://mirrors.xbmc.org/build-deps/win32/mingw-msys/ http://downloads.sourceforge.net/project/mingw/MinGW/BaseSystem/RuntimeLibrary/Win32-API/w32api-3.15/ | ||
gcc-core-4.5.0-1-mingw32-bin.tar.lzma http://mirrors.xbmc.org/build-deps/win32/mingw-msys/ http://downloads.sourceforge.net/project/mingw/MinGW/BaseSystem/GCC/Version4/gcc-4.5.0-1/ | ||
gcc-c++-4.5.0-1-mingw32-bin.tar.lzma http://mirrors.xbmc.org/build-deps/win32/mingw-msys/ http://downloads.sourceforge.net/project/mingw/MinGW/BaseSystem/GCC/Version4/gcc-4.5.0-1/ | ||
libstdc++-4.5.0-1-mingw32-dll-6.tar.lzma http://mirrors.xbmc.org/build-deps/win32/mingw-msys/ http://downloads.sourceforge.net/project/mingw/MinGW/BaseSystem/GCC/Version4/gcc-4.5.0-1/ | ||
binutils-2.21-2-mingw32-bin.tar.lzma http://mirrors.xbmc.org/build-deps/win32/mingw-msys/ http://downloads.sourceforge.net/project/mingw/MinGW/BaseSystem/GNU-Binutils/binutils-2.21/ | ||
w32api-3.17-2-mingw32-dev.tar.lzma http://mirrors.xbmc.org/build-deps/win32/mingw-msys/ http://downloads.sourceforge.net/project/mingw/MinGW/BaseSystem/RuntimeLibrary/Win32-API/w32api-3.17/ | ||
gcc-core-4.5.2-1-mingw32-bin.tar.lzma http://mirrors.xbmc.org/build-deps/win32/mingw-msys/ http://downloads.sourceforge.net/project/mingw/MinGW/BaseSystem/GCC/Version4/gcc-4.5.2-1/ | ||
gcc-c++-4.5.2-1-mingw32-bin.tar.lzma http://mirrors.xbmc.org/build-deps/win32/mingw-msys/ http://downloads.sourceforge.net/project/mingw/MinGW/BaseSystem/GCC/Version4/gcc-4.5.2-1/ | ||
libstdc++-4.5.2-1-mingw32-dll-6.tar.lzma http://mirrors.xbmc.org/build-deps/win32/mingw-msys/ http://downloads.sourceforge.net/project/mingw/MinGW/BaseSystem/GCC/Version4/gcc-4.5.2-1/ | ||
binutils-2.21-3-mingw32-bin.tar.lzma http://mirrors.xbmc.org/build-deps/win32/mingw-msys/ http://downloads.sourceforge.net/project/mingw/MinGW/BaseSystem/GNU-Binutils/binutils-2.21/ | ||
yasm-1.1.0-win32.exe http://mirrors.xbmc.org/build-deps/win32/mingw-msys/ http://www.tortall.net/projects/yasm/releases/ | ||
dlfcn-win32-static-r19.tar.bz2 http://mirrors.xbmc.org/build-deps/win32/mingw-msys/ http://dlfcn-win32.googlecode.com/files/ | ||
libexpat-2.0.1-1-mingw32-dev.tar.gz http://mirrors.xbmc.org/build-deps/win32/mingw-msys/ http://downloads.sourceforge.net/project/mingw/MinGW/expat/expat-2.0.1-1/ | ||
libz-1.2.3-1-mingw32-dev.tar.gz http://mirrors.xbmc.org/build-deps/win32/mingw-msys/ http://downloads.sourceforge.net/project/mingw/MinGW/zlib/zlib-1.2.3-1-mingw32/ | ||
libz-1.2.5-1-mingw32-dev.tar.lzma http://mirrors.xbmc.org/build-deps/win32/mingw-msys/ http://downloads.sourceforge.net/project/mingw/MinGW/zlib/zlib-1.2.5-1-mingw32/ | ||
libgmp-5.0.1-1-mingw32-dll-10.tar.lzma http://mirrors.xbmc.org/build-deps/win32/mingw-msys/ http://downloads.sourceforge.net/project/mingw/MinGW/gmp/gmp-5.0.1-1/ | ||
libmpc-0.8.1-1-mingw32-dll-2.tar.lzma http://mirrors.xbmc.org/build-deps/win32/mingw-msys/ http://downloads.sourceforge.net/project/mingw/MinGW/mpc/mpc-0.8.1-1/ | ||
libmpfr-2.4.1-1-mingw32-dll-1.tar.lzma http://mirrors.xbmc.org/build-deps/win32/mingw-msys/ http://downloads.sourceforge.net/project/mingw/MinGW/mpfr/mpfr-2.4.1-1/ | ||
automake1.11-1.11.1-1-mingw32-bin.tar.lzma http://mirrors.xbmc.org/build-deps/win32/mingw-msys/ http://downloads.sourceforge.net/project/mingw/MinGW/automake/automake1.11/automake1.11-1.11.1-1/ | ||
libtool-2.4-1-mingw32-bin.tar.lzma http://mirrors.xbmc.org/build-deps/win32/mingw-msys/ http://downloads.sourceforge.net/project/mingw/MinGW/libtool/libtool-2.4-1/ | ||
mads_1.9.2.7z http://mirrors.xbmc.org/build-deps/win32/mingw-msys/ http://mads.atari8.info/ | ||
xasm-3.0.2-windows.zip http://mirrors.xbmc.org/build-deps/win32/mingw-msys/ http://atariarea.krap.pl/x-asm/ | ||
libintl-0.17-1-mingw32-dll-8.tar.lzma http://mirrors.xbmc.org/build-deps/win32/mingw-msys/ http://sourceforge.net/projects/mingw/files/MinGW/gettext/gettext-0.17-1/ | ||
libiconv-1.13.1-1-mingw32-dll-2.tar.lzma http://mirrors.xbmc.org/build-deps/win32/mingw-msys/ http://sourceforge.net/projects/mingw/files/MinGW/libiconv/libiconv-1.13.1-1/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,49 @@ | ||
ARCH=@ARCH@ | ||
DEFINES = | ||
ifeq ($(findstring osx,$(ARCH)),osx) | ||
LIBS = @abs_top_srcdir@/lib/libsquish/libsquish.a -L/Users/Shared/xbmc-depends/osx-10.4_i386/lib -lSDL_image -lSDL -llzo2 | ||
DEFINES += -D_LINUX -DUSE_LZO_PACKING | ||
ifneq ($(or $(findstring powerpc,arm-osx),$(findstring ppc, arm-osx)),) | ||
DEFINES += -DHOST_BIGENDIAN | ||
endif | ||
|
||
CXXFLAGS+= \ | ||
-I. \ | ||
-I@abs_top_srcdir@/lib \ | ||
-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 = @abs_top_srcdir@/lib/libsquish/libsquish.a -lSDL_image -lSDL -llzo2 | ||
LIBS += -L@abs_top_srcdir@/lib/libsquish -lsquish | ||
endif | ||
|
||
OBJS = \ | ||
SDL_anigif.o \ | ||
XBTFWriter.o \ | ||
XBMCTex.o \ | ||
md5.o \ | ||
@abs_top_srcdir@/xbmc/guilib/XBTF.o | ||
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) | ||
g++ $(DEFINES) $(CXXFLAGS) $(SRCS) $(LIBS) -o $(TARGET) | ||
clean: | ||
rm -f $(TARGET) | ||
else | ||
include @abs_top_srcdir@/Makefile.include | ||
|
||
$(TARGET): $(OBJS) | ||
$(CXX) $(CXXFLAGS) $(OBJS) $(LDFLAGS) $(LIBS) -o $(TARGET) | ||
$(TARGET): $(SRCS) | ||
$(CXX) $(CXXFLAGS) $(DEFINES) $(INCLUDES) $(SRCS) $(LDFLAGS) $(LIBS) -o $(TARGET) | ||
endif |
Oops, something went wrong.