移植Linux自带的包管理方式 #1607
Replies: 6 comments 22 replies
-
没懂,这是要表达什么呢?
xmake 的包管理,这些原本就全支持了
这些原本也全支持 |
Beta Was this translation helpful? Give feedback.
-
安装了xmake,想安装
期望的结果是,上面的命令以默认配置装好 |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
cmake查找包的方式有两种: cmake还内置了少数package脚本,既不需要FindXXX.cmake也不需要XXXConfig.cmake,激活xrepo env shell之后直接find_package就能找到,zlib、libpng等属于这种。 |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
#1418 说下一个版本弄, |
Beta Was this translation helpful? Give feedback.
-
一点想法,听听意见
Linux自带的包管理特点
/usr
外目录,如/usr/local
或/opt
,cmakefind_package
优先找这个目录就行有没有办法做成跨平台?
我想了一下,主要两个难点
解决办法
第一个问题,提供依赖文件
第二个问题,源码级支持
有点类似vcpkg,但是库的查找路径统一。如果用cmake,
CMakeLists.txt
不需要额外修改;如果用.sln,设置几个目录就可以。Beta Was this translation helpful? Give feedback.
All reactions