Hello Embedded Wizard Team,
We shall try with the clarification provided in previous comment. Here, adding additional information regarding project use case. Please let us know if different solution to be tried.
Requirement:
Customer have multiple variants, for example let's assume 4 variants (A, B, C, D) and each variant shall have 2 startup animation and 2 shutdown animation. All animations are flip-book animations i.e, sequence of images used for a animation.
So, all together there shall be 16 animations [ 4 variants * (2 start anim + 2 shutdown anim) ]
Our concept:
As our memory foot print is low, using IMX RT, the plan is, perform variant specific build to include corresponding startup and shutdown animations and ignore other variant aniamtions
Example: When building target executable for Variant A, include A's 2 startup and 2 shutdown animation only
Out of 2 startup and 2 shutdown animation, which one to play is selected dynamically.
Our environment:
- We are using single Embedded Wizard project and there are also many common functionalities independent of variant as well
- It is not possible to keep all 16 animations in flash. Also, we are not using external memory like SD Card/ external image decoders
Query:
Is it possible to generate code such that, variant independent code and variant dependent code are separated.
By this, during target application build we include "Common sources + Variant specific sources" to generate executable.
Example:
While building for variant A, "Common sources + A Variant specific sources only"
While building for variant B, "Common sources + B Variant specific sources only"
We are thinking to have like Common Sources + Variant specific sources, any other better solution/ suggestion could also help
-
Regards,
Geethanathan