Skip to content
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

希望能同时配置和支持多个platform #28

Open
ToKiNoBug opened this issue Jul 17, 2023 · 5 comments
Open

希望能同时配置和支持多个platform #28

ToKiNoBug opened this issue Jul 17, 2023 · 5 comments

Comments

@ToKiNoBug
Copy link

你在什么场景下需要该功能?

我希望这个插件能同时维持多个不同Platform、不同architecture、不同的mode和不同的additional configuration,就像clion的cmake功能那样(clion将一系列编译选项的集合称为profile,这里沿用这个词)。具体来说,就是能同时调用xmake配置不同的profile,也能先后依次构建不同的profile,或者只构建一个profile;每个profile可以被启用或禁用。这样就能同时测试一个项目在不同平台能否都正常编译,而不用反复修改设置。

描述可能的解决方案

参照clion的cmake设置,将platform、architecture、mode和additional configuration这四条设置的组合称为一个profile,允许同时存在多个profile。

每个profile的信息可以存储于.xmake/platform/architecture/mode/[additional configuration的哈希]文件夹下,也可以改而存放在.idea文件夹里;

相应的,每个target的依赖文件可以存在build/.deps/[target name]/platform/architecture/mode/[additional configuration的哈希]文件夹里;编译产生的目标文件可以放在build/.objs/[target name]/platform/architecture/mode/[additional configuration的哈希]文件夹里;最终产生的二进制文件放在build/[target name]/platform/architecture/mode/[additional configuration的哈希]文件夹

描述你认为的候选方案

No response

其他信息

No response

@waruqi
Copy link
Member

waruqi commented Jul 17, 2023

目前这个插件没精力维护,你可以直接提 pr 过来

@ToKiNoBug
Copy link
Author

目前这个插件没精力维护,你可以直接提 pr 过来

好b( ̄▽ ̄)d 

@Seedking
Copy link
Member

我正在做这个东西,六月左右就会添加。
六月前准备为更方便扩展而重构代码,不添加新功能

@waruqi
Copy link
Member

waruqi commented Aug 18, 2024

试下这个 patch #46

@windchargerj
Copy link
Contributor

Thanks to @waruqi for tirelessly helping out, hope this can help you. (#51, #54 )

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants