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.
-
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() 没有这个特性,是遗漏了还是出于其他考量呢?
![image](https://private-user-images.githubusercontent.com/47598093/301551480-5b56a9ca-1127-4213-a3f7-df6c8a5c2334.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTg3NzY1MzIsIm5iZiI6MTcxODc3NjIzMiwicGF0aCI6Ii80NzU5ODA5My8zMDE1NTE0ODAtNWI1NmE5Y2EtMTEyNy00MjEzLWEzZjctZGY2YzhhNWMyMzM0LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA2MTklMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNjE5VDA1NTAzMlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWQ2ZjQxODVjMjcxNzcwYWJhY2UzMWIwNmRkMDM2MjBlY2Q0YjU3NTQwNmUzZjdiZjM0NGMxYmE1NDQzMTRjYjUmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.80zy0aoVlowUi2MZvYg1iebZAR9Y9BTGp3Up_U1qcjo)
期待的结果
希望 target:installdir 也提供这个功能
工程配置
无
附加信息和错误日志
无
Beta Was this translation helpful? Give feedback.
All reactions