From 5f9cc86ad25c6c12d811532f42e3adc7d304aa0e Mon Sep 17 00:00:00 2001 From: Persson-dev Date: Wed, 26 Feb 2025 12:33:19 +0100 Subject: [PATCH] xmake: add target extensions deps --- xmake.lua | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/xmake.lua b/xmake.lua index 79ca7d5..504b478 100644 --- a/xmake.lua +++ b/xmake.lua @@ -54,6 +54,13 @@ target("SimpleProtocolLib") add_headerfiles("include/(sp/" .. folder .. "/**.h)") end + -- adding extensions + for name, module in table.orderpairs(modules) do + if module.Deps and has_config(module.Option) then + add_deps("SimpleProtocolLib-" .. name) + end + end + -- we don't want extensions remove_files("src/sp/extensions/**.cpp") set_group("Library")