在一个小项目上第一次试用 #meson 就得到一个大大的惊喜!感觉比 #cmake 好用很多! 以这个「静态链接 submodule 里的 librime」为例: - 你可以直接 import cmake target! - 你可以像 cmake ExternalProject 一样设定 configure options,但同时能拿到完整的 target 信息! - 同时,subproject 会被整合到当前项目构建里(类似 cmake add_subdirectory),所以如果 subproject 里有修改,不需要做任何事,正常构建就可以正确rebuild。而且不会污染外部的变量、 option 和 target 命名空间。 - 在查询 dependency lib 时,可以设定一个 static 参数,用来控制是否优先选择静态库,它的值由 一个全局的参数 --prefer-static 控制,于是你可以一键把所有依赖都静态链接掉 - 静态库中一些对象文件可能会有 constructor 需要 -Wl,--whole-archive,这里只需要 as_link_whole() 创建一个新的 dependency 对象就可以了 - 最后,它可以正确处理所有静态库的依赖(因为可以取出完整的 target 信息),而不需要手动传递被依赖的库。如果用 cmake ExternalProject 构建静态库再链接,就会丢失掉所有相关信息,要手动补全。 虽然图上的这点代码做的事很简单,就是构造一个静态的 librime 再链接到可执行文件里,但在 cmake 里不管怎么做都很麻烦。 ---- 而且还充满了各种贴心的小设计: > Another thing to note is that include_directories adds both the source directory and corresponding build directory to include path, so you don't have to care.
#青龙更新 青龙 v2.18.1 更新说明 青龙 v2.18.1 发布!本次更新优化功能并修复问题: • 新增功能:内置 QLAPI 增加环境变量和系统通知 API。 • 调整:移除 nedb 和 sentry,不再支持 2.10.x 版本自动迁移。 • 修复:多语言翻译问题改进。 更新方法: • 面板更新:系统设置 -> 其他设置 -> 检查更新 • 容器内更新:执行 ql update • Debian 用户:直接同步更新。 • 宿主机更新:运行命令 docker run --rm -v /var/run/docker.sock:/var/run/docker.sock containrrr/watchtower -cR <容器名> 版本镜像: • 正式版:whyour/qinglong:latest • Python3.10 正式版:whyour/qinglong:python3.10 • Debian 版:whyour/qinglong:debian • Python3.10 Debian 版:whyour/qinglong:debian-python3.10 • NPM 安装:npm i -g @whyour/qinglong 📢 群聊: @TossLab 🎈 频道: @TossLabChannel ❗️ ❗️ ❗️ ❗️ ❗️ ❗️ ❗️ ❗️ 🔘折腾系列频道 - 全面介绍 🔘境外离岸银行教程合集目录 🔘折腾实验室优质Github项目合集
Hashtags
找到 2 条相似帖子
搜索 #meson
@tokenpocket_channel · Post #1287 · 2024/03/13 10:34
🔥New DEX Integration on the [#TokenPocket] Market page: [@mesonfi] ✅Starting now, effortlessly bridge the stablecoins on [@BNBCHAIN], [@arbitrum], etc. to [#BTC] on [@MerlinLayer2], etc. directly on the TokenPocket Market page with the seamless cross-chain bridge service from [@mesonfi]. Download and Enjoy 👉https://www.tokenpocket.pro/ [#TokenPocket] [#CrossChainBridges] [#meson] 【Details】https://twitter.com/TokenPocket_TP/status/1767861124576301076 【Powered By】Crypto Box