-
-
Notifications
You must be signed in to change notification settings - Fork 561
-
-
Notifications
You must be signed in to change notification settings - Fork 561
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
是否有意向将install后的库名以及目录名由base改为co? #64
Comments
👍 不过这样库名跟腾讯的libco库重名了 |
|
名字从简,可以少敲些键盘😊 |
@izhengfan dev分支上可否更新下cmake脚本,与xmake保持一致? |
好的。
那其实现在用 base 也还可以,好像没遇见过名字叫 base 的常用库。 |
不同领域的重名还好,关键是腾讯那个也是个协程库,相当于部分功能都是重的,对推广上也许会有些影响,毕竟更多用户只知道libco是腾讯出的那个,其他的倒是问题不大 |
我个人觉得改下也不错,co比base更简单,顺便蹭下腾讯libco的热度😄 |
|
rename from base to co according to #64
名字已经改成 co 了,cmake 脚本估计编译不了.. |
我考虑放弃支持cmake,不如xmake简洁明了 |
可以用xmake来生成cmakelists, |
我把co库集成到xmake-repo仓库了,可以直接在xmake.lua里面使用,https://github.com/xmake-io/xmake-repo/blob/master/packages/c/co/xmake.lua add_requires("co")
target("test")
set_kind("binary")
add_files("src/*.cc")
add_packages("co") |
考虑到很多环境里有cmake但不方便装xmake,感觉比较好的办法是用xmake生成一份cmake脚本放在repo里。 |
生成的cmake脚本似乎是按target生成的,test目录下增加代码,可能就要重新生成一遍.. |
要不上 CI 吧,比如 Github Actions,可以把生成的 cmake 脚本放在 release assets 里。CI 可以向 ruqi 的 tbox 看齐😁 |
@waruqi 请问xmake有办法生成与 co/test/xmake.lua对等的cmake脚本吗? |
我后面再了解下吧,这个还不熟 |
我暂时写了一份可用的 cmake 脚本 a1d1732 |
我自己有个分支维护一个简单的 CI ,类似这样:https://github.com/idealvin/co/compare/dev...izhengfan:dev-with-ci?expand=1#files_bucket |
这个可以,暂时先这样吧
…---原始邮件---
发件人: "ZHENG Fan"<notifications@github.com>
发送时间: 2020年5月23日(周六) 上午10:44
收件人: "idealvin/co"<co@noreply.github.com>;
抄送: "Comment"<comment@noreply.github.com>;"Alvin"<idealvin@qq.com>;
主题: Re: [idealvin/co] 是否有意向将install后的库名以及目录名由base改为co? (#64)
我暂时写了一份可用的 cmake 脚本 a1d1732
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
感觉有些复杂,后面再考虑。
…---原始邮件---
发件人: "ZHENG Fan"<notifications@github.com>
发送时间: 2020年5月23日(周六) 上午10:57
收件人: "idealvin/co"<co@noreply.github.com>;
抄送: "Comment"<comment@noreply.github.com>;"Alvin"<idealvin@qq.com>;
主题: Re: [idealvin/co] 是否有意向将install后的库名以及目录名由base改为co? (#64)
我自己有个分支维护一个简单的 CI ,类似这样:https://github.com/idealvin/co/compare/dev...izhengfan:dev-with-ci?expand=1#files_bucket
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
目前不完全等价,add_files("src/*.c")这种对应到cmake里面,我会去展开,这样通用性会好些,因为xmake的很多模式不一定能够完全对应到cmake |
目前执行
xmake install
后,会将头文件放在base
目录下,静态库被命名为libbase.a
。base
这个名字太普通了,不够将库与程序内部的名字区分开。既然项目名叫co
,何不将头文件放在include/co
目录下,且库名为libco.a
或libco.so
?这个动静有点大,但从长远来看,我觉得有必要来执行这个改动。
The text was updated successfully, but these errors were encountered: