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

option 添加联动功能 #4878

Open
Dozingfiretruck opened this issue Mar 26, 2024 · 11 comments
Open

option 添加联动功能 #4878

Dozingfiretruck opened this issue Mar 26, 2024 · 11 comments

Comments

@Dozingfiretruck
Copy link

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

通过option a 不同状况选择开启不同的option b c d 并支持menu,即 option a为“123”时候option b开启,option a为“456”时候option c开启,mune动态显示/隐藏不同的选项

描述可能的解决方案

wu

描述你认为的候选方案

No response

其他信息

No response

@Issues-translate-bot
Copy link

Bot detected the issue body's language is not English, translate it automatically.


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 solutions

wu

Describe your alternatives

No response

other information

No response

@waruqi
Copy link
Member

waruqi commented Mar 26, 2024

这个我很早之前就想过,但是按目前的架构,实现起来比较复杂,短期内肯定是支持不了的。

@Issues-translate-bot
Copy link

Bot detected the issue body's language is not English, translate it automatically.


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.

@Dozingfiretruck
Copy link
Author

这个我很早之前就想过,但是按目前的架构,实现起来比较复杂,短期内肯定是支持不了的。

好的,如果做的话我这可以帮忙测试,我这也有调试环境

@Issues-translate-bot
Copy link

Bot detected the issue body's language is not English, translate it automatically.


I have thought about this a long time ago, but according to the current architecture, 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.

@waruqi
Copy link
Member

waruqi commented Apr 30, 2024

联动可以在 after_check 里面 配合 add_deps 做。。参考:https://github.com/tboox/tbox/blob/c6b0a56076941b8263e162c7fe7b0870ea44e09c/src/xmake.lua#L43

@Issues-translate-bot
Copy link

Bot detected the issue body's language is not English, translate it automatically.


Linkage can be done in after_check with add_deps. . Reference: https://github.com/tboox/tbox/blob/c6b0a56076941b8263e162c7fe7b0870ea44e09c/src/xmake.lua#L43

@Dozingfiretruck
Copy link
Author

联动可以在 after_check 里面 配合 add_deps 做。。参考: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内核一样

@Issues-translate-bot
Copy link

Bot detected the issue body's language is not English, translate it automatically.


Linkage can be done in after_check with add_deps. . Reference: https://github.com/tboox/tbox/blob/c6b0a56076941b8263e162c7fe7b0870ea44e09c/src/xmake.lua#L43

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.

@waruqi
Copy link
Member

waruqi commented Apr 30, 2024

menuconfig 短期内支持不了。

@Issues-translate-bot
Copy link

Bot detected the issue body's language is not English, translate it automatically.


menuconfig will not be supported in the short term.

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

No branches or pull requests

3 participants