Skip to content

Commit

Permalink
[73_14] includes 3rd/lolly.lua
Browse files Browse the repository at this point in the history
  • Loading branch information
da-liii authored Jan 16, 2024
1 parent b59149f commit 56f3685
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 28 deletions.
26 changes: 26 additions & 0 deletions xmake/3rd/lolly.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
package("lolly")
set_homepage("https://github.com/XmacsLabs/lolly")
set_description("Lolly is a C++ library")

add_urls("https://github.com/XmacsLabs/lolly.git")
add_urls("https://gitee.com/XmacsLabs/lolly.git")

add_deps("tbox")
if not is_plat("wasm") then
add_deps("cpr")
add_deps("mimalloc")
end

add_versions("v1.3.17", "58fac07b47f4df4a9ad8796c18f510a04afd8a97")

on_install("linux", "macosx", "mingw", "wasm", "windows", function (package)
local configs = {}
if not is_plat("wasm") then
configs.malloc = "mimalloc"
end
if package:config("shared") then
configs.kind = "shared"
end
import("package.tools.xmake").install(package, configs)
end)
package_end()
29 changes: 1 addition & 28 deletions xmake/packages.lua
Original file line number Diff line number Diff line change
Expand Up @@ -39,34 +39,7 @@ local LIBICONV_VERSION = "1.17"
local LIBGIT2_VERSION = "1.7.1"

includes("3rd/zlib.lua")

-- https://xmake.io/#/manual/package_dependencies?id=inherit-package-configuration
package("lolly")
set_homepage("https://github.com/XmacsLabs/lolly")
set_description("Lolly is a C++ library")

add_urls("https://github.com/XmacsLabs/lolly.git")
add_urls("https://gitee.com/XmacsLabs/lolly.git")

add_deps("tbox")
if not is_plat("wasm") then
add_deps("cpr")
add_deps("mimalloc")
end

add_versions("v" .. LOLLY_VERSION, "58fac07b47f4df4a9ad8796c18f510a04afd8a97")

on_install("linux", "macosx", "mingw", "wasm", "windows", function (package)
local configs = {}
if not is_plat("wasm") then
configs.malloc = "mimalloc"
end
if package:config("shared") then
configs.kind = "shared"
end
import("package.tools.xmake").install(package, configs)
end)
package_end()
includes("3rd/lolly.lua")

function add_requires_of_mogan()
-- package: s7
Expand Down

0 comments on commit 56f3685

Please sign in to comment.