summaryrefslogtreecommitdiff
path: root/Meta
diff options
context:
space:
mode:
authorBrian Gianforcaro <b.gianfo@gmail.com>2021-01-01 15:44:39 -0800
committerAndreas Kling <kling@serenityos.org>2021-01-02 01:37:40 +0100
commit8161c99da27526a2971b4356c015c82d17dce4c3 (patch)
treef87fc675ddf3dbabede20bc4b18ddba57527d25d /Meta
parent2927656d85f6b8c564e74f8ae460212e4fdde57c (diff)
downloadserenity-8161c99da27526a2971b4356c015c82d17dce4c3.zip
CMake: Warn when a serenity app is missing small or medium icons
Diffstat (limited to 'Meta')
-rw-r--r--Meta/CMake/utils.cmake7
1 files changed, 5 insertions, 2 deletions
diff --git a/Meta/CMake/utils.cmake b/Meta/CMake/utils.cmake
index a21426e494..4145aef4eb 100644
--- a/Meta/CMake/utils.cmake
+++ b/Meta/CMake/utils.cmake
@@ -79,12 +79,15 @@ function(serenity_app target_name)
if (EXISTS "${small_icon}")
embed_resource("${target_name}" serenity_icon_s "${small_icon}")
+ else()
+ message(WARNING "Missing small app icon: ${small_icon}")
endif()
+
if (EXISTS "${medium_icon}")
embed_resource("${target_name}" serenity_icon_m "${medium_icon}")
+ else()
+ message(WARNING "Missing medium app icon: ${medium_icon}")
endif()
-
- # TODO: Issue warnings if the app icons don't exist
endfunction()
function(compile_gml source output string_name)