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 Web header to quickly debug the type of an export #94072

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

adamscott
Copy link
Member

This PR adds "web_extensions" to OS.has_feature().

It also add an header to the boot sequence of the Web build in order to quickly discriminate which features are enabled for that export.

Capture d’écran, le 2024-07-08 à 09 23 16

platform/web/web_main.cpp Outdated Show resolved Hide resolved
Comment on lines +156 to +158
if (p_feature == "web_extensions") {
return true;
}
Copy link
Member

@Calinou Calinou Jul 8, 2024

Choose a reason for hiding this comment

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

I wonder if this should be a generic gdextension feature instead, so that it can be enabled on all platforms that support GDExtension at build-time.

If we decide to keep the web_ prefix, then it should be web_gdextension, similar to web_macos, web_ios and so on.

Copy link
Collaborator

Choose a reason for hiding this comment

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

I think it could make sense to have a generic gdextension feature, if also have GDEXTENSION_ENABLED (or NOGDEXTENSION) flag to enable/disable the GDExtension code (though I'm not sure if it's worth it).

In case, we might want to add the feature flag to the export plugin too like done in #93556

Copy link
Member Author

Choose a reason for hiding this comment

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

@Faless I'm wondering how we can do this properly. Like, for the web, gdextension could be disabled, but with the dlink enabled. Yes, we could remove the dlink setting to bind it with the gdextension value, but gdextension off would be the equivalent of telling the export "don't export any shared objects", isn't it?

@akien-mga akien-mga modified the milestones: 4.3, 4.4 Jul 31, 2024
@adamscott adamscott force-pushed the print-web-release-version branch from 552e914 to b41d625 Compare November 6, 2024 19:38
@adamscott adamscott force-pushed the print-web-release-version branch from b41d625 to 9ad3f87 Compare November 6, 2024 19:39
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.

4 participants