1 Star 0 Fork 10

Mr.Chen/supervisor

forked from leo/supervisor 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
xmake.lua 780 Bytes
一键复制 编辑 原始数据 按行查看 历史
leo 提交于 2021-06-04 12:54 . update xmake.lua.
target('supervisor')
set_kind('binary')
set_targetdir('bin')
set_objectdir('.xmake/build/.obj')
set_dependir('.xmake/build/.dep')
set_warnings('all')
set_languages('cxx11')
if is_os('windows') then
add_links('user32', 'advapi32')
add_files('supervisor.rc')
else
before_build(function(t, p)
cprint("${green}[%3d%%]:${clear} make res for linux", p.progress, t:name())
os.execv('objcopy', {'-I', 'binary', '-B', 'i386', '-O', 'elf64-x86-64', 'res.zip', 'res.o'})
end)
after_build(function(t, p)
os.execv('rm', {'-f', 'res.o'})
end)
add_links('pthread')
add_files('res.o')
end
add_files('*.cc', '*.c')
target_end()
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C++
1
https://gitee.com/cxs5534/supervisor.git
git@gitee.com:cxs5534/supervisor.git
cxs5534
supervisor
supervisor
master

搜索帮助