CMake: Warn when a serenity app is missing small or medium icons
This commit is contained in:
parent
2927656d85
commit
8161c99da2
Notes:
sideshowbarker
2024-07-19 00:13:32 +09:00
Author: https://github.com/bgianfo Commit: https://github.com/SerenityOS/serenity/commit/8161c99da27 Pull-request: https://github.com/SerenityOS/serenity/pull/4729
1 changed files with 7 additions and 4 deletions
|
@ -79,12 +79,15 @@ function(serenity_app target_name)
|
|||
|
||||
if (EXISTS "${small_icon}")
|
||||
embed_resource("${target_name}" serenity_icon_s "${small_icon}")
|
||||
endif()
|
||||
if (EXISTS "${medium_icon}")
|
||||
embed_resource("${target_name}" serenity_icon_m "${medium_icon}")
|
||||
else()
|
||||
message(WARNING "Missing small app icon: ${small_icon}")
|
||||
endif()
|
||||
|
||||
# TODO: Issue warnings if the app icons don't exist
|
||||
if (EXISTS "${medium_icon}")
|
||||
embed_resource("${target_name}" serenity_icon_m "${medium_icon}")
|
||||
else()
|
||||
message(WARNING "Missing medium app icon: ${medium_icon}")
|
||||
endif()
|
||||
endfunction()
|
||||
|
||||
function(compile_gml source output string_name)
|
||||
|
|
Loading…
Add table
Reference in a new issue