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

Add Text Server related options to the build profiles editor. #63871

Merged
merged 1 commit into from Aug 5, 2022

Conversation

bruvzg
Copy link
Member

@bruvzg bruvzg commented Aug 3, 2022

  • Adds SCons options to disable Brotli and Graphite.
  • Adds option categories to the build profiles editor.
  • Adds options default state to the build profiles editor.
  • Adds Text Server related options to the build profiles editor.
  • Fix misplaced OpenGL/Vulkan SCons options (were shifted due to missing "rendering device" option).

Screenshot 2022-08-03 at 13 40 01

Comment on lines 6 to 12
from SCons.Script import BoolVariable, PathVariable, Variables, Help

opts = Variables()
opts.Add(BoolVariable("brotli", "Enable Brotli decompressor for WOFF2 fonts support", True))

opts.Update(env)
Help(opts.GenerateHelpText(env))
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think updating the opts and help might mess with this hack repeated multiple times in the SConstruct:

env_base["platform"] = selected_platform # Must always be re-set after calling opts.Update().

We should probably solve it properly as it's a hassle.

As a side note, PathVariable doesn't seem used?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"Mono" module seems to be doing the same, without resetting env_base["platform"].

Maybe modules should have separate function to return options, like platforms.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think updating the opts and help might mess with this hack repeated multiple times

Does not seem to be any difference, but I have replaced it with the get_opts() method, similar to the one used in platforms.

Adds SCons options to disable Brotli and Graphite.
Adds option categories to the build profiles editor.
Adds options default state to the build profiles editor.
Adds Text Server related options to the build profiles editor.
Fix misplaced OpenGL/Vulkan SCons options.
@akien-mga akien-mga merged commit bd833f8 into godotengine:master Aug 5, 2022
@akien-mga
Copy link
Member

Thanks!

@bruvzg bruvzg deleted the ts_build_options branch August 6, 2022 06:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants