update ormpp to 0.1.3 (#4319)

* update ormcpp to 0.1.3

* add check

* Update xmake.lua

---------

Co-authored-by: star9029 <hengxings783@gmail.com>
pull/4245/head^2
xpxz 6 months ago committed by GitHub
parent 81fbc1ca40
commit c539dd9522
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 10
      packages/o/ormpp/xmake.lua

@ -1,5 +1,4 @@
package("ormpp") package("ormpp")
set_kind("library", {headeronly = true}) set_kind("library", {headeronly = true})
set_homepage("https://github.com/qicosmos/ormpp") set_homepage("https://github.com/qicosmos/ormpp")
set_description("modern C++ ORM, C++17, support mysql, postgresql,sqlite") set_description("modern C++ ORM, C++17, support mysql, postgresql,sqlite")
@ -8,6 +7,7 @@ package("ormpp")
set_urls("https://github.com/qicosmos/ormpp/archive/refs/tags/$(version).tar.gz", set_urls("https://github.com/qicosmos/ormpp/archive/refs/tags/$(version).tar.gz",
"https://github.com/qicosmos/ormpp.git") "https://github.com/qicosmos/ormpp.git")
add_versions("0.1.3", "671f2f19965d630d7147f94dd12f4212a9cce58c5455f892f321f2243acb8ea4")
add_versions("v0.1.2", "990e88eb176d996cdbbbdfa3e1522b48d135d809f14094771f8d6f02e94573c4") add_versions("v0.1.2", "990e88eb176d996cdbbbdfa3e1522b48d135d809f14094771f8d6f02e94573c4")
add_versions("v0.1.1", "a3c93599950a4c5822ebd0750ac7964c59c9b3f84f638525f01578bac6d898c2") add_versions("v0.1.1", "a3c93599950a4c5822ebd0750ac7964c59c9b3f84f638525f01578bac6d898c2")
@ -15,6 +15,8 @@ package("ormpp")
add_configs("postgresql", {description = "Using postgresql", default = false, type = "boolean"}) add_configs("postgresql", {description = "Using postgresql", default = false, type = "boolean"})
add_configs("sqlite3", {description = "Using sqlite3", default = false, type = "boolean"}) add_configs("sqlite3", {description = "Using sqlite3", default = false, type = "boolean"})
add_deps("frozen", "iguana")
on_load(function(package) on_load(function(package)
local configs = { local configs = {
mysql = "ORMPP_ENABLE_MYSQL", mysql = "ORMPP_ENABLE_MYSQL",
@ -30,8 +32,6 @@ package("ormpp")
end end
end) end)
add_deps("frozen", "iguana")
on_install(function (package) on_install(function (package)
if package:version():ge("0.1.2") then if package:version():ge("0.1.2") then
os.vcp("ormpp/*", package:installdir("include")) os.vcp("ormpp/*", package:installdir("include"))
@ -47,6 +47,8 @@ package("ormpp")
end end
assert(package:check_cxxsnippets({test = [[ assert(package:check_cxxsnippets({test = [[
#include <algorithm>
#include <dbng.hpp>
using namespace ormpp; using namespace ormpp;
struct student { struct student {
std::string name; std::string name;
@ -55,5 +57,5 @@ package("ormpp")
}; };
REGISTER_AUTO_KEY(student, id) REGISTER_AUTO_KEY(student, id)
REFLECTION_WITH_NAME(student, "t_student", id, name, age) REFLECTION_WITH_NAME(student, "t_student", id, name, age)
]]}, {configs = {languages = languages}, includes = {"dbng.hpp"} })) ]]}, {configs = {languages = languages}}))
end) end)

Loading…
Cancel
Save