repair cpp-tbox header file problem (#2942)

* repair cpp-tbox header file problem

* Update xmake.lua

* Update xmake.lua

* Update xmake.lua
pull/2945/head
xpxz 12 months ago committed by GitHub
parent 182fe3a44a
commit b56e6c15be
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 7
      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)

Loading…
Cancel
Save