Build with shared LZMA lib
This commit is contained in:
@@ -259,12 +259,6 @@
|
||||
<file name="${LEGACY_SRC_DIR}/common/poly2tri/Poly2Tri.cpp" />
|
||||
-->
|
||||
|
||||
<file name="${LEGACY_SRC_DIR}/lzma/LzFind.c" />
|
||||
<file name="${LEGACY_SRC_DIR}/lzma/LzmaDec.c" />
|
||||
<file name="${LEGACY_SRC_DIR}/lzma/LzmaEnc.c" />
|
||||
<file name="${LEGACY_SRC_DIR}/lzma/LzFindMt.c" if="windows" />
|
||||
<file name="${LEGACY_SRC_DIR}/lzma/Threads.c" if="windows" />
|
||||
|
||||
<file name="${HXCPP}/project/libs/zlib/ZLib.cpp" if="ios" />
|
||||
|
||||
</files>
|
||||
@@ -284,6 +278,7 @@
|
||||
<files id="native-toolkit-curl" if="LEGACY_CURL" />
|
||||
<files id="native-toolkit-jpeg" />
|
||||
<files id="native-toolkit-freetype" />
|
||||
<files id="native-toolkit-lzma" />
|
||||
<files id="native-toolkit-ogg" if="LEGACY_OPENAL" />
|
||||
<files id="native-toolkit-openal" if="LEGACY_OPENAL" unless="android || ios || blackberry || tizen" />
|
||||
<files id="native-toolkit-openal-android" if="android" />
|
||||
|
||||
@@ -14,18 +14,24 @@ namespace nme
|
||||
inline unsigned int READ_LE32(unsigned char *ptr) { return ((unsigned int)READ_LE16(ptr + 0) << 0) | ((unsigned int)READ_LE16(ptr + 2) << 16); }
|
||||
inline UInt64 READ_LE64(unsigned char *ptr) { return ((UInt64)READ_LE32(ptr + 0) << 0) | ((UInt64)READ_LE32(ptr + 4) << 32); }
|
||||
|
||||
//extern "C" {
|
||||
//SRes lzma_Progress(void *p, UInt64 inSize, UInt64 outSize) {
|
||||
//return SZ_OK;
|
||||
//}
|
||||
//
|
||||
//void *lzma_Alloc(void *p, size_t size) {
|
||||
//return malloc(size);
|
||||
//}
|
||||
//void lzma_Free(void *p, void *address) { /* address can be 0 */
|
||||
//if (address == NULL) return;
|
||||
//free(address);
|
||||
//}
|
||||
//}
|
||||
|
||||
extern "C" {
|
||||
SRes lzma_Progress(void *p, UInt64 inSize, UInt64 outSize) {
|
||||
return SZ_OK;
|
||||
}
|
||||
|
||||
void *lzma_Alloc(void *p, size_t size) {
|
||||
return malloc(size);
|
||||
}
|
||||
void lzma_Free(void *p, void *address) { /* address can be 0 */
|
||||
if (address == NULL) return;
|
||||
free(address);
|
||||
}
|
||||
SRes lzma_Progress(void *p, UInt64 inSize, UInt64 outSize);
|
||||
void *lzma_Alloc(void *p, size_t size);
|
||||
void lzma_Free(void *p, void *address);
|
||||
}
|
||||
|
||||
void Lzma::Encode(buffer input_buffer, buffer output_buffer)
|
||||
|
||||
Reference in New Issue
Block a user