From b56e6c15be91cbd276e1d9c382194fd5ffafca61 Mon Sep 17 00:00:00 2001 From: xpxz <97490782+heheda123123@users.noreply.github.com> Date: Thu, 14 Dec 2023 18:20:33 +0800 Subject: [PATCH] repair cpp-tbox header file problem (#2942) * repair cpp-tbox header file problem * Update xmake.lua * Update xmake.lua * Update xmake.lua --- packages/c/cpp-tbox/xmake.lua | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/packages/c/cpp-tbox/xmake.lua b/packages/c/cpp-tbox/xmake.lua index c727b28f0..8ea1b72a2 100644 --- a/packages/c/cpp-tbox/xmake.lua +++ b/packages/c/cpp-tbox/xmake.lua @@ -22,6 +22,13 @@ package("cpp-tbox") table.insert(configs, "-DTBOX_ENABLE_MQTT=" .. (package:config("mqtt") and "ON" or "OFF")) table.insert(configs, "-DTBOX_BUILD_LIB_TYPE=" .. (package:config("shared") and "SHARED" or "STATIC")) import("package.tools.cmake").install(package, configs) + local httpdir = path.join(package:installdir(),"include", "tbox", "http") + os.mv(path.join(httpdir, "types.h"), path.join(httpdir, "server", "types.h")) + os.mv(path.join(httpdir, "server.h"), path.join(httpdir, "server", "server.h")) + os.mv(path.join(httpdir, "context.h"), path.join(httpdir, "server", "context.h")) + os.mv(path.join(httpdir, "middleware.h"), path.join(httpdir, "server", "middleware.h")) + os.mv(path.join(httpdir, "router.h"), path.join(httpdir, "server", "router.h")) + os.mv(path.join(httpdir, "client.h"), path.join(httpdir, "client", "client.h")) end) on_test(function (package)