浏览代码

improve new.lua

star9029 1 年之前
父节点
当前提交
632ba0ae0b
共有 1 个文件被更改,包括 1 次插入4 次删除
  1. 1 4
      scripts/new.lua

+ 1 - 4
scripts/new.lua

@@ -180,10 +180,7 @@ function generate_package(reponame, get_data)
                 add_files("src/*.c")
                 add_headerfiles("src/(*.h)")
         ]])
-        if package:config("shared") then
-            configs.kind = "shared"
-        end
-        import("package.tools.xmake").install(package, configs)]=]
+        import("package.tools.xmake").install(package)]=]
             end,
         },
         ["CMakeLists.txt"] = {