Updated for lzma changes.
authorRyan C. Gordon <icculus@icculus.org>
Wed, 23 Jan 2008 05:00:07 +0000
changeset 919 932b44ae8335
parent 918 2c7c6c5c23e0
child 921 46119daaaee6
Updated for lzma changes.
CHANGELOG.txt
CMakeLists.txt
--- a/CHANGELOG.txt	Wed Jan 23 04:57:47 2008 +0000
+++ b/CHANGELOG.txt	Wed Jan 23 05:00:07 2008 +0000
@@ -2,6 +2,7 @@
  * CHANGELOG.
  */
 
+01222008 - Upgraded lzma sdk, lzma.c improvements (thanks, Dennis!).
 01212008 - Fixed HTTP header in physfshttpd.c. Fixed utf-8 to UCS-2 allocation
            size in Windows code.
 12112007 - Fixed incorrect directory test in Windows code (thanks, Buginator!).
--- a/CMakeLists.txt	Wed Jan 23 04:57:47 2008 +0000
+++ b/CMakeLists.txt	Wed Jan 23 05:00:07 2008 +0000
@@ -86,16 +86,17 @@
 )
 
 SET(LZMA_SRCS
-    lzma/7zBuffer.c
-    lzma/7zCrc.c
-    lzma/7zDecode.c
-    lzma/7zExtract.c
-    lzma/7zHeader.c
-    lzma/7zIn.c
-    lzma/7zItem.c
-    lzma/7zMethodID.c
-    lzma/LzmaDecode.c
-    lzma/LzmaStateDecode.c
+    lzma/C/7zCrc.c
+    lzma/C/Archive/7z/7zBuffer.c
+    lzma/C/Archive/7z/7zDecode.c
+    lzma/C/Archive/7z/7zExtract.c
+    lzma/C/Archive/7z/7zHeader.c
+    lzma/C/Archive/7z/7zIn.c
+    lzma/C/Archive/7z/7zItem.c
+    lzma/C/Archive/7z/7zMethodID.c
+    lzma/C/Compress/Branch/BranchX86.c
+    lzma/C/Compress/Branch/BranchX86_2.c
+    lzma/C/Compress/Lzma/LzmaDecode.c
 )
 
 IF(BEOS)
@@ -210,11 +211,6 @@
     ADD_DEFINITIONS(-DPHYSFS_SUPPORTS_7Z=1)
     # !!! FIXME: rename to 7z.c?
     SET(PHYSFS_SRCS ${PHYSFS_SRCS} ${LZMA_SRCS})
-    INCLUDE_DIRECTORIES(lzma)
-    ADD_DEFINITIONS(-D_LZMA_IN_CB=1)
-    ADD_DEFINITIONS(-D_LZMA_PROB32=1)
-    ADD_DEFINITIONS(-D_LZMA_SYSTEM_SIZE_T=1)
-    ADD_DEFINITIONS(-D_SZ_ONE_DIRECTORY=1)
 ENDIF(PHYSFS_ARCHIVE_7Z)
 
 OPTION(PHYSFS_ARCHIVE_GRP "Enable Build Engine GRP support" TRUE)