|
@@ -6,11 +6,21 @@ package("plog")
|
|
|
|
|
|
add_urls("https://github.com/SergiusTheBest/plog/archive/refs/tags/$(version).tar.gz",
|
|
|
"https://github.com/SergiusTheBest/plog.git")
|
|
|
+
|
|
|
+ add_versions("1.1.11", "d60b8b35f56c7c852b7f00f58cbe9c1c2e9e59566c5b200512d0cdbb6309a7c2")
|
|
|
add_versions("1.1.10", "55a090fc2b46ab44d0dde562a91fe5fc15445a3caedfaedda89fe3925da4705a")
|
|
|
add_versions("1.1.9", "058315b9ec9611b659337d4333519ab4783fad3f2f23b1cc7bb84d977ea38055")
|
|
|
|
|
|
+ add_deps("cmake")
|
|
|
+
|
|
|
+ if is_plat("android") then
|
|
|
+ add_syslinks("log")
|
|
|
+ end
|
|
|
+
|
|
|
on_install(function (package)
|
|
|
- os.cp("include", package:installdir())
|
|
|
+ local configs = {"-DPLOG_BUILD_SAMPLES=OFF"}
|
|
|
+ table.insert(configs, "-DCMAKE_BUILD_TYPE=" .. (package:is_debug() and "Debug" or "Release"))
|
|
|
+ import("package.tools.cmake").install(package, configs)
|
|
|
end)
|
|
|
|
|
|
on_test(function (package)
|