mirror of
https://github.com/glest/glest-source.git
synced 2025-09-01 20:12:40 +02:00
remove miniz and zlib from libzetaglest
This commit is contained in:
@@ -170,6 +170,27 @@ IF(BUILD_ZETAGLEST)
|
||||
SET(EXTERNAL_LIBS ${EXTERNAL_LIBS} ${IRCCLIENT_LIBRARY})
|
||||
endif()
|
||||
|
||||
message(STATUS "Searching for zlib")
|
||||
include(FindZLIB)
|
||||
IF (FORCE_EMBEDDED_LIBS OR NOT ZLIB_FOUND)
|
||||
# miniz is a library included with the ZG distribution. Not as
|
||||
# developed as zlib, but smaller, and uses the same function names
|
||||
# so basically a replacement for miniz. We may one day replace
|
||||
# miniz with the zlib sources
|
||||
SET(ZG_SOURCE_FILES ${ZG_SOURCE_FILES}
|
||||
${PROJECT_SOURCE_DIR}/external/miniz/miniz.c
|
||||
${PROJECT_SOURCE_DIR}/external/miniz/miniz_tdef.c
|
||||
${PROJECT_SOURCE_DIR}/external/miniz/miniz_tinfl.c)
|
||||
INCLUDE_DIRECTORIES(${PROJECT_SOURCE_DIR}/external/miniz)
|
||||
ELSE()
|
||||
if (ZLIB_FOUND)
|
||||
message(STATUS "Using external zlib")
|
||||
SET(EXTERNAL_LIBS ${EXTERNAL_LIBS} ${ZLIB_LIBRARIES})
|
||||
INCLUDE_DIRECTORIES(${ZLIB_INCLUDE_DIRS})
|
||||
add_definitions("-DHAVE_ZLIB")
|
||||
ENDIF()
|
||||
ENDIF()
|
||||
|
||||
SET(DIRS_WITH_SRC
|
||||
ai
|
||||
facilities
|
||||
|
@@ -27,7 +27,7 @@
|
||||
#ifdef HAVE_ZLIB
|
||||
#include <zlib.h>
|
||||
#else
|
||||
#include "miniz/miniz.h"
|
||||
#include "miniz.h"
|
||||
#endif
|
||||
|
||||
using namespace Shared::Util;
|
@@ -214,28 +214,7 @@ IF(BUILD_MODEL_VIEWER OR BUILD_MAP_EDITOR OR BUILD_ZETAGLEST)
|
||||
endif()
|
||||
endif()
|
||||
|
||||
message(STATUS "Searching for zlib")
|
||||
include(FindZLIB)
|
||||
IF (FORCE_EMBEDDED_LIBS OR NOT ZLIB_FOUND)
|
||||
SET(DIRS_WITH_SRC
|
||||
${DIRS_WITH_SRC}
|
||||
# miniz is a library included with the ZG distribution. Not as
|
||||
# developed as zlib, but smaller, and uses the same function names
|
||||
# so basically a replacement for miniz. We may one day replace
|
||||
# miniz with the zlib sources
|
||||
miniz)
|
||||
ELSE()
|
||||
if (ZLIB_FOUND)
|
||||
message(STATUS "Using external zlib")
|
||||
SET(EXTERNAL_LIBS ${EXTERNAL_LIBS} ${ZLIB_LIBRARIES})
|
||||
INCLUDE_DIRECTORIES(${ZLIB_INCLUDE_DIRS})
|
||||
add_definitions("-DHAVE_ZLIB")
|
||||
ENDIF()
|
||||
ENDIF()
|
||||
|
||||
SET(DIRS_WITH_SRC
|
||||
${DIRS_WITH_SRC}
|
||||
compression
|
||||
feathery_ftp
|
||||
glew
|
||||
graphics
|
||||
|
Reference in New Issue
Block a user