1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-07-31 03:10:12 +02:00

Fixed icon generation on OS X.

This commit is contained in:
Christian Muehlhaeuser
2015-01-26 19:54:54 +01:00
parent 629c6f4795
commit c4c4ab6681

View File

@@ -69,7 +69,7 @@ macro (TOMAHAWK_ADD_APP_ICON appsources outfilename pattern)
message(STATUS "Unable to find the png2ico or windres utilities - application will not have an application icon!") message(STATUS "Unable to find the png2ico or windres utilities - application will not have an application icon!")
endif(PNG2ICO_EXECUTABLE AND WINDRES_EXECUTABLE) endif(PNG2ICO_EXECUTABLE AND WINDRES_EXECUTABLE)
endif(WIN32) endif(WIN32)
if (Q_OS_MAC) if (APPLE)
# first convert image to a tiff using the Mac OS X "sips" utility, # first convert image to a tiff using the Mac OS X "sips" utility,
# then use tiff2icns to convert to an icon # then use tiff2icns to convert to an icon
find_program(SIPS_EXECUTABLE NAMES sips) find_program(SIPS_EXECUTABLE NAMES sips)
@@ -110,5 +110,5 @@ macro (TOMAHAWK_ADD_APP_ICON appsources outfilename pattern)
else(SIPS_EXECUTABLE AND TIFF2ICNS_EXECUTABLE) else(SIPS_EXECUTABLE AND TIFF2ICNS_EXECUTABLE)
message(STATUS "Unable to find the sips and tiff2icns utilities - application will not have an application icon!") message(STATUS "Unable to find the sips and tiff2icns utilities - application will not have an application icon!")
endif(SIPS_EXECUTABLE AND TIFF2ICNS_EXECUTABLE) endif(SIPS_EXECUTABLE AND TIFF2ICNS_EXECUTABLE)
endif(Q_OS_MAC) endif(APPLE)
endmacro (TOMAHAWK_ADD_APP_ICON) endmacro (TOMAHAWK_ADD_APP_ICON)