Are there particular issues with option 1 that we're trying to avoid? In
other words, have we had problems in the confvars.sh world that we need to
address? (Aside from converting .sh -> .py).

Although there are aspects of option 2) that I like, I could also see
something like toolkit/moz.configure becoming hard to follow where you'd
have browser-specific sections and android-specific sections all
interspersed with each other. So I would vote for option 1 at the moment,
unless there's a more concrete example of a problem we'd avoid with 2.

-Mike

On Tue, May 3, 2016 at 4:45 PM, Christopher Manchester <
[email protected]> wrote:

> We're moving some things currently defined in various confvars.sh files to
> Python configure (moz.configure), and have reached a point where feedback
> would be helpful, as we are replacing a relatively longstanding thing, and
> many are likely to interact with these options in the future.
>
> The competing proposals are:
>
> 1. Define options in a central location, and set them with imply_option in
> a project-specific moz.configure. For example:
>
> in toolkit/moz.configure:
>
> +project_option('MOZ_MOBILE_FOO',
> +                     help="Build foo if required")
>
> in mobile/android/moz.configure and any others that need it:
>
> +imply_option('MOZ_MOBILE_FOO', True)
>
> 2. Define options in a central location, and allow setting them with a
> templated function (imply_option in a project specific moz.configure might
> still be permitted, which would be useful for projects outside of the
> tree). Same example:
>
> in toolkit/moz.configure:
>
> +project_option('MOZ_MOBILE_FOO',
> +                     help="Build foo if required",
> +                     condition=enabled_for("mobile/android", "b2g"))
>
> Just one point in favor of each: option 1 is quite close to what we have
> today, while 2 puts more information about a flag in a single location,
> which might make things easier to understand.
>
> Chris
>
>
> _______________________________________________
> dev-builds mailing list
> [email protected]
> https://lists.mozilla.org/listinfo/dev-builds
>
>
_______________________________________________
dev-builds mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-builds

Reply via email to