146 Star 1.3K Fork 417

GVP搜狗开源/workflow

加入 Gitee
与超过 1400万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
xmake.lua 1.36 KB
一键复制 编辑 原始数据 按行查看 历史
kedixa 提交于 2024-09-11 20:32 +08:00 . tutorial and docs for redis subscriber (#1620)
set_group("tutorial")
set_default(false)
if not is_plat("macosx") then
add_ldflags("-lrt")
end
function all_examples()
local res = {}
for _, x in ipairs(os.files("*.cc")) do
local item = {}
local s = path.filename(x)
if ((s == "upstream_unittest.cc" and not has_config("upstream")) or
((s == "tutorial-02-redis_cli.cc" or s == "tutorial-03-wget_to_redis.cc" or s == "tutorial-18-redis_subscriber.cc") and not has_config("redis")) or
(s == "tutorial-12-mysql_cli.cc" and not has_config("mysql")) or
(s == "tutorial-14-consul_cli.cc" and not has_config("consul")) or
(s == "tutorial-13-kafka_cli.cc")) then
else
table.insert(item, s:sub(1, #s - 3)) -- target
table.insert(item, path.relative(x, ".")) -- source
table.insert(res, item)
end
end
return res
end
for _, example in ipairs(all_examples()) do
target(example[1])
set_kind("binary")
add_files(example[2])
add_deps("workflow")
end
target("tutorial-13-kafka_cli")
if has_config("kafka") then
set_kind("binary")
add_files("tutorial-13-kafka_cli.cc")
add_packages("zlib", "snappy", "zstd", "lz4")
add_deps("wfkafka")
else
set_kind("phony")
end
includes("tutorial-10-user_defined_protocol", "tutorial-16-graceful_restart")
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C++
1
https://gitee.com/sogou/workflow.git
git@gitee.com:sogou/workflow.git
sogou
workflow
workflow
master

搜索帮助