-
-
Notifications
You must be signed in to change notification settings - Fork 21.7k
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
Remove last editor code dependencies in template build #59644
Conversation
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.
// FIXME: Hardcoded to avoid editor dependency. | ||
#define GLTF_IMPORT_USE_NAMED_SKIN_BINDS 16 |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
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 :)
#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 |
There was a problem hiding this comment.
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?).
SConstruct change (+ previous PRs #59631 #59635 #59636) also makes it possible to outright delete the
editor
folder in atools=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 inscene
code, but the remaining ones are enclosed in#ifdef TOOLS_ENABLED
i.e. they're only used in actual editor builds.