Add tmxlite (#3623)

* Add tmxlite

* Update xmake.lua

* Update xmake.lua

* Update xmake.lua

* Update xmake.lua

* Update xmake.lua

* Update xmake.lua

* Update xmake.lua

* Update xmake.lua
pull/3630/head
Jérôme Leclercq 10 months ago committed by GitHub
parent 14e0c93cb3
commit 0ef4452fbb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 6
      packages/p/pugixml/xmake.lua
  2. 31
      packages/t/tmxlite/xmake.lua

@ -1,18 +1,18 @@
package("pugixml")
set_homepage("https://pugixml.org/")
set_description("Light-weight, simple and fast XML parser for C++ with XPath support")
set_license("MIT")
add_urls("https://github.com/zeux/pugixml/archive/$(version).tar.gz",
"https://github.com/zeux/pugixml.git")
add_versions("v1.11.4", "017139251c122dbff400a507cddc4cb74120a431a50c6c524f30edcc5b331ade")
add_versions("v1.13", "5c5ad5d7caeb791420408042a7d88c2c6180781bf218feca259fd9d840a888e1")
add_versions("v1.14", "2f10e276870c64b1db6809050a75e11a897a8d7456c4be5c6b2e35a11168a015")
add_versions("v1.14", "610f98375424b5614754a6f34a491adbddaaec074e9044577d965160ec103d2e")
add_deps("cmake")
on_install("windows", "linux", "macosx", "mingw", function (package)
on_install(function (package)
local configs = {}
table.insert(configs, "-DCMAKE_BUILD_TYPE=" .. (package:debug() and "Debug" or "Release"))
table.insert(configs, "-DBUILD_SHARED_LIBS=" .. (package:config("shared") and "ON" or "OFF"))

@ -0,0 +1,31 @@
package("tmxlite")
set_homepage("https://github.com/fallahn/tmxlite")
set_description("lightweight C++14 parser for Tiled tmx files")
set_license("zlib")
add_urls("https://github.com/fallahn/tmxlite/archive/refs/tags/$(version).tar.gz",
"https://github.com/fallahn/tmxlite.git")
add_versions("v1.4.4", "ec8893efc8396308f291c284cb09f007441a15aabbb0e5722096cf79c65c9e58")
add_deps("cmake", "pugixml", "zlib", "zstd")
on_install("windows", "mingw", "linux", "macos", "bsd", "iphoneos", "cross", function (package)
os.cd("tmxlite")
local configs = {}
table.insert(configs, "-DCMAKE_BUILD_TYPE=" .. (package:debug() and "Debug" or "Release"))
table.insert(configs, "-DTMXLITE_STATIC_LIB=" .. (package:config("shared") and "OFF" or "ON"))
table.insert(configs, "-DUSE_EXTLIBS=ON")
table.insert(configs, "-DUSE_ZSTD=ON")
import("package.tools.cmake").install(package, configs)
end)
on_test(function (package)
assert(package:check_cxxsnippets({test = [[
void test() {
tmx::Map map;
map.load("assets/test.tmx");
}
]]}, {configs = {languages = "c++14"}, includes = "tmxlite/Map.hpp"}))
end)
Loading…
Cancel
Save