|
|
@ -22,6 +22,13 @@ package("cpp-tbox") |
|
|
|
table.insert(configs, "-DTBOX_ENABLE_MQTT=" .. (package:config("mqtt") and "ON" or "OFF")) |
|
|
|
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")) |
|
|
|
table.insert(configs, "-DTBOX_BUILD_LIB_TYPE=" .. (package:config("shared") and "SHARED" or "STATIC")) |
|
|
|
import("package.tools.cmake").install(package, configs) |
|
|
|
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) |
|
|
|
end) |
|
|
|
|
|
|
|
|
|
|
|
on_test(function (package) |
|
|
|
on_test(function (package) |
|
|
|