package An official xmake package repository
https://xrepo.xmake.io/
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
38 lines
1.3 KiB
38 lines
1.3 KiB
package("wfrest") |
|
set_homepage("https://github.com/wfrest/wfrest") |
|
set_description("wfrest: C++ Web Framework REST API") |
|
set_license("Apache-2.0") |
|
|
|
add_urls("https://github.com/wfrest/wfrest/archive/refs/tags/$(version).tar.gz", |
|
"https://github.com/wfrest/wfrest.git") |
|
|
|
add_versions("v0.9.3", "1bd0047484e81e23c7a8ab7ba41634109169c37d80aeb2c480728214db42878e") |
|
add_versions("v0.9.4", "1f8811e90e6c89af91db04cab0c37dc86cf4777f4f4713d6003ac0ec1a2471a9") |
|
add_versions("v0.9.5", "46e4957a5c00c95c85979bbc41807b4c4f2aacc11c43e123039ce440ebecab84") |
|
|
|
add_deps("openssl", "workflow", "zlib") |
|
|
|
if is_plat("linux") then |
|
add_syslinks("pthread", "dl") |
|
end |
|
|
|
on_install("linux", "macosx", "android", function (package) |
|
local configs = {} |
|
if package:config("shared") then |
|
configs.kind = "shared" |
|
end |
|
import("package.tools.xmake").install(package, configs) |
|
end) |
|
|
|
on_test(function (package) |
|
assert(package:check_cxxsnippets({test = [[ |
|
#include "wfrest/HttpServer.h" |
|
void test() { |
|
wfrest::HttpServer svr; |
|
if (svr.start(8888) == 0) |
|
{ |
|
svr.stop(); |
|
} |
|
} |
|
]]}, {configs = {languages = "c++11"}})) |
|
end)
|
|
|