diff options
author | Andrei Karas <akaras@inbox.ru> | 2017-03-05 01:20:25 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2017-03-05 01:20:25 +0300 |
commit | 4a1b96155d76c8c6245cebcf876cc169fe63ce6a (patch) | |
tree | 000ba453c74bdb5a44ba73a1805db2b683eef8ca | |
parent | 31b067a6de1ae22a241c19e85f1eff7a51f4ce48 (diff) | |
download | manaverse-4a1b96155d76c8c6245cebcf876cc169fe63ce6a.tar.gz manaverse-4a1b96155d76c8c6245cebcf876cc169fe63ce6a.tar.bz2 manaverse-4a1b96155d76c8c6245cebcf876cc169fe63ce6a.tar.xz manaverse-4a1b96155d76c8c6245cebcf876cc169fe63ce6a.zip |
Remove physfs from cmake and switch to using virtfs.
-rw-r--r-- | CMake/Modules/FindENet.cmake | 52 | ||||
-rw-r--r-- | src/CMakeLists.txt | 54 |
2 files changed, 37 insertions, 69 deletions
diff --git a/CMake/Modules/FindENet.cmake b/CMake/Modules/FindENet.cmake deleted file mode 100644 index 98da51a3d..000000000 --- a/CMake/Modules/FindENet.cmake +++ /dev/null @@ -1,52 +0,0 @@ -# - Try to find enet -# Once done this will define -# -# ENET_FOUND - system has enet -# ENET_INCLUDE_DIR - the enet include directory -# ENET_LIBRARIES - the libraries needed to use enet -# ENET_DEFINITIONS - Compiler switches required for using enet - -IF (ENet_INCLUDE_DIR AND ENet_LIBRARY) - SET(ENet_FIND_QUIETLY TRUE) -ENDIF (ENet_INCLUDE_DIR AND ENet_LIBRARY) - -# for Windows we rely on the environement variables -# %INCLUDE% and %LIB%; FIND_LIBRARY checks %LIB% -# automatically on Windows -IF(WIN32) - FIND_PATH(ENet_INCLUDE_DIR enet/enet.h - $ENV{INCLUDE} - ) - FIND_LIBRARY(ENet_LIBRARY - NAMES enet - ) -ELSE() - FIND_PATH(ENet_INCLUDE_DIR enet/enet.h - /usr/include - /usr/local/include - ) - FIND_LIBRARY(ENet_LIBRARY - NAMES enet - PATHS /usr/lib /usr/local/lib - ) -ENDIF() - -IF (ENet_INCLUDE_DIR AND ENet_LIBRARY) - SET(ENET_FOUND TRUE) - SET(ENET_INCLUDE_DIR ${ENet_INCLUDE_DIR}) - SET(ENET_LIBRARIES ${ENet_LIBRARY}) -ELSE () - SET(ENET_FOUND FALSE) -ENDIF () - -IF (ENET_FOUND) - IF (NOT ENet_FIND_QUIETLY) - MESSAGE(STATUS "Found enet: ${ENet_LIBRARY}") - ENDIF (NOT ENet_FIND_QUIETLY) -ELSE (ENET_FOUND) - IF (ENet_FIND_REQUIRED) - MESSAGE(FATAL_ERROR "Could NOT find enet") - ENDIF (ENet_FIND_REQUIRED) -ENDIF (ENET_FOUND) - -MARK_AS_ADVANCED(ENet_INCLUDE_DIR ENet_LIBRARY) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index bf2e2e46d..07713f159 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -6,7 +6,6 @@ FIND_PACKAGE(SDL_ttf REQUIRED) FIND_PACKAGE(SDL_gfx REQUIRED) FIND_PACKAGE(CURL REQUIRED) FIND_PACKAGE(LibXml2 REQUIRED) -FIND_PACKAGE(PhysFS REQUIRED) FIND_PACKAGE(PNG REQUIRED) FIND_PACKAGE(Gettext REQUIRED) FIND_PACKAGE(ZLIB REQUIRED) @@ -30,7 +29,7 @@ IF (ENABLE_TMWA) SET(FLAGS "${FLAGS} -DTMWA_SUPPORT=1") ENDIF() -SET(FLAGS "${FLAGS} -DENABLE_LIBXML -DENABLE_ASSERTS -DUSE_PHYSFS") +SET(FLAGS "${FLAGS} -DENABLE_LIBXML -DENABLE_ASSERTS") IF (CMAKE_BUILD_TYPE) STRING(TOLOWER ${CMAKE_BUILD_TYPE} CMAKE_BUILD_TYPE_TOLOWER) @@ -77,7 +76,6 @@ INCLUDE_DIRECTORIES( ${SDLTTF_INCLUDE_DIR} ${SDLGFX_INCLUDE_DIR} ${PNG_INCLUDE_DIR} - ${PHYSFS_INCLUDE_DIR} ${CURL_INCLUDE_DIR} ${LIBXML2_INCLUDE_DIR} ) @@ -99,8 +97,6 @@ IF (MINGW) ENDIF() # Fix some stuff that gets not hidden by mainline modules -MARK_AS_ADVANCED(PHYSFS_INCLUDE_DIR) -MARK_AS_ADVANCED(PHYSFS_LIBRARY) MARK_AS_ADVANCED(SDLIMAGE_INCLUDE_DIR) MARK_AS_ADVANCED(SDLIMAGE_LIBRARY) MARK_AS_ADVANCED(SDLMAIN_LIBRARY) @@ -888,16 +884,31 @@ SET(SRCS utils/perfomance.h utils/debugmemoryobject.h fs/virtfsfuncs.h - fs/physfs/virtfsphys.cpp - fs/physfs/virtfsphys.h fs/virtfsrwops.cpp fs/virtfsrwops.h fs/virtfstools.cpp fs/virtfstools.h fs/virtlist.cpp fs/virtlist.h - fs/physfs/virtfs.cpp fs/virtfs.h + fs/virtfs/virtfs.cpp + fs/virtfs/virtfs.h + fs/virtfs/virtdirentry.cpp + fs/virtfs/virtdirentry.h + fs/virtfs/virtfileprivate.cpp + fs/virtfs/virtfileprivate.h + fs/virtfs/virtfsdir.cpp + fs/virtfs/virtfsdir.h + fs/virtfs/virtfsentry.cpp + fs/virtfs/virtfsentry.h + fs/virtfs/virtfszip.cpp + fs/virtfs/virtfszip.h + fs/virtfs/virtzipentry.cpp + fs/virtfs/virtzipentry.h + fs/virtfs/zip.cpp + fs/virtfs/zip.h + fs/virtfs/ziplocalheader.cpp + fs/virtfs/ziplocalheader.h utils/process.cpp utils/process.h utils/sdl2helper.cpp @@ -915,8 +926,6 @@ SET(SRCS utils/timer.h fs/virtfile.cpp fs/virtfile.h - fs/physfs/virtfileprivate.cpp - fs/physfs/virtfileprivate.h utils/mutex.h utils/naclmessages.cpp utils/naclmessages.h @@ -1777,16 +1786,31 @@ SET(DYE_CMD_SRCS utils/perfomance.cpp utils/perfomance.h fs/virtfsfuncs.h - fs/physfs/virtfsphys.cpp - fs/physfs/virtfsphys.h fs/virtfsrwops.cpp fs/virtfsrwops.h fs/virtfstools.cpp fs/virtfstools.h fs/virtlist.cpp fs/virtlist.h - fs/physfs/virtfs.cpp fs/virtfs.h + fs/virtfs/virtfs.cpp + fs/virtfs/virtfs.h + fs/virtfs/virtdirentry.cpp + fs/virtfs/virtdirentry.h + fs/virtfs/virtfileprivate.cpp + fs/virtfs/virtfileprivate.h + fs/virtfs/virtfsdir.cpp + fs/virtfs/virtfsdir.h + fs/virtfs/virtfsentry.cpp + fs/virtfs/virtfsentry.h + fs/virtfs/virtfszip.cpp + fs/virtfs/virtfszip.h + fs/virtfs/virtzipentry.cpp + fs/virtfs/virtzipentry.h + fs/virtfs/zip.cpp + fs/virtfs/zip.h + fs/virtfs/ziplocalheader.cpp + fs/virtfs/ziplocalheader.h utils/sdl2helper.cpp utils/sdl2helper.h utils/sdlcheckutils.cpp @@ -1800,8 +1824,6 @@ SET(DYE_CMD_SRCS utils/timer.h fs/virtfile.cpp fs/virtfile.h - fs/physfs/virtfileprivate.cpp - fs/physfs/virtfileprivate.h utils/xml.cpp utils/xml.h utils/xml.inc @@ -2036,7 +2058,6 @@ TARGET_LINK_LIBRARIES(manaplus ${SDLNET_LIBRARY} ${SDLTTF_LIBRARY} ${PNG_LIBRARIES} - ${PHYSFS_LIBRARY} ${ZLIB_LIBRARIES} ${CURL_LIBRARIES} ${LIBXML2_LIBRARIES} @@ -2053,7 +2074,6 @@ INSTALL(TARGETS manaplus RUNTIME DESTINATION ${PKG_BINDIR}) # ${SDLNET_LIBRARY} # ${SDLTTF_LIBRARY} # ${PNG_LIBRARIES} -# ${PHYSFS_LIBRARY} # ${ZLIB_LIBRARIES} # ${CURL_LIBRARIES} # ${LIBXML2_LIBRARIES} |