diff --git a/xmake.lua b/xmake.lua index 7e7c83b..ae11424 100644 --- a/xmake.lua +++ b/xmake.lua @@ -3,16 +3,11 @@ add_rules("mode.debug", "mode.release") set_languages("c++17") target("SimpleProtocolLib") - add_includedirs("include") + add_includedirs("include", {public = true}) add_headerfiles("include/(sp/**.h)") set_group("Library") add_files("src/sp/**.cpp") - -- handle shared/static kind - if is_plat("wasm") or has_config("static") then - set_kind("static") - else - set_kind("shared") - end + set_kind("$(kind)") target("SimpleProtocolLibMain")