Browse Source

libplist: fix missing cpp lib (#6602)

star9029 5 months ago
parent
commit
0ac8741f78
1 changed files with 7 additions and 2 deletions
  1. 7 2
      packages/l/libplist/port/xmake.lua

+ 7 - 2
packages/l/libplist/port/xmake.lua

@@ -15,9 +15,14 @@ end
 target("plist")
     set_kind("$(kind)")
     add_files("libcnary/*.c|cnary.c", "src/*.c")
-    add_includedirs("src", "include", "libcnary/include")
+    add_includedirs("src", "include", "libcnary/include", {public = true})
     add_headerfiles("include/(plist/*.h)")
 
     if is_kind("static") then
-        add_defines("LIBPLIST_STATIC")
+        add_defines("LIBPLIST_STATIC", {public = true})
     end
+
+target("plist++")
+    set_kind("$(kind)")
+    add_files("src/*.cpp")
+    add_deps("plist")