Adding a NINJA_PREFIX scons option would add more flexibility to the ninja filename that scons generates.
The default value would be build. I believe the intention is that the following combinations would generate the following files:
- NINJA_PREFIX=optimized -> optimized.ninja
- NINJA_SUFFIX=optimized -> build.ninja.optimized
- NINJA_PREFIX=prefix NINJA_SUFFIX=suffix -> prefix.ninja.suffix (I personally have no use case for this, just my understanding)
Side note: I believe the Generating: build.ninja line output near the end of the generate-ninja target does not currently factor in the suffix.