1 Star 0 Fork 9

honiswang/CO

forked from Gitee 极速下载/CO 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
xmake.lua 1.36 KB
一键复制 编辑 原始数据 按行查看 历史
Alvin 提交于 2021-06-12 14:36 . remove _ITERATOR_DEBUG_LEVEL
-- plat
set_config("plat", os.host())
-- project
set_project("co")
-- set xmake minimum version
set_xmakever("2.2.5")
-- set common flags
set_languages("c++11")
set_optimize("faster") -- faster: -O2 fastest: -O3 none: -O0
set_warnings("all") -- -Wall
set_symbols("debug") -- dbg symbols
if is_plat("macosx", "linux") then
add_cxflags("-g3", "-Wno-narrowing", "-Wno-sign-compare", "-Wno-class-memaccess")
if is_plat("macosx") then
add_cxflags("-fno-pie")
end
add_syslinks("pthread", "dl")
end
if is_plat("windows") then
add_cxflags("-MD", "-EHsc")
end
---[[
--add_requires("zlib", {optional = true})
add_requires("openssl >=1.1.0", {optional = true})
add_requires("libcurl", {optional = true, configs = {openssl = true, zlib = true}})
if has_package("libcurl") then
add_defines("HAS_LIBCURL")
add_packages("libcurl")
end
--if has_package("zlib") then
-- add_defines("HAS_ZLIB")
-- add_packages("zlib")
--end
if has_package("openssl") then
add_defines("CO_SSL")
add_defines("HAS_OPENSSL")
add_packages("openssl")
end
--]]
-- include dir
add_includedirs("include")
-- install header files
add_installfiles("(include/**)", {prefixdir = ""})
add_installfiles("*.md", {prefixdir = "include/co"})
-- include sub-projects
includes("src", "gen", "test", "unitest")
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C/C++
1
https://gitee.com/whyfree/CO.git
git@gitee.com:whyfree/CO.git
whyfree
CO
CO
master

搜索帮助

0d507c66 1850385 C8b1a773 1850385