mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2026-01-29 17:38:16 +03:00
Disable unneeded LodePNG features
The only thing we need LodePNG for is to decode a PNG that we've already loaded into memory. We handle the filesystem part ourselves, so we don't need LodePNG's filesystem functions; we don't encode images, and we don't use the zlib functions. So disable all of those.
This commit is contained in:
@@ -233,7 +233,12 @@ ADD_LIBRARY(tinyxml2-static STATIC ${XML2_SRC})
|
|||||||
ADD_LIBRARY(physfs-static STATIC ${PFS_SRC} ${PFSP_SRC})
|
ADD_LIBRARY(physfs-static STATIC ${PFS_SRC} ${PFSP_SRC})
|
||||||
ADD_LIBRARY(lodepng-static STATIC ${PNG_SRC})
|
ADD_LIBRARY(lodepng-static STATIC ${PNG_SRC})
|
||||||
|
|
||||||
TARGET_COMPILE_DEFINITIONS(lodepng-static PRIVATE -DLODEPNG_NO_COMPILE_ALLOCATORS)
|
TARGET_COMPILE_DEFINITIONS(lodepng-static PRIVATE
|
||||||
|
-DLODEPNG_NO_COMPILE_ALLOCATORS
|
||||||
|
-DLODEPNG_NO_COMPILE_DISK
|
||||||
|
-DLODEPNG_NO_COMPILE_ENCODER
|
||||||
|
-DLODEPNG_NO_COMPILE_ZLIB
|
||||||
|
)
|
||||||
|
|
||||||
# Static Dependencies
|
# Static Dependencies
|
||||||
TARGET_LINK_LIBRARIES(VVVVVV physfs-static tinyxml2-static lodepng-static)
|
TARGET_LINK_LIBRARIES(VVVVVV physfs-static tinyxml2-static lodepng-static)
|
||||||
|
|||||||
Reference in New Issue
Block a user