From c539dd9522ef9fb818f9f56dc8f47292b77fd39a Mon Sep 17 00:00:00 2001 From: xpxz <97490782+heheda123123@users.noreply.github.com> Date: Tue, 11 Jun 2024 22:08:05 +0800 Subject: [PATCH] update ormpp to 0.1.3 (#4319) * update ormcpp to 0.1.3 * add check * Update xmake.lua --------- Co-authored-by: star9029 --- packages/o/ormpp/xmake.lua | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/packages/o/ormpp/xmake.lua b/packages/o/ormpp/xmake.lua index 2841cd47d..89fa98edf 100644 --- a/packages/o/ormpp/xmake.lua +++ b/packages/o/ormpp/xmake.lua @@ -1,5 +1,4 @@ package("ormpp") - set_kind("library", {headeronly = true}) set_homepage("https://github.com/qicosmos/ormpp") 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", "https://github.com/qicosmos/ormpp.git") + add_versions("0.1.3", "671f2f19965d630d7147f94dd12f4212a9cce58c5455f892f321f2243acb8ea4") add_versions("v0.1.2", "990e88eb176d996cdbbbdfa3e1522b48d135d809f14094771f8d6f02e94573c4") add_versions("v0.1.1", "a3c93599950a4c5822ebd0750ac7964c59c9b3f84f638525f01578bac6d898c2") @@ -15,6 +15,8 @@ package("ormpp") add_configs("postgresql", {description = "Using postgresql", default = false, type = "boolean"}) add_configs("sqlite3", {description = "Using sqlite3", default = false, type = "boolean"}) + add_deps("frozen", "iguana") + on_load(function(package) local configs = { mysql = "ORMPP_ENABLE_MYSQL", @@ -30,8 +32,6 @@ package("ormpp") end end) - add_deps("frozen", "iguana") - on_install(function (package) if package:version():ge("0.1.2") then os.vcp("ormpp/*", package:installdir("include")) @@ -47,6 +47,8 @@ package("ormpp") end assert(package:check_cxxsnippets({test = [[ + #include + #include using namespace ormpp; struct student { std::string name; @@ -54,6 +56,6 @@ package("ormpp") int id; }; REGISTER_AUTO_KEY(student, id) - REFLECTION_WITH_NAME(student, "t_student", id, name, age) - ]]}, {configs = {languages = languages}, includes = {"dbng.hpp"} })) + REFLECTION_WITH_NAME(student, "t_student", id, name, age) + ]]}, {configs = {languages = languages}})) end)