Replies: 2 comments
-
Title: target:installdir("xx") will not automatically create the folder Xmake version2.8.5+20231124 Operating system version and architectureLinux 720ce3a659a2 5.15.90.1-microsoft-standard-WSL2 #1 SMP Fri Jan 27 02:56:13 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux Describe the problempackage:installdir() will automatically create a directory tree that does not exist. target:installdir() does not have this feature. Is it omitted or due to other considerations? Expected resultsI hope target:installdir also provides this function Project configurationnone Additional information and error logsNone |
Beta Was this translation helpful? Give feedback.
-
package:installdir() 用于包的安装,自动创建目录只是为了简化包的 on_install 脚本,反正安装包总共要创建目录的,其他地方也不会访问到这个接口。。 target:intalldir() 在任何脚本中都能访问,不一定就是在安装过程中,不会去默认创建它。。也可能大部分场景仅仅只是 readonly,去创建反而有问题 |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Xmake 版本
2.8.5+20231124
操作系统版本和架构
Linux 720ce3a659a2 5.15.90.1-microsoft-standard-WSL2 #1 SMP Fri Jan 27 02:56:13 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux
描述问题
package:installdir() 会自动创建不存在的目录树,target:installdir() 没有这个特性,是遗漏了还是出于其他考量呢?

期待的结果
希望 target:installdir 也提供这个功能
工程配置
无
附加信息和错误日志
无
Beta Was this translation helpful? Give feedback.
All reactions