all repos — mgba @ 2e3daaedc208824c9b8a54480bd614160cdda9e7

mGBA Game Boy Advance Emulator

Feature: Support ImageMagick 7
Vicki Pfau vi@endrift.com
Wed, 18 Jan 2017 12:51:05 -0800
commit

2e3daaedc208824c9b8a54480bd614160cdda9e7

parent

8dde1b565426b19c7ec16f60bce0401eca7b35a9

3 files changed, 11 insertions(+), 1 deletions(-)

jump to
M CHANGESCHANGES

@@ -47,6 +47,7 @@ - Feature: Move game database from flatfile to SQLite3

- GB Audio: Start implementing "zombie" audio (fixes mgba.io/i/389) - VFS: Fix some minor VFile issues with FILEs - Core: Add generic checksum function + - Feature: Support ImageMagick 7 0.5.2: (2016-12-31) Bugfixes:
M CMakeLists.txtCMakeLists.txt

@@ -322,6 +322,7 @@ list(APPEND FUNCTION_DEFINES HAVE_UMASK)

endif() # Feature dependencies +set(FEATURE_DEFINES) set(FEATURES) if(CMAKE_SYSTEM_NAME MATCHES .*BSD) set(LIBEDIT_LIBRARIES -ledit)

@@ -431,11 +432,16 @@ link_directories(${MAGICKWAND_LIBRARY_DIRS})

list(APPEND FEATURE_SRC "${CMAKE_CURRENT_SOURCE_DIR}/src/feature/imagemagick/imagemagick-gif-encoder.c") list(APPEND DEPENDENCY_LIB ${MAGICKWAND_LIBRARIES}) string(REGEX MATCH "^[0-9]+\\.[0-9]+" MAGICKWAND_VERSION_PARTIAL ${MagickWand_VERSION}) + string(REGEX MATCH "^[0-9]+" MAGICKWAND_VERSION_MAJOR ${MagickWand_VERSION}) if(${MAGICKWAND_VERSION_PARTIAL} EQUAL "6.7") set(MAGICKWAND_DEB_VERSION "5") + elseif(${MagickWand_VERSION} EQUAL "6.9.7") + set(MAGICKWAND_DEB_VERSION "-6.q16-3") else() set(MAGICKWAND_DEB_VERSION "-6.q16-2") endif() + list(APPEND FEATURE_DEFINES MAGICKWAND_VERSION_MAJOR=${MAGICKWAND_VERSION_MAJOR}) + set(CPACK_DEBIAN_PACKAGE_DEPENDS "${CPACK_DEBIAN_PACKAGE_DEPENDS},libmagickwand${MAGICKWAND_DEB_VERSION}") endif()

@@ -595,7 +601,6 @@ list(APPEND FEATURE_SRC ${DEBUGGER_SRC})

list(APPEND FEATURES DEBUGGERS) endif() -set(FEATURE_DEFINES) foreach(FEATURE IN LISTS FEATURES) list(APPEND FEATURE_DEFINES "USE_${FEATURE}") endforeach()
M src/feature/imagemagick/imagemagick-gif-encoder.hsrc/feature/imagemagick/imagemagick-gif-encoder.h

@@ -15,7 +15,11 @@

#define MAGICKCORE_HDRI_ENABLE 0 #define MAGICKCORE_QUANTUM_DEPTH 8 +#if MAGICKWAND_VERSION_MAJOR >= 7 +#include <MagickWand/MagickWand.h> +#else #include <wand/MagickWand.h> +#endif struct ImageMagickGIFEncoder { struct mAVStream d;