Add enableVariants method to enable multiple variants in one time.
Initialize build object at the beginning.

Summary:

We should set the properties later to simplify the logic,
including checking, patching, adding/removing variants automatically.