Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build profile/configuration #80

Open
easeway opened this issue Sep 20, 2016 · 1 comment
Open

Build profile/configuration #80

easeway opened this issue Sep 20, 2016 · 1 comment

Comments

@easeway
Copy link
Member

easeway commented Sep 20, 2016

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 easeway added this to the v1.2.0 milestone Sep 20, 2016
@easeway easeway added question and removed .P2 labels Oct 5, 2016
@easeway easeway removed this from the v1.2.0 milestone Oct 5, 2016
@easeway
Copy link
Member Author

easeway commented Oct 5, 2016

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant