-
-
Notifications
You must be signed in to change notification settings - Fork 815
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
option 添加联动功能 #4878
Comments
Title: option Add linkage function In what scenario do you need this function?Through option a, you can choose to open different options b c d under different conditions and support menu, that is, when option a is "123", option b is enabled, when option a is "456", option c is enabled, and mune dynamically displays/hides different options. Describe possible solutionswu Describe your alternativesNo response other informationNo response |
这个我很早之前就想过,但是按目前的架构,实现起来比较复杂,短期内肯定是支持不了的。 |
I have thought about this a long time ago, but according to the current structure, it is more complicated to implement and will definitely not be supported in the short term. |
好的,如果做的话我这可以帮忙测试,我这也有调试环境 |
Okay, if you do it, I can help test it. I also have a debugging environment. |
联动可以在 after_check 里面 配合 add_deps 做。。参考:https://github.com/tboox/tbox/blob/c6b0a56076941b8263e162c7fe7b0870ea44e09c/src/xmake.lua#L43 |
Linkage can be done in after_check with add_deps. . Reference: https://github.com/tboox/tbox/blob/c6b0a56076941b8263e162c7fe7b0870ea44e09c/src/xmake.lua#L43 |
这种没办法动态修改显示,比如我a配置成true将会打开b,c的配置,我再设置成关闭,b,c也会不显示,或者我d配置成true,f和e的介绍会变更,配置成false,又会变更成其他的并且打开g的可选配置,这些都是动态可变的,要达到make menuconfig的效果,就像配置Linux内核一样 |
There is no way to dynamically modify the display. For example, if I configure a to true, the configuration of b and c will be turned on. If I set it to off, b and c will not be displayed, or if I configure d to true, the introduction of f and e will be Change, configure it to false, and it will change to other and open the optional configuration of g. These are dynamically variable. To achieve the effect of make menuconfig, it is just like configuring the Linux kernel. |
menuconfig 短期内支持不了。 |
menuconfig will not be supported in the short term. |
这个还有机会实现吗? |
Is there still a chance for this to happen? |
或者考虑直接兼容支持 menuconfig+Kconfig ,这样make、cmake 、scons的一些项目也可以更方便的迁移,因为这些都是能支持Kconfig的 |
Or consider direct compatibility and support for menuconfig+Kconfig, so that some projects of make, cmake, and scons can be more easily migrated, because these can support Kconfig. |
你在什么场景下需要该功能?
通过option a 不同状况选择开启不同的option b c d 并支持menu,即 option a为“123”时候option b开启,option a为“456”时候option c开启,mune动态显示/隐藏不同的选项
描述可能的解决方案
wu
描述你认为的候选方案
No response
其他信息
No response
The text was updated successfully, but these errors were encountered: