mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-09-29 16:21:29 +00:00
Meta: Add allow-list for icon size detection in CMake
The only icons we are currently warning about are designed and rendered as small icons intentionally, as their only use is in desktop applets, and thus are exempt to this rule. This reduces build spam back down to a minimum. I should have just done this in the first place, back in #4729
This commit is contained in:
parent
955eef83b0
commit
c195ee6fd2
Notes:
sideshowbarker
2024-07-18 19:22:03 +09:00
Author: https://github.com/bgianfo Commit: https://github.com/SerenityOS/serenity/commit/c195ee6fd2e Pull-request: https://github.com/SerenityOS/serenity/pull/6504
|
@ -86,7 +86,13 @@ function(serenity_app target_name)
|
|||
if (EXISTS "${medium_icon}")
|
||||
embed_resource("${target_name}" serenity_icon_m "${medium_icon}")
|
||||
else()
|
||||
message(WARNING "Missing medium app icon: ${medium_icon}")
|
||||
# These icons are designed small only for use in applets, and thus are exempt.
|
||||
list(APPEND allowed_missing_medium_icons "audio-volume-high")
|
||||
list(APPEND allowed_missing_medium_icons "edit-copy")
|
||||
|
||||
if (NOT ${SERENITY_APP_ICON} IN_LIST allowed_missing_medium_icons)
|
||||
message(WARNING "Missing medium app icon: ${medium_icon}")
|
||||
endif()
|
||||
endif()
|
||||
endfunction()
|
||||
|
||||
|
|
Loading…
Reference in a new issue