From a0abf455076e2fa5c0193ffe195907e19bea06dd Mon Sep 17 00:00:00 2001 From: ruki Date: Wed, 15 Nov 2023 23:26:27 +0800 Subject: add icon to test --- tests/plugins/pack/src/xmake.rc | 1 + tests/plugins/pack/xmake.lua | 3 +++ 2 files changed, 4 insertions(+) create mode 100644 tests/plugins/pack/src/xmake.rc diff --git a/tests/plugins/pack/src/xmake.rc b/tests/plugins/pack/src/xmake.rc new file mode 100644 index 000000000..3a2783607 --- /dev/null +++ b/tests/plugins/pack/src/xmake.rc @@ -0,0 +1 @@ +IDI_APP ICON DISCARDABLE "assets/xmake.ico" diff --git a/tests/plugins/pack/xmake.lua b/tests/plugins/pack/xmake.lua index b5f8a4e21..9238c956a 100644 --- a/tests/plugins/pack/xmake.lua +++ b/tests/plugins/pack/xmake.lua @@ -8,6 +8,9 @@ add_requires("zlib", {configs = {shared = true}}) target("test") set_kind("binary") add_files("src/*.cpp") + if is_plat("windows") then + add_files("src/*.rc") + end target("foo") set_kind("shared") -- cgit v1.3.1