Platform/Platform-specific build defines: Difference between revisions
< Platform
Jump to navigation
Jump to search
(Add FxOS TV stuff) |
(B2GDroid was removed in bug 1256401) |
||
Line 22: | Line 22: | ||
!Fennec | !Fennec | ||
!B2G | !B2G | ||
!iOS | !iOS | ||
!FxOS TV | !FxOS TV | ||
Line 39: | Line 38: | ||
| | | | ||
| | | | ||
<!-- Android: Fennec, B2G | <!-- Android: Fennec, B2G --> | ||
| | | | ||
| | | | ||
Line 61: | Line 59: | ||
| | | | ||
| | | | ||
<!-- Android: Fennec, B2G | <!-- Android: Fennec, B2G --> | ||
| | | | ||
| | | | ||
Line 83: | Line 80: | ||
| | | | ||
| | | | ||
<!-- Android: Fennec, B2G | <!-- Android: Fennec, B2G --> | ||
| | | | ||
| | | | ||
Line 105: | Line 101: | ||
| | | | ||
| | | | ||
<!-- Android: Fennec, B2G | <!-- Android: Fennec, B2G --> | ||
| | | | ||
| | | | ||
Line 127: | Line 122: | ||
| style="background: green; color: white"|✓ | | style="background: green; color: white"|✓ | ||
| style="background: green; color: white"|✓ | | style="background: green; color: white"|✓ | ||
<!-- Android: Fennec, B2G | <!-- Android: Fennec, B2G --> | ||
| style="background: green; color: white"|✓ | | style="background: green; color: white"|✓ | ||
| style="background: green; color: white"|✓ | | style="background: green; color: white"|✓ | ||
Line 149: | Line 143: | ||
| style="background: green; color: white"|✓ | | style="background: green; color: white"|✓ | ||
| style="background: green; color: white"|✓ | | style="background: green; color: white"|✓ | ||
<!-- Android: Fennec, B2G | <!-- Android: Fennec, B2G --> | ||
| style="background: green; color: white"|✓ | | style="background: green; color: white"|✓ | ||
| style="background: green; color: white"|✓ | | style="background: green; color: white"|✓ | ||
Line 171: | Line 164: | ||
| | | | ||
| | | | ||
<!-- Android: Fennec, B2G | <!-- Android: Fennec, B2G --> | ||
| style="background: green; color: white"|✓ | | style="background: green; color: white"|✓ | ||
| style="background: green; color: white"|✓ | | style="background: green; color: white"|✓ | ||
Line 193: | Line 185: | ||
| style="background: green; color: white"|✓ | | style="background: green; color: white"|✓ | ||
| style="background: green; color: white"|✓ | | style="background: green; color: white"|✓ | ||
<!-- Android: Fennec, B2G | <!-- Android: Fennec, B2G --> | ||
| | | | ||
| style="background: green; color: white"|✓ | | style="background: green; color: white"|✓ | ||
Line 237: | Line 206: | ||
| | | | ||
| style="background: green; color: white"|✓ | | style="background: green; color: white"|✓ | ||
<!-- Android: Fennec, B2G | <!-- Android: Fennec, B2G --> | ||
| | | | ||
| | | | ||
Line 259: | Line 227: | ||
| style="background: green; color: white"|✓ | | style="background: green; color: white"|✓ | ||
| style="background: green; color: white"|✓ | | style="background: green; color: white"|✓ | ||
<!-- Android: Fennec, B2G, | <!-- Android: Fennec, B2G, --> | ||
| | | | ||
| | | | ||
Line 281: | Line 248: | ||
| | | | ||
| | | | ||
<!-- Android: Fennec, B2G | <!-- Android: Fennec, B2G --> | ||
| style="background: green; color: white"|✓ | | style="background: green; color: white"|✓ | ||
| | | | ||
<!-- iOS --> | <!-- iOS --> | ||
| | | | ||
Line 303: | Line 269: | ||
| | | | ||
| | | | ||
<!-- Android: Fennec, B2G | <!-- Android: Fennec, B2G --> | ||
| | | | ||
| style="background: green; color: white"|✓ | | style="background: green; color: white"|✓ | ||
<!-- iOS --> | <!-- iOS --> | ||
| | | | ||
Line 325: | Line 290: | ||
| | | | ||
| | | | ||
<!-- Android: Fennec, B2G | <!-- Android: Fennec, B2G --> | ||
| | | | ||
| | | | ||
Line 360: | Line 324: | ||
!Fennec | !Fennec | ||
!B2G | !B2G | ||
!iOS | !iOS | ||
!FxOS TV | !FxOS TV | ||
Line 377: | Line 340: | ||
| style="background: green; color: white"|✓ | | style="background: green; color: white"|✓ | ||
| style="background: green; color: white"|✓ | | style="background: green; color: white"|✓ | ||
<!-- Android: Fennec, B2G | <!-- Android: Fennec, B2G --> | ||
| style="background: green; color: white"|✓ | | style="background: green; color: white"|✓ | ||
| style="background: green; color: white"|✓ | | style="background: green; color: white"|✓ | ||
Line 399: | Line 361: | ||
| | | | ||
| style="background: green; color: white"|✓ | | style="background: green; color: white"|✓ | ||
<!-- Android: Fennec, B2G | <!-- Android: Fennec, B2G --> | ||
| | | | ||
| | | | ||
Line 421: | Line 382: | ||
| | | | ||
| | | | ||
<!-- Android: Fennec, B2G | <!-- Android: Fennec, B2G --> | ||
| style="background: green; color: white"|✓ | | style="background: green; color: white"|✓ | ||
| | | | ||
<!-- iOS --> | <!-- iOS --> | ||
| | | | ||
Line 465: | Line 403: | ||
| style="background: green; color: white"|✓ | | style="background: green; color: white"|✓ | ||
| style="background: green; color: white"|✓ | | style="background: green; color: white"|✓ | ||
<!-- Android: Fennec, B2G | <!-- Android: Fennec, B2G --> | ||
| | | | ||
| style="background: green; color: white"|✓ | | style="background: green; color: white"|✓ | ||
<!-- iOS --> | <!-- iOS --> | ||
| | | | ||
Line 487: | Line 424: | ||
| | | | ||
| style="background: green; color: white"|✓ | | style="background: green; color: white"|✓ | ||
<!-- Android: Fennec, B2G | <!-- Android: Fennec, B2G --> | ||
| | | | ||
| | | | ||
Line 509: | Line 445: | ||
| ?? | | ?? | ||
| ?? | | ?? | ||
<!-- Android: Fennec, B2G | <!-- Android: Fennec, B2G --> | ||
| ?? | | ?? | ||
| ?? | | ?? | ||
Line 531: | Line 466: | ||
| | | | ||
| | | | ||
<!-- Android: Fennec, B2G | <!-- Android: Fennec, B2G --> | ||
| | | | ||
| | | |
Revision as of 14:18, 16 May 2016
In the Gecko code we have a bunch of preprocessor conditions that help us conditionally compile code for specific platforms. These can get confusing so here is a handy-dandy table to help you keep them straight.
OS | Windows | OS X | Linux-gtk | Android | iOS | FxOS TV | ||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Product | Desktop | B2G | Mulet | Desktop | B2G | Mulet | Desktop | B2G | Mulet | Fennec | B2G | iOS | FxOS TV | |
XP_WIN | ✓ | ✓ | ✓ | ?? | ||||||||||
XP_DARWIN | ✓ | ✓ | ✓ | ✓ | ?? | |||||||||
XP_MACOSX | ✓ | ✓ | ✓ | ?? | ||||||||||
XP_IOS | ✓ | ?? | ||||||||||||
XP_UNIX | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ?? | ||||
XP_LINUX | ✓ | ✓ | ✓ | ✓ | ✓ | ?? | ||||||||
ANDROID | ✓ | ✓ | ?? | |||||||||||
MOZ_B2G | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ?? | ||||||
MOZ_MULET | ✓ | ✓ | ✓ | ?? | ||||||||||
MOZ_WIDGET_GTK | ✓ | ✓ | ✓ | ?? | ||||||||||
MOZ_WIDGET_ANDROID | ✓ | ?? | ||||||||||||
MOZ_WIDGET_GONK | ✓ | |||||||||||||
MOZ_WIDGET_UIKIT | ✓ | ?? |
Prefs files
Here is a similar table, but to see which prefs get used in which product:
OS | Windows | OS X | Linux-gtk | Android | iOS | FxOS TV | ||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Product | Desktop | B2G | Mulet | Desktop | B2G | Mulet | Desktop | B2G | Mulet | Fennec | B2G | iOS | FxOS TV | |
all.js | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ?? | |
firefox.js | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ?? | |||||||
mobile.js | ✓ | ?? | ||||||||||||
b2g.js | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ?? | ||||||
mulet.js | ✓ | ✓ | ✓ | ?? | ||||||||||
graphene.js | ?? | ?? | ?? | ?? | ?? | ?? | ?? | ?? | ?? | ?? | ?? | ?? | ?? | |
tv/custom-prefs.js | ✓ |
WARNING: Until bug 1174234 is resolved firefox.js prefs will override mulet.js prefs on Mulet.
Reftest conditions
Here is another table that tells you what conditions are true on various platforms for use in reftest.list conditions.
OS | Windows | OS X | Linux-gtk | Android | iOS | |||||
---|---|---|---|---|---|---|---|---|---|---|
Product | Desktop | B2G | Desktop | B2G | Desktop | B2G | Mulet | Fennec | B2G | iOS |
B2G | ✓ | |||||||||
B2GDT | ✓ | ✓ | ✓ | |||||||
Android | ✓ | |||||||||
cocoaWidget | ✓ | ✓ | ||||||||
gtkWidget | ✓ | ✓ | ✓ | |||||||
qtWidget | ||||||||||
winWidget | ✓ | ✓ | ||||||||
Mulet | ✓ |
Mochitest conditions
Here is another table that tells you what different condition values are on various platforms for use in mochitest.ini/a11y.ini/chrome.ini/browser.ini conditions.
OS | Windows | OS X | Linux-gtk | Android | iOS | |||||
---|---|---|---|---|---|---|---|---|---|---|
Product | Desktop | B2G | Desktop | B2G | Desktop | B2G | Mulet | Fennec | B2G | iOS |
os | win | ?? | mac | ?? | linux | ?? | ?? | android | b2g | ?? |
toolkit | windows | ?? | cocoa | ?? | gtk2 or gtk3 | ?? | ?? | android | gonk | ?? |
buildapp | ?? | ?? | ?? | ?? | ?? | ?? | mulet | ?? | b2g | ?? |
You may also be interested in Platform/Channel-specific_build_defines