hmake icon indicating copy to clipboard operation
hmake copied to clipboard

Build profile/configuration

Open easeway opened this issue 8 years ago • 1 comments

Allow HyperMake to accept configuration which is a collection variables and can be referenced in targets as environment variables. A configuration with preset variables is called build profile. Here's the example in settings section:

settings:
    variables:
        var1:
            description: what's var1
            default: default value
            required: true/false
            env: environment variable name in targets, default is HMAKE_VAR_VAR1
        var2:
        ...
    profiles:
        profile1:
            var1: value1
            var2: value2
        profile2:
            var1: value1.1
            var2: value2.2
    default-profile: profile1

Introduce --profile=profile-name, -o profile-name to select pre-defined profile. Introduce --define var=val, -D var=val to define a variable

easeway avatar Sep 20 '16 15:09 easeway

Move out of milestone as not yet determined if this feature is valuable without introducing too much complexity.

easeway avatar Oct 05 '16 07:10 easeway