Closed Bug 1417978 Opened 7 years ago Closed 6 years ago

Don't build and ship Layout Debugger for Fennec and GeckoView

Categories

(Core :: Layout, enhancement, P3)

enhancement

Tracking

()

RESOLVED FIXED
mozilla59
Tracking Status
firefox59 --- fixed

People

(Reporter: nalexander, Assigned: jryans)

References

Details

Attachments

(1 file)

Discussion in https://bugzilla.mozilla.org/show_bug.cgi?id=1417664#c5 suggests that the Layout Debugger shouldn't be built or shipped on Android (i.e., as part of Fennec or as part of GeckoView).  This ticket tracks removing them to simplify assumptions and save APK space.
To be clear, it's only built at all in debug builds, so it doesn't really impact release users:

https://searchfox.org/mozilla-central/rev/550148ab69b2879bfb82ffa698720ede1fa626f2/layout/moz.build#40-41

So, the main benefit would be a small build time improvement when compiling in debug mode locally.
(In reply to J. Ryan Stinnett [:jryans] (use ni?) from comment #1)
> To be clear, it's only built at all in debug builds, so it doesn't really
> impact release users:
> 
> https://searchfox.org/mozilla-central/rev/
> 550148ab69b2879bfb82ffa698720ede1fa626f2/layout/moz.build#40-41
> 
> So, the main benefit would be a small build time improvement when compiling
> in debug mode locally.

Thanks.  This would just be for "GeckoView hygiene", then.  In general, we don't want things to look relevant to GeckoView (and Android in general) when they're not.
What's the canonical way to test for "building for desktop" in a moz.build file for a core module?

Something like:

```
if CONFIG['OS_TARGET'] in ('WINNT', 'Linux', 'Darwin'):
```

or is there a better way?
Flags: needinfo?(nalexander)
Severity: normal → enhancement
Priority: -- → P3
(In reply to J. Ryan Stinnett [:jryans] (use ni?) from comment #3)
> What's the canonical way to test for "building for desktop" in a moz.build
> file for a core module?
> 
> Something like:
> 
> ```
> if CONFIG['OS_TARGET'] in ('WINNT', 'Linux', 'Darwin'):
> ```
> 
> or is there a better way?

I think we generally test for MOZ_WIDGET_TOOLKIT == 'android': see https://searchfox.org/mozilla-central/source/build/moz.build#22.
Flags: needinfo?(nalexander)
Assignee: nobody → jryans
Status: NEW → ASSIGNED
Comment on attachment 8939977 [details]
Bug 1417978 - Stop packaging layout debugger on Android.

https://reviewboard.mozilla.org/r/210256/#review215990

lgtm.  Thanks, Ryan!
Attachment #8939977 - Flags: review?(nalexander) → review+
Pushed by jryans@gmail.com:
https://hg.mozilla.org/integration/autoland/rev/9d2c81fe9e4c
Stop packaging layout debugger on Android. r=nalexander
https://hg.mozilla.org/mozilla-central/rev/9d2c81fe9e4c
Status: ASSIGNED → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla59
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: