diff options
author | Pär Björklund <per.bjorklund@gmail.com> | 2016-05-22 14:01:24 +0200 |
---|---|---|
committer | Pär Björklund <per.bjorklund@gmail.com> | 2016-05-30 19:35:04 +0200 |
commit | e9b861f6ad3c87276853cb7ddcf10b67a91c3c99 (patch) | |
tree | 4d4e45a76a3acea24367cbff957a5fe08f9e16bc | |
parent | 11a639644aa51c411064aca1fb81cd78791f45ca (diff) |
Updated texturepacker to vs2015 and all libs with it, remove dependency on lzo in lib folder
make lzo non-optional (thanks Stefan Saraev)
Packaged a new build of texturepacker
-rw-r--r-- | .gitignore | 3 | ||||
-rw-r--r-- | lib/win32/liblzo/LZO-1.00.rar | bin | 160933 -> 0 bytes | |||
-rwxr-xr-x | lib/win32/liblzo/LZO1X.H | 127 | ||||
-rwxr-xr-x | lib/win32/liblzo/LZOCONF.H | 295 | ||||
-rwxr-xr-x | lib/win32/liblzo/lzo.lib | bin | 145110 -> 0 bytes | |||
-rw-r--r-- | project/BuildDependencies/scripts/0_package.list | 12 | ||||
-rw-r--r-- | tools/depends/native/TexturePacker/CMakeLists.txt | 2 | ||||
-rw-r--r-- | tools/depends/native/TexturePacker/src/Makefile.am | 2 | ||||
-rw-r--r-- | tools/depends/native/TexturePacker/src/TexturePacker.cpp | 21 | ||||
-rw-r--r-- | tools/depends/native/TexturePacker/src/Win32/TexturePacker.vcxproj | 41 | ||||
-rw-r--r-- | tools/depends/native/TexturePacker/src/Win32/TexturePacker.vcxproj.filters | 5 | ||||
-rw-r--r-- | tools/depends/native/TexturePacker/src/Win32/version.rc | bin | 4460 -> 5578 bytes | |||
-rw-r--r-- | xbmc/filesystem/XbtFile.cpp | 6 | ||||
-rw-r--r-- | xbmc/guilib/TextureBundleXBT.cpp | 6 |
14 files changed, 49 insertions, 471 deletions
diff --git a/.gitignore b/.gitignore index 838a08b654..687e6658f3 100644 --- a/.gitignore +++ b/.gitignore @@ -558,3 +558,6 @@ lib/addons/library.kodi.inputstream/project/VS2010Express/Debug lib/addons/library.kodi.inputstream/project/VS2010Express/Release /project/VS2010Express/XBMC for Windows.VC.db /project/VS2010Express/XBMC for Windows.VC.VC.opendb +tools/depends/native/TexturePacker/src/Win32/Debug/ +tools/depends/native/TexturePacker/src/Win32/Release/ +tools/depends/native/TexturePacker/src/Win32/TexturePacker.VC.db diff --git a/lib/win32/liblzo/LZO-1.00.rar b/lib/win32/liblzo/LZO-1.00.rar Binary files differdeleted file mode 100644 index 4644c51630..0000000000 --- a/lib/win32/liblzo/LZO-1.00.rar +++ /dev/null diff --git a/lib/win32/liblzo/LZO1X.H b/lib/win32/liblzo/LZO1X.H deleted file mode 100755 index 921edaad27..0000000000 --- a/lib/win32/liblzo/LZO1X.H +++ /dev/null @@ -1,127 +0,0 @@ -/* lzo1x.h -- public interface of the LZO1X compression algorithm - - This file is part of the LZO real-time data compression library. - - Copyright (C) 1997 Markus Franz Xaver Johannes Oberhumer - Copyright (C) 1996 Markus Franz Xaver Johannes Oberhumer - - The LZO library is free software; you can redistribute it and/or - modify it under the terms of the GNU General Public License as - published by the Free Software Foundation; either version 2 of - the License, or (at your option) any later version. - - The LZO library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. - - You should have received a copy of the GNU General Public License - along with the LZO library; see the file COPYING. - If not, write to the Free Software Foundation, Inc., - 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. - - Markus F.X.J. Oberhumer - markus.oberhumer@jk.uni-linz.ac.at - */ - - -#ifndef __LZO1X_H -#define __LZO1X_H - -#ifndef __LZOCONF_H -#include "lzoconf.h" -#endif - -#ifdef __cplusplus -extern "C" { -#endif - - -/*********************************************************************** -// -************************************************************************/ - -/* Memory required for the wrkmem parameter. - * When the required size is 0, you can also pass a NULL pointer. - */ - -#define LZO1X_MEM_COMPRESS ((lzo_uint) (16384L * sizeof(lzo_byte *))) -#define LZO1X_MEM_DECOMPRESS (0) -#define LZO1X_MEM_OPTIMIZE (0) - - -/* decompression */ -LZO_EXTERN(int) -lzo1x_decompress ( const lzo_byte *src, lzo_uint src_len, - lzo_byte *dst, lzo_uint *dst_len, - lzo_voidp wrkmem /* NOT USED */ ); - -/* safe decompression with overrun testing */ -LZO_EXTERN(int) -lzo1x_decompress_safe ( const lzo_byte *src, lzo_uint src_len, - lzo_byte *dst, lzo_uint *dst_len, - lzo_voidp wrkmem /* NOT USED */ ); - -/*********************************************************************** -// -************************************************************************/ - -LZO_EXTERN(int) -lzo1x_1_compress ( const lzo_byte *src, lzo_uint src_len, - lzo_byte *dst, lzo_uint *dst_len, - lzo_voidp wrkmem ); - - -/*********************************************************************** -// special compressor versions -************************************************************************/ - -/* this version needs only 8kB work memory */ -#define LZO1X_1_11_MEM_COMPRESS ((lzo_uint) (2048L * sizeof(lzo_byte *))) - -LZO_EXTERN(int) -lzo1x_1_11_compress ( const lzo_byte *src, lzo_uint src_len, - lzo_byte *dst, lzo_uint *dst_len, - lzo_voidp wrkmem ); - - -/* use this version if you need a little more compression speed */ -#define LZO1X_1_15_MEM_COMPRESS ((lzo_uint) (32768L * sizeof(lzo_byte *))) - -LZO_EXTERN(int) -lzo1x_1_15_compress ( const lzo_byte *src, lzo_uint src_len, - lzo_byte *dst, lzo_uint *dst_len, - lzo_voidp wrkmem ); - - -/*********************************************************************** -// better compression ratio at the cost of more memory and time -************************************************************************/ - -#define LZO1X_999_MEM_COMPRESS ((lzo_uint) (14 * 16384L * sizeof(short))) - -#if !defined(LZO_999_UNSUPPORTED) -LZO_EXTERN(int) -lzo1x_999_compress ( const lzo_byte *src, lzo_uint src_len, - lzo_byte *dst, lzo_uint *dst_len, - lzo_voidp wrkmem ); -#endif - - -/*********************************************************************** -// optimize a compressed data block -************************************************************************/ - -LZO_EXTERN(int) -lzo1x_optimize ( lzo_byte *in , lzo_uint in_len, - lzo_byte *out, lzo_uint *out_len, - lzo_voidp wrkmem ); - - - -#ifdef __cplusplus -} /* extern "C" */ -#endif - -#endif /* already included */ - diff --git a/lib/win32/liblzo/LZOCONF.H b/lib/win32/liblzo/LZOCONF.H deleted file mode 100755 index a977e44987..0000000000 --- a/lib/win32/liblzo/LZOCONF.H +++ /dev/null @@ -1,295 +0,0 @@ -/* lzoconf.h -- configuration for the LZO real-time data compression library - - This file is part of the LZO real-time data compression library. - - Copyright (C) 1997 Markus Franz Xaver Johannes Oberhumer - Copyright (C) 1996 Markus Franz Xaver Johannes Oberhumer - - The LZO library is free software; you can redistribute it and/or - modify it under the terms of the GNU General Public License as - published by the Free Software Foundation; either version 2 of - the License, or (at your option) any later version. - - The LZO library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. - - You should have received a copy of the GNU General Public License - along with the LZO library; see the file COPYING. - If not, write to the Free Software Foundation, Inc., - 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. - - Markus F.X.J. Oberhumer - markus.oberhumer@jk.uni-linz.ac.at - http://www.infosys.tuwien.ac.at/Staff/lux/marco/lzo.html - */ - - -#ifndef __LZOCONF_H -#define __LZOCONF_H - -#define LZO_VERSION 0x1000 -#define LZO_VERSION_STRING "1.00" -#define LZO_VERSION_DATE "Jul 13 1997" - -/* internal Autoconf configuration file - only used when building LZO */ -#if defined(LZO_HAVE_CONFIG_H) -# include <config.h> -#endif - -/* LZO requires a conforming <limits.h> */ -#include <limits.h> -#if !defined(CHAR_BIT) || (CHAR_BIT != 8) -# error invalid CHAR_BIT -#endif -#if !defined(UCHAR_MAX) || !defined(UINT_MAX) || !defined(ULONG_MAX) -# error check your compiler installation -#endif - -#ifdef __cplusplus -extern "C" { -#endif - - -/*********************************************************************** -// architecture defines -************************************************************************/ - -#if defined(__WINDOWS__) || defined(_WINDOWS) || defined(_Windows) -# define __LZO_WIN -#elif defined(__WIN32__) || defined(_WIN32) || defined(WIN32) -# define __LZO_WIN -#elif defined(__NT__) || defined(__WINDOWS_386__) -# define __LZO_WIN -#elif defined(__DOS__) || defined(__MSDOS__) || defined(MSDOS) -# define __LZO_DOS -#endif - -#if (UINT_MAX < 0xffffffffL) -# if defined(__LZO_WIN) -# define __LZO_WIN16 -# elif defined(__LZO_DOS) -# define __LZO_DOS16 -# elif defined(__TOS__) -# define __LZO_TOS16 -# else -# error 16 bit target not supported -# endif -#endif - -#if !defined(__LZO_i386) -# if defined(__LZO_DOS) || defined(__LZO_WIN16) -# define __LZO_i386 -# elif defined(__i386__) || defined(__386__) || defined(_M_IX86) -# define __LZO_i386 -# endif -#endif - - -/*********************************************************************** -// integral and pointer types -************************************************************************/ - -/* Integral types with 32 bits or more */ -#if !defined(LZO_UINT32_MAX) -# if (UINT_MAX >= 0xffffffffL) - typedef unsigned int lzo_uint32; - typedef int lzo_int32; -# define LZO_UINT32_MAX UINT_MAX -# elif (ULONG_MAX >= 0xffffffffL) - typedef unsigned long lzo_uint32; - typedef long lzo_int32; -# define LZO_UINT32_MAX ULONG_MAX -# else -# error lzo_uint32 -# endif -#endif - -/* lzo_uint is used like size_t */ -#if !defined(LZO_UINT_MAX) -# if (UINT_MAX >= 0xffffffffL) - typedef unsigned int lzo_uint; - typedef int lzo_int; -# define LZO_UINT_MAX UINT_MAX -# elif (ULONG_MAX >= 0xffffffffL) - typedef unsigned long lzo_uint; - typedef long lzo_int; -# define LZO_UINT_MAX ULONG_MAX -# else -# error lzo_uint -# endif -#endif - - -/* Memory model that allows to access memory at offsets of lzo_uint. - * `Huge' pointers (16 bit DOS/Windows) are somewhat slow, but they - * work fine and I really don't care about 16 bit compiler - * optimizations nowadays. - */ -#if !defined(__LZO_MMODEL) -# if (LZO_UINT_MAX <= UINT_MAX) -# define __LZO_MMODEL -# elif defined(__LZO_DOS16) || defined(__LZO_WIN16) -# define __LZO_MMODEL __huge -# define LZO_999_UNSUPPORTED -# elif defined(__LZO_TOS16) -# define __LZO_MMODEL -# else -# error __LZO_MMODEL -# endif -#endif - -/* no typedef here because of const-pointer issues */ -#define lzo_byte unsigned char __LZO_MMODEL -#define lzo_bytep unsigned char __LZO_MMODEL * -#define lzo_voidp void __LZO_MMODEL * -#define lzo_shortp short __LZO_MMODEL * -#define lzo_ushortp unsigned short __LZO_MMODEL * -#define lzo_uint32p lzo_uint32 __LZO_MMODEL * -#define lzo_int32p lzo_int32 __LZO_MMODEL * -#define lzo_uintp lzo_uint __LZO_MMODEL * -#define lzo_intp lzo_int __LZO_MMODEL * -#define lzo_voidpp lzo_voidp __LZO_MMODEL * -#define lzo_bytepp lzo_bytep __LZO_MMODEL * -#define lzo_charp char __LZO_MMODEL * - -/* improve code readability */ -typedef int lzo_bool; - - -/*********************************************************************** -// function types -************************************************************************/ - -/* linkage */ -#if !defined(__LZO_EXTERN_C) -# ifdef __cplusplus -# define __LZO_EXTERN_C extern "C" -# else -# define __LZO_EXTERN_C extern -# endif -#endif - -/* calling conventions */ -#if !defined(__LZO_ENTRY) -# if defined(__LZO_DOS16) || defined(__LZO_WIN16) -# define __LZO_ENTRY __far __cdecl -# elif defined(__LZO_i386) && defined(_MSC_VER) -# define __LZO_ENTRY __cdecl -# elif defined(__LZO_i386) && defined(__WATCOMC__) -# define __LZO_ENTRY __near __cdecl -# else -# define __LZO_ENTRY -# endif -#endif - -/* DLL export information */ -#if !defined(__LZO_EXPORT1) -# define __LZO_EXPORT1 -#endif -#if !defined(__LZO_EXPORT2) -# define __LZO_EXPORT2 -#endif - -#if !defined(LZO_PUBLIC) -# define LZO_PUBLIC(_rettype) __LZO_EXPORT1 _rettype __LZO_EXPORT2 __LZO_ENTRY -#endif -#if !defined(LZO_EXTERN) -# define LZO_EXTERN(_rettype) __LZO_EXTERN_C LZO_PUBLIC(_rettype) -#endif -#if !defined(LZO_PRIVATE) -# define LZO_PRIVATE(_rettype) static _rettype __LZO_ENTRY -#endif - - -typedef int -(__LZO_ENTRY *lzo_compress_t) ( const lzo_byte *src, lzo_uint src_len, - lzo_byte *dst, lzo_uint *dst_len, - lzo_voidp wrkmem ); - -typedef int -(__LZO_ENTRY *lzo_decompress_t) ( const lzo_byte *src, lzo_uint src_len, - lzo_byte *dst, lzo_uint *dst_len, - lzo_voidp wrkmem ); - -typedef int -(__LZO_ENTRY *lzo_optimize_t) ( lzo_byte *src, lzo_uint src_len, - lzo_byte *dst, lzo_uint *dst_len, - lzo_voidp wrkmem ); - - -/* a progress indicator callback function */ -typedef void -(__LZO_ENTRY *lzo_progress_callback_t)(lzo_uint,lzo_uint); - - -/*********************************************************************** -// error codes and prototypes -************************************************************************/ - -/* Error codes for the compression/decompression functions. Negative - * values are errors, positive values will be used for special but - * normal events. - */ -#define LZO_E_OK 0 -#define LZO_E_ERROR (-1) -#define LZO_E_OUT_OF_MEMORY (-2) /* not used right now */ -#define LZO_E_NOT_COMPRESSIBLE (-3) /* not used right now */ -#define LZO_E_INPUT_OVERRUN (-4) -#define LZO_E_OUTPUT_OVERRUN (-5) -#define LZO_E_LOOKBEHIND_OVERRUN (-6) -#define LZO_E_EOF_NOT_FOUND (-7) -#define LZO_E_INPUT_NOT_CONSUMED (-8) - - -/* lzo_init() should be the first function you call. - * Check the return code ! - * - * lzo_init() is a macro to allow checking that the library and the - * compiler's view of various types are consistent. - */ -#define lzo_init() __lzo_init(LZO_VERSION,(int)sizeof(short),(int)sizeof(int),\ - (int)sizeof(long),(int)sizeof(lzo_uint32),(int)sizeof(lzo_uint),\ - (int)sizeof(lzo_voidp),(int)sizeof(lzo_compress_t)) -LZO_EXTERN(int) __lzo_init(unsigned,int,int,int,int,int,int,int); - -/* version functions (useful for shared libraries) */ -LZO_EXTERN(unsigned) lzo_version(void); -LZO_EXTERN(const char *) lzo_version_string(void); -LZO_EXTERN(const char *) lzo_version_date(void); -LZO_EXTERN(const lzo_charp) _lzo_version_string(void); -LZO_EXTERN(const lzo_charp) _lzo_version_date(void); - -/* string functions */ -LZO_EXTERN(int) -lzo_memcmp(const lzo_voidp _s1, const lzo_voidp _s2, lzo_uint _len); -LZO_EXTERN(lzo_voidp) -lzo_memcpy(lzo_voidp _dest, const lzo_voidp _src, lzo_uint _len); -LZO_EXTERN(lzo_voidp) -lzo_memmove(lzo_voidp _dest, const lzo_voidp _src, lzo_uint _len); -LZO_EXTERN(lzo_voidp) -lzo_memset(lzo_voidp _s, int _c, lzo_uint _len); - -/* checksum functions */ -LZO_EXTERN(lzo_uint32) -lzo_adler32(lzo_uint32 _adler, const lzo_byte *_buf, lzo_uint _len); -LZO_EXTERN(lzo_uint32) -lzo_crc32(lzo_uint32 _c, const lzo_byte *_buf, lzo_uint _len); - -/* misc. */ -LZO_EXTERN(lzo_bool) lzo_assert(int _expr); -LZO_EXTERN(int) _lzo_config_check(void); - -/* align a char pointer on a boundary that is a multiple of `size' */ -LZO_EXTERN(unsigned) __lzo_align_gap(const lzo_voidp _ptr, lzo_uint _size); -#define LZO_ALIGN(_ptr,_size) \ - ((_ptr) + (lzo_uint) __lzo_align_gap((const lzo_voidp)(_ptr),(lzo_uint)(_size))) - - -#ifdef __cplusplus -} /* extern "C" */ -#endif - -#endif /* already included */ - diff --git a/lib/win32/liblzo/lzo.lib b/lib/win32/liblzo/lzo.lib Binary files differdeleted file mode 100755 index 6536dea857..0000000000 --- a/lib/win32/liblzo/lzo.lib +++ /dev/null diff --git a/project/BuildDependencies/scripts/0_package.list b/project/BuildDependencies/scripts/0_package.list index f7bc7b98e6..73e8f623d0 100644 --- a/project/BuildDependencies/scripts/0_package.list +++ b/project/BuildDependencies/scripts/0_package.list @@ -13,7 +13,7 @@ dnssd-541-win32.zip doxygen-1.8.2-win32.7z fontconfig-2.8.0-win32.7z freetype-2.4.6-win32-3.7z -giflib-5.1.1-win32.7z +giflib-5.1.4-win32-vc140.7z jsonschemabuilder-1.0.0-win32-3.7z libass-0.12.1-win32.7z libbluray-0.8.1-win32-vc120.7z @@ -22,12 +22,11 @@ libcec-3.0.0-win32-2.7z libexpat_2.0.1-win32.7z libfribidi-0.19.2-win32.7z libiconv-1.14-win32-vc140-v2.7z -libjpeg-turbo-1.2.0-win32.7z -liblzo-2.04-win32.7z +libjpeg-turbo-1.4.90-win32-vc140.7z libmicrohttpd-0.9.48-win32-vc140-v2.7z libnfs-1.10.0-win32.7z libplist-1.7-win32-3.7z -libpng-1.5.13-win32.7z +libpng-1.6.21-win32-vc140.7z librtmp-20150114-git-a107ce-win32.7z libshairplay-52fd9db-win32.7z libssh-0.5.0-1-win32.zip @@ -35,6 +34,7 @@ libxml2-2.7.8_1-win32.7z libxslt-1.1.26_1-win32.7z libyajl-2.0.1-win32.7z libzlib-vc100-1.2.5-win32.7z +lzo-2.09-win32-vc140-v3.7z mysql-connector-c-6.1.6-win32-vc140.7z openssl-1.0.2g-win32-vc140-v2.7z pcre-8.37-win32-vc140-v3.7z @@ -43,6 +43,6 @@ python-2.7.11-win32-vc140-v2.7z sqlite-3.10.2-win32-vc140.7z swig-2.0.7-win32-1.7z taglib-1.11-win32-vc140-v2.7z -texturepacker-1.1.0-win32.7z +texturepacker-1.1.1-win32.7z tinyxmlstl-2.6.2-win32-vc140-v2.7z -zlib-1.2.8-win32-vc140-v2.7z +zlib-1.2.8-win32-vc140-v3.7z diff --git a/tools/depends/native/TexturePacker/CMakeLists.txt b/tools/depends/native/TexturePacker/CMakeLists.txt index 9470bd95f4..3f8257b007 100644 --- a/tools/depends/native/TexturePacker/CMakeLists.txt +++ b/tools/depends/native/TexturePacker/CMakeLists.txt @@ -53,4 +53,4 @@ target_link_libraries(TexturePacker ${PNG_LIBRARIES} ${JPEG_LIBRARIES} ${LZO2_LIBRARIES}) -target_compile_options(TexturePacker PRIVATE ${ARCH_DEFINES} -DUSE_LZO_PACKING) +target_compile_options(TexturePacker PRIVATE ${ARCH_DEFINES}) diff --git a/tools/depends/native/TexturePacker/src/Makefile.am b/tools/depends/native/TexturePacker/src/Makefile.am index d075290c5f..c2ac65b825 100644 --- a/tools/depends/native/TexturePacker/src/Makefile.am +++ b/tools/depends/native/TexturePacker/src/Makefile.am @@ -1,6 +1,6 @@ AUTOMAKE_OPTIONS = subdir-objects -AM_CFLAGS = -DTARGET_POSIX -DUSE_LZO_PACKING +AM_CFLAGS = -DTARGET_POSIX AM_CFLAGS += @EXTRA_DEFINES@ AM_CXXFLAGS = $(AM_CFLAGS) -std=c++0x diff --git a/tools/depends/native/TexturePacker/src/TexturePacker.cpp b/tools/depends/native/TexturePacker/src/TexturePacker.cpp index 38628f59fe..ba618be574 100644 --- a/tools/depends/native/TexturePacker/src/TexturePacker.cpp +++ b/tools/depends/native/TexturePacker/src/TexturePacker.cpp @@ -44,13 +44,7 @@ #define strncasecmp _strnicmp #endif -#ifdef USE_LZO_PACKING -#ifdef TARGET_WINDOWS -#include "win32/liblzo/LZO1X.H" -#else #include <lzo/lzo1x.h> -#endif -#endif using namespace std; @@ -143,7 +137,6 @@ void CreateSkeletonHeader(CXBTFWriter& xbtfWriter, std::string fullPath) CXBTFFrame appendContent(CXBTFWriter &writer, int width, int height, unsigned char *data, unsigned int size, unsigned int format, bool hasAlpha, unsigned int flags) { CXBTFFrame frame; -#ifdef USE_LZO_PACKING lzo_uint packedSize = size; if ((flags & FLAGS_USE_LZO) == FLAGS_USE_LZO) @@ -178,9 +171,6 @@ CXBTFFrame appendContent(CXBTFWriter &writer, int width, int height, unsigned ch } } else -#else - unsigned int packedSize = size; -#endif { writer.AppendContent(data, size); } @@ -229,7 +219,6 @@ void Usage() puts(" -input <dir> Input directory. Default: current dir"); puts(" -output <dir> Output directory/filename. Default: Textures.xbt"); puts(" -dupecheck Enable duplicate file detection. Reduces output file size. Default: off"); - puts(" -disable_lzo Disable lz0 packing"); } static bool checkDupe(struct MD5Context* ctx, @@ -357,19 +346,15 @@ int createBundle(const std::string& InputDir, const std::string& OutputFile, dou int main(int argc, char* argv[]) { -#ifdef USE_LZO_PACKING if (lzo_init() != LZO_E_OK) return 1; -#endif bool valid = false; unsigned int flags = 0; bool dupecheck = false; CmdLineArgs args(argc, (const char**)argv); // setup some defaults, lzo packing, -#ifdef USE_LZO_PACKING flags = FLAGS_USE_LZO; -#endif if (args.size() == 1) { @@ -405,12 +390,6 @@ int main(int argc, char* argv[]) while ((c = (char *)strchr(OutputFilename.c_str(), '\\')) != NULL) *c = '/'; #endif } -#ifdef USE_LZO_PACKING - else if (!platform_stricmp(args[i], "-disable_lzo")) - { - flags &= ~FLAGS_USE_LZO; - } -#endif else { fprintf(stderr, "Unrecognized command line flag: %s\n", args[i]); diff --git a/tools/depends/native/TexturePacker/src/Win32/TexturePacker.vcxproj b/tools/depends/native/TexturePacker/src/Win32/TexturePacker.vcxproj index e0a2f0df6c..378f1b798d 100644 --- a/tools/depends/native/TexturePacker/src/Win32/TexturePacker.vcxproj +++ b/tools/depends/native/TexturePacker/src/Win32/TexturePacker.vcxproj @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="utf-8"?>
-<Project DefaultTargets="Build" ToolsVersion="12.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+<Project DefaultTargets="Build" ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<ItemGroup Label="ProjectConfigurations">
<ProjectConfiguration Include="Debug|Win32">
<Configuration>Debug</Configuration>
@@ -20,12 +20,12 @@ <ConfigurationType>Application</ConfigurationType>
<CharacterSet>NotSet</CharacterSet>
<WholeProgramOptimization>true</WholeProgramOptimization>
- <PlatformToolset>v120</PlatformToolset>
+ <PlatformToolset>v140</PlatformToolset>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
<ConfigurationType>Application</ConfigurationType>
<CharacterSet>NotSet</CharacterSet>
- <PlatformToolset>v120</PlatformToolset>
+ <PlatformToolset>v140</PlatformToolset>
</PropertyGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
<ImportGroup Label="ExtensionSettings">
@@ -45,31 +45,36 @@ <OutDir Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">$(SolutionDir)$(Configuration)\</OutDir>
<IntDir Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">$(Configuration)\</IntDir>
<LinkIncremental Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">false</LinkIncremental>
- <IncludePath Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">$(VCInstallDir)include;$(VCInstallDir)atlmfc\include;$(WindowsSdkDir)include;$(FrameworkSDKDir)\include;..\..\..\..\..\..\project\BuildDependencies\include;$(IncludePath)</IncludePath>
- <LibraryPath Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">$(VCInstallDir)lib;$(VCInstallDir)atlmfc\lib;$(WindowsSdkDir)lib;$(FrameworkSDKDir)\lib;..\..\..\..\..\..\project\BuildDependencies\lib</LibraryPath>
- <IncludePath Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">$(VCInstallDir)include;$(VCInstallDir)atlmfc\include;$(WindowsSdkDir)include;$(FrameworkSDKDir)\include;..\..\..\..\..\..\project\BuildDependencies\include;$(IncludePath)</IncludePath>
- <LibraryPath Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">$(VCInstallDir)lib;$(VCInstallDir)atlmfc\lib;$(WindowsSdkDir)lib;$(FrameworkSDKDir)\lib;..\..\..\..\..\..\project\BuildDependencies\lib</LibraryPath>
+ </PropertyGroup>
+ <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
+ <IncludePath>$(VC_IncludePath);$(WindowsSDK_IncludePath);..\..\..\..\..\..\project\BuildDependencies\include</IncludePath>
+ <LibraryPath>$(VC_LibraryPath_x86);$(WindowsSDK_LibraryPath_x86);$(NETFXKitsDir)Lib\um\x86;..\..\..\..\..\..\project\BuildDependencies\lib</LibraryPath>
+ </PropertyGroup>
+ <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
+ <IncludePath>$(VC_IncludePath);$(WindowsSDK_IncludePath);..\..\..\..\..\..\project\BuildDependencies\include</IncludePath>
+ <LibraryPath>$(VC_LibraryPath_x86);$(WindowsSDK_LibraryPath_x86);$(NETFXKitsDir)Lib\um\x86;..\..\..\..\..\..\project\BuildDependencies\lib</LibraryPath>
</PropertyGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
<ClCompile>
<Optimization>Disabled</Optimization>
- <AdditionalIncludeDirectories>.;..;..\decoder;..\..\..\..\..\..\xbmc;..\..\..\..\..\..\lib;$(WindowsSDK_IncludePath);%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
+ <AdditionalIncludeDirectories>.;..;..\decoder;..\..\..\..\..\..\xbmc;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
<PreprocessorDefinitions>WIN32;_DEBUG;_CONSOLE;TARGET_WINDOWS;_ITERATOR_DEBUG_LEVEL=0;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<MinimalRebuild>true</MinimalRebuild>
<BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
- <RuntimeLibrary>MultiThreadedDebug</RuntimeLibrary>
+ <RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary>
<PrecompiledHeader>
</PrecompiledHeader>
<WarningLevel>Level3</WarningLevel>
<DebugInformationFormat>EditAndContinue</DebugInformationFormat>
+ <ProgramDataBaseFileName>$(IntDir)$(TargetName).pdb</ProgramDataBaseFileName>
</ClCompile>
<Link>
- <AdditionalDependencies>..\..\..\..\..\..\project\BuildDependencies\lib\jpeg-static.lib;..\..\..\..\..\..\project\BuildDependencies\lib\libpng15d.lib;..\..\..\..\..\..\project\BuildDependencies\lib\libgif-static.lib;..\..\..\..\..\..\project\BuildDependencies\lib\zlibd-static.lib;..\..\..\..\..\..\lib\win32\liblzo\lzo.lib;%(AdditionalDependencies)</AdditionalDependencies>
+ <AdditionalDependencies>jpeg-staticd.lib;libpng16_staticd.lib;giflibd.lib;zlibstaticd.lib;lzo2d.lib;%(AdditionalDependencies)</AdditionalDependencies>
<IgnoreSpecificDefaultLibraries>libcmtd.lib;%(IgnoreSpecificDefaultLibraries)</IgnoreSpecificDefaultLibraries>
<GenerateDebugInformation>true</GenerateDebugInformation>
<SubSystem>Console</SubSystem>
<TargetMachine>MachineX86</TargetMachine>
- <AdditionalLibraryDirectories>$(WindowsSDK_LibraryPath_x86);%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
+ <AdditionalLibraryDirectories>%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
<ImageHasSafeExceptionHandlers>false</ImageHasSafeExceptionHandlers>
</Link>
</ItemDefinitionGroup>
@@ -77,24 +82,25 @@ <ClCompile>
<Optimization>MaxSpeed</Optimization>
<IntrinsicFunctions>true</IntrinsicFunctions>
- <AdditionalIncludeDirectories>.;..;..\decoder;..\..\..\..\..\..\xbmc;;$(WindowsSDK_IncludePath);%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- <PreprocessorDefinitions>WIN32;NDEBUG;_CONSOLE;USE_LZO_PACKING;TARGET_WINDOWS;_ITERATOR_DEBUG_LEVEL=0;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <RuntimeLibrary>MultiThreaded</RuntimeLibrary>
+ <AdditionalIncludeDirectories>.;..;..\decoder;..\..\..\..\..\..\xbmc;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
+ <PreprocessorDefinitions>WIN32;NDEBUG;_CONSOLE;TARGET_WINDOWS;_ITERATOR_DEBUG_LEVEL=0;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
+ <RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary>
<FunctionLevelLinking>true</FunctionLevelLinking>
<PrecompiledHeader>
</PrecompiledHeader>
<WarningLevel>Level3</WarningLevel>
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
+ <ProgramDataBaseFileName>$(IntDir)$(TargetName).pdb</ProgramDataBaseFileName>
</ClCompile>
<Link>
- <AdditionalDependencies>..\..\..\..\..\..\project\BuildDependencies\lib\jpeg-static.lib;..\..\..\..\..\..\project\BuildDependencies\lib\libpng15.lib;..\..\..\..\..\..\project\BuildDependencies\lib\libgif-static.lib;..\..\..\..\..\..\project\BuildDependencies\lib\zlib-static.lib;..\..\..\..\..\..\lib\win32\liblzo\lzo.lib;%(AdditionalDependencies)</AdditionalDependencies>
+ <AdditionalDependencies>jpeg-static.lib;libpng16_static.lib;giflib.lib;zlibstatic.lib;lzo2.lib;%(AdditionalDependencies)</AdditionalDependencies>
<IgnoreSpecificDefaultLibraries>libc.lib;%(IgnoreSpecificDefaultLibraries)</IgnoreSpecificDefaultLibraries>
<GenerateDebugInformation>true</GenerateDebugInformation>
<SubSystem>Console</SubSystem>
<OptimizeReferences>true</OptimizeReferences>
<EnableCOMDATFolding>true</EnableCOMDATFolding>
<TargetMachine>MachineX86</TargetMachine>
- <AdditionalLibraryDirectories>$(WindowsSDK_LibraryPath_x86);%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
+ <AdditionalLibraryDirectories>%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
<ImageHasSafeExceptionHandlers>false</ImageHasSafeExceptionHandlers>
</Link>
</ItemDefinitionGroup>
@@ -123,6 +129,7 @@ <ClInclude Include="..\md5.h" />
<ClInclude Include="..\..\..\..\..\..\xbmc\guilib\XBTF.h" />
<ClInclude Include="..\XBTFWriter.h" />
+ <ClInclude Include="resource.h" />
</ItemGroup>
<ItemGroup>
<None Include="ReadMe.txt" />
@@ -133,4 +140,4 @@ <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
<ImportGroup Label="ExtensionTargets">
</ImportGroup>
-</Project>
+</Project>
\ No newline at end of file diff --git a/tools/depends/native/TexturePacker/src/Win32/TexturePacker.vcxproj.filters b/tools/depends/native/TexturePacker/src/Win32/TexturePacker.vcxproj.filters index 0d9ffaaff5..f045d9cfab 100644 --- a/tools/depends/native/TexturePacker/src/Win32/TexturePacker.vcxproj.filters +++ b/tools/depends/native/TexturePacker/src/Win32/TexturePacker.vcxproj.filters @@ -86,6 +86,9 @@ <ClInclude Include="..\DecoderManager.h">
<Filter>Source Files</Filter>
</ClInclude>
+ <ClInclude Include="resource.h">
+ <Filter>Header Files</Filter>
+ </ClInclude>
</ItemGroup>
<ItemGroup>
<None Include="ReadMe.txt" />
@@ -95,4 +98,4 @@ <Filter>Resource Files</Filter>
</ResourceCompile>
</ItemGroup>
-</Project>
+</Project>
\ No newline at end of file diff --git a/tools/depends/native/TexturePacker/src/Win32/version.rc b/tools/depends/native/TexturePacker/src/Win32/version.rc Binary files differindex 2cbd95df9f..2c24c37f7f 100644 --- a/tools/depends/native/TexturePacker/src/Win32/version.rc +++ b/tools/depends/native/TexturePacker/src/Win32/version.rc diff --git a/xbmc/filesystem/XbtFile.cpp b/xbmc/filesystem/XbtFile.cpp index 7839276afe..87b3cad405 100644 --- a/xbmc/filesystem/XbtFile.cpp +++ b/xbmc/filesystem/XbtFile.cpp @@ -22,7 +22,11 @@ #include <string.h> #ifdef TARGET_WINDOWS -#pragma comment(lib,"liblzo2.lib") +#ifdef NDEBUG +#pragma comment(lib,"lzo2.lib") +#else +#pragma comment(lib, "lzo2-no_idb.lib") +#endif #endif #include <lzo/lzo1x.h> diff --git a/xbmc/guilib/TextureBundleXBT.cpp b/xbmc/guilib/TextureBundleXBT.cpp index 4c06ed3dd5..1055c84bc1 100644 --- a/xbmc/guilib/TextureBundleXBT.cpp +++ b/xbmc/guilib/TextureBundleXBT.cpp @@ -33,7 +33,11 @@ #include <lzo/lzo1x.h> #ifdef TARGET_WINDOWS -#pragma comment(lib,"liblzo2.lib") +#ifdef NDEBUG +#pragma comment(lib,"lzo2.lib") +#else +#pragma comment(lib, "lzo2-no_idb.lib") +#endif #endif CTextureBundleXBT::CTextureBundleXBT(void) |