Fix build error for giflib 5.1.9 74/223774/1
authorjiyong.min <jiyong.min@samsung.com>
Mon, 3 Feb 2020 23:29:45 +0000 (08:29 +0900)
committerjiyong.min <jiyong.min@samsung.com>
Tue, 4 Feb 2020 01:45:31 +0000 (10:45 +0900)
 - The 'gifutil' library has been added for deprecated 'GifQuantizeBuffer' function.
   It should be removed since giflib 5.2.0.

Change-Id: I263e3fa3cb4ae8622c70b16f4799f83429602141

gif/CMakeLists.txt
packaging/libmm-utility.spec

index 1c14ff1..e48db32 100644 (file)
@@ -38,7 +38,14 @@ SET(CMAKE_EXE_LINKER_FLAGS "-Wl,--as-needed -Wl,--rpath=${LIB_INSTALL_DIR}")
 
 aux_source_directory(. SOURCES)
 ADD_LIBRARY(${fw_name} SHARED ${SOURCES})
+# 2020.02.04 gifutil has been added for deprecated 'GifQuantizeBuffer'
+# It should be removed since giflib 5.2.0.
+FIND_LIBRARY(HAS_GIFUTIL_LIBRARY NAMES gifutil)
+IF(HAS_GIFUTIL_LIBRARY)
+TARGET_LINK_LIBRARIES(${fw_name} ${${fw_name}_LDFLAGS} gif gifutil mmutil_common)
+ELSE(HAS_GIFUTIL_LIBRARY)
 TARGET_LINK_LIBRARIES(${fw_name} ${${fw_name}_LDFLAGS} gif mmutil_common)
+ENDIF(HAS_GIFUTIL_LIBRARY)
 SET_TARGET_PROPERTIES(${fw_name}
        PROPERTIES
        VERSION ${VERSION}
index e6bcfa1..766f2a5 100755 (executable)
@@ -1,6 +1,6 @@
 Name:       libmm-utility
 Summary:    Multimedia Framework Utility Library
-Version:    0.1.35
+Version:    0.1.36
 Release:    0
 Group:      System/Libraries
 License:    Apache-2.0