BrettMayson / HEMTT

Build System for Arma 3
http://hemtt.dev/
GNU General Public License v2.0
113 stars 40 forks source link

Support single-component build #595

Closed jonpas closed 11 months ago

jonpas commented 1 year ago

CUP is huge, building all of it with binarization takes over 7 minutes on a 5800X3D. A requirement for partial or single-component builds has presented itself.

Partial builds have been problematic in the past, relying on metadata resulted in requirement for hemtt clean, which is not too user friendly.

I recommend a simple option to build a single component without anything else. Do not care if other components are built or not, put it in the hands of the user. Essentially HEMTT should only build the PBO and that's it.

Throw a warning for it so users are informed the single-component build might not function if they do not also build the rest.

hemtt build <component> or hemtt build --single <component>

BrettMayson commented 11 months ago

This would be fairly straightforward to implement quickly, but it would result in the specified addon being the only PBO in .hemttout, as it gets cleared when the build starts. That would be the bigger refactor to add support for this

jonpas commented 11 months ago

If --single is given, skip clearing.