--
--
Chromium Developers mailing list: chromi...@chromium.org
View archives, change email options, or unsubscribe:
http://groups.google.com/a/chromium.org/group/chromium-dev
---
You received this message because you are subscribed to the Google Groups "Chromium-dev" group.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/chromium-dev/CAEoffTAXczssXU%3D5FENfFDV8Usk2g-hLx1H_qAJ2-5r_hmzQxQ%40mail.gmail.com.
It was my impression that the gclient conditionals are supposed to match gn args. Is that not the case?
If so, could we just key this off enable_nacl?
Hm, we already have .gclient to configure what we target (which I think most people don't edit a lot), and args.gn (which I think is heavily used). I think it'd be good to try to not introduce a 3rd mechanism.
For example, maybe DEPS pulling could be done by a build step instead of by `gclient sync`, then each build output directory would do this correctly on its own based on its arg (and they'd all download to the same place, so that if two build dirs need e.g. the android sdk, we'd only download it once)?
On Fri, Sep 22, 2017 at 2:49 PM, Nico Weber <tha...@chromium.org> wrote:Hm, we already have .gclient to configure what we target (which I think most people don't edit a lot), and args.gn (which I think is heavily used). I think it'd be good to try to not introduce a 3rd mechanism.The gclient conditional values are set in .gclient (alongside target_os). Given that we also have dependencies on N different env vars today, this work is actually trying to reduce the number of mechanisms.For example, maybe DEPS pulling could be done by a build step instead of by `gclient sync`, then each build output directory would do this correctly on its own based on its arg (and they'd all download to the same place, so that if two build dirs need e.g. the android sdk, we'd only download it once)?I'm not sure I fully follow you here, but this sounds like you'd do something like a `git clone` at first plus N different `gclient syncs` (one for each build directory) and hope (?) that they were all compatible? What if they weren't?
On Fri, Sep 22, 2017 at 6:27 PM, Dirk Pranke <dpr...@chromium.org> wrote:On Fri, Sep 22, 2017 at 2:49 PM, Nico Weber <tha...@chromium.org> wrote:Hm, we already have .gclient to configure what we target (which I think most people don't edit a lot), and args.gn (which I think is heavily used). I think it'd be good to try to not introduce a 3rd mechanism.The gclient conditional values are set in .gclient (alongside target_os). Given that we also have dependencies on N different env vars today, this work is actually trying to reduce the number of mechanisms.For example, maybe DEPS pulling could be done by a build step instead of by `gclient sync`, then each build output directory would do this correctly on its own based on its arg (and they'd all download to the same place, so that if two build dirs need e.g. the android sdk, we'd only download it once)?I'm not sure I fully follow you here, but this sounds like you'd do something like a `git clone` at first plus N different `gclient syncs` (one for each build directory) and hope (?) that they were all compatible? What if they weren't?Can we have incompatible syncs? I thought each sync config basically adds stuff, so I would've thought we can't really have conflicts -- you just might have to download some packages for one config that you don't need for the other (but that don't hurt for the other either). Is that not correct?
I posted https://chromium-review.googlesource.com/c/chromium/src/+/681854 so we have something specific to discuss.
There's a bit of ugliness that the variable is passed to GN as a string. I was thinking we could provide a way for gclient_gn_args to specify types, and that way pass the variable as a bool.
On Mon, Sep 25, 2017 at 8:25 AM, Paweł Hajdan, Jr. <phajd...@chromium.org> wrote:There's a bit of ugliness that the variable is passed to GN as a string. I was thinking we could provide a way for gclient_gn_args to specify types, and that way pass the variable as a bool.Yeah, let's see if we can figure out a way to avoid that (in a different thread), before it gets too embedded and hard to change.