Build no longer works with enable_mdns=false |
||||
Issue descriptionIn the GN config, the enable_service_discovery variable is tied to to the enable_mdns variable. One can manually set enable_mdns = false and the build used to work, but that is no longer the case. This is probably due to r472149 which moved some mdns code out of an if (enable_service_discovery) block in chrome/browser/extensions/BUILD.gn and into chrome/browser/media/router/discovery/BUILD.gn. The media router build config is gated only on enable_extensions.
,
Aug 21 2017
I didn't write any of this code originally, so I'm not super knowledgable about all this. FWIW, in chrome/common/features.gni, we have: enable_service_discovery = enable_mdns || is_mac and in net/features.gni, we have: enable_mdns = is_win || is_linux I haven't checked all the uses of the two variables to figure out when it's appropriate to use one vs. the other.
,
Aug 21 2017
I forgot to mention the real motivation comes from being able to build with printing turned off. Previously, the build config that would do that is: enable_print_preview = false enable_basic_printing = false enable_mdns = false enable_pdf = false But now this build config does not work anymore. Doing some local hacking, I came up with https://chromium-review.googlesource.com/624562 to get it working again. It's probably not right, but I'm just throwing the CL out there for those interested.
,
Aug 28 2017
Bin, can you PTAL?
,
Sep 15 2017
Mark, if enable_service_discovery = false, do we disable both DIAL and mDNS discovery, or just disable mDNS (DIAL still work, dual discovery still work, Cast devices will still be available).
,
Sep 15 2017
No, I don't think we should change the meaning of the flag. Setting it to false should just disable the local discovery backend, which is mDNS. I guess we need to guard some of the source we moved that depends on enable_service_discovery. I don't really know the history or motivations for these flags, maybe reaching out to the local discovery OWNERs (gene@ and vitalybuka@) might shed some light.
,
Mar 30 2018
,
Aug 2
|
||||
►
Sign in to add a comment |
||||
Comment 1 by mfo...@chromium.org
, Aug 21 2017