mirror of
https://invent.kde.org/frameworks/kimageformats.git
synced 2025-07-18 20:04:16 -04:00
Make WebP mimetype xml match the one in shared-mime-info-git
This includes the detection magic and an alias for image/webp. It should be in shared-mime-info 1.3. Proposed by Jerome Leclanche <adys.wh@gmail.com>. REVIEW: 115355
This commit is contained in:
@ -134,10 +134,12 @@ if(WebP_FOUND)
|
||||
|
||||
find_package(SharedMimeInfo)
|
||||
set_package_properties(SharedMimeInfo PROPERTIES
|
||||
# TODO: Make RUNTIME when we remove webp.xml
|
||||
TYPE RECOMMENDED
|
||||
PURPOSE "Required to install the WebP MIME Type information"
|
||||
)
|
||||
if (SharedMimeInfo_FOUND)
|
||||
# TODO: Remove when we can depend on shared-mime-info 1.3
|
||||
install(FILES webp.xml DESTINATION ${XDG_MIME_INSTALL_DIR})
|
||||
update_xdg_mimetypes(${XDG_MIME_INSTALL_DIR})
|
||||
endif()
|
||||
|
Reference in New Issue
Block a user