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

Remove last editor code dependencies in template build #59644

Merged
merged 1 commit into from
Mar 28, 2022

Conversation

akien-mga
Copy link
Member

@akien-mga akien-mga commented Mar 28, 2022

SConstruct change (+ previous PRs #59631 #59635 #59636) also makes it possible to outright delete the editor folder in a tools=no build, which we use in CI to ensure no invalid cross-dependencies are added.

Part of #53295.

Note that there are still editor dependencies in scene code, but the remaining ones are enclosed in #ifdef TOOLS_ENABLED i.e. they're only used in actual editor builds.

SConstruct change also makes it possible to outright delete the `editor`
folder in a `tools=no` build, which we use in CI to ensure no invalid
cross-dependencies are added.
Comment on lines +81 to +82
// FIXME: Hardcoded to avoid editor dependency.
#define GLTF_IMPORT_USE_NAMED_SKIN_BINDS 16
Copy link
Member Author

Choose a reason for hiding this comment

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

This needs further work from @godotengine/import. Either the enum can be replicated, or it should be moved to a non-editor file.

Copy link
Member

Choose a reason for hiding this comment

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

See previous attempt #48914 Can ask @reduz if he approves?

Copy link
Member Author

Choose a reason for hiding this comment

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

That's one way to solve it yeah :)

Comment on lines +258 to +263
#ifdef TOOLS_ENABLED
ResourceImporterWAV::_compress_ima_adpcm(left, bleft);
ResourceImporterWAV::_compress_ima_adpcm(right, bright);
#else
ERR_PRINT("AudioEffectRecord cannot do IMA ADPCM compression at runtime.");
#endif
Copy link
Member Author

Choose a reason for hiding this comment

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

This will have to be reworked @godotengine/audio.

Either ResourceImporterWAV::_compress_ima_adpcm should be moved to core or servers, or this should be changed to ensure this is editor only code (and thus moved to an import plugin?).

@akien-mga akien-mga merged commit 5149db8 into godotengine:master Mar 28, 2022
@akien-mga akien-mga deleted the template-no-editor-dep branch March 28, 2022 21:35
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.

2 participants