Kaynağa Gözat

repair cpp-tbox header file problem (#2942)

* repair cpp-tbox header file problem

* Update xmake.lua

* Update xmake.lua

* Update xmake.lua
xpxz 1 yıl önce
ebeveyn
işleme
b56e6c15be
1 değiştirilmiş dosya ile 7 ekleme ve 0 silme
  1. 7 0
      packages/c/cpp-tbox/xmake.lua

+ 7 - 0
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)