Platform/Platform-specific build defines: Difference between revisions

From MozillaWiki
Jump to navigation Jump to search
m (Added wikitext comment to make the tables easier to edit. Also made tables width:100%)
(Added XP_SOLARIS)
 
(14 intermediate revisions by 2 users not shown)
Line 3: Line 3:
{|border="1" style="text-align: center; width: 100%"
{|border="1" style="text-align: center; width: 100%"
!OS
!OS
!colspan="3"|Windows
!colspan="1"|Windows
!colspan="3"|OS X
!colspan="1"|OS X
!colspan="3"|Linux-gtk
!colspan="1"|Linux-gtk
!colspan="3"|Android
!colspan="2"|Android
!colspan="1"|*BSD
!colspan="1"|Solaris
!iOS
!iOS
|-
|-
!Product
!Product
!Desktop
!Desktop
!B2G
!Mulet
!Desktop
!Desktop
!B2G
!Mulet
!Desktop
!Desktop
!B2G
!Mulet
!Fennec
!Fennec
!B2G
!GeckoView
!B2Gdroid
!Desktop
!Desktop
!iOS
!iOS
|-
|-
!XP_WIN
!XP_WIN
   <!-- Windows: Desktop, B2G, Mulet -->
   <!-- Windows: Desktop -->
|  style="background: green; color: white"|✓
|  style="background: green; color: white"|✓
|  style="background: green; color: white"|✓
   <!-- OS X: Desktop -->
|  style="background: green; color: white"|✓
   <!-- OS X: Desktop, B2G, Mulet -->
|  &nbsp;
|  &nbsp;
  <!-- Linux-gtk: Desktop -->
|  &nbsp;
|  &nbsp;
|  &nbsp;
   <!-- Android: Fennec, GeckoView -->
  <!-- Linux-gtk: Desktop, B2G, Mulet -->
|  &nbsp;
|  &nbsp;
|  &nbsp;
   <!-- Android: Fennec, B2G, B2Gdroid -->
|  &nbsp;
|  &nbsp;
|  &nbsp;
|  &nbsp;
|  &nbsp;
  <!-- BSD, Solaris -->
| &nbsp;
| &nbsp;
   <!-- iOS -->
   <!-- iOS -->
|  &nbsp;
|  &nbsp;
|-
|-
!XP_DARWIN
!XP_DARWIN
   <!-- Windows: Desktop, B2G, Mulet -->
   <!-- Windows: Desktop -->
|  &nbsp;
|  &nbsp;
|  &nbsp;
|  &nbsp;
   <!-- OS X: Desktop, B2G, Mulet -->
   <!-- OS X: Desktop -->
|  style="background: green; color: white"|✓
|  style="background: green; color: white"|✓
|  style="background: green; color: white"|✓
|  style="background: green; color: white"|✓
   <!-- Linux-gtk: Desktop, B2G, Mulet -->
   <!-- Linux-gtk: Desktop -->
|  &nbsp;
|  &nbsp;
|  &nbsp;
  <!-- Android: Fennec, B2G, B2Gdroid -->
|  &nbsp;
|  &nbsp;
  <!-- Android: Fennec, GeckoView -->
|  &nbsp;
|  &nbsp;
|  &nbsp;
|  &nbsp;
  <!-- BSD, Solaris -->
| &nbsp;
| &nbsp;
   <!-- iOS -->
   <!-- iOS -->
|  style="background: green; color: white"|✓
|  style="background: green; color: white"|✓
|-
|-
!XP_MACOSX
!XP_MACOSX
   <!-- Windows: Desktop, B2G, Mulet -->
   <!-- Windows: Desktop -->
|  &nbsp;
|  &nbsp;
|  &nbsp;
|  &nbsp;
   <!-- OS X: Desktop -->
   <!-- OS X: Desktop, B2G, Mulet -->
|  style="background: green; color: white"|✓
|  style="background: green; color: white"|✓
|  style="background: green; color: white"|✓
   <!-- Linux-gtk: Desktop -->
|  style="background: green; color: white"|✓
   <!-- Linux-gtk: Desktop, B2G, Mulet -->
|  &nbsp;
|  &nbsp;
|  &nbsp;
  <!-- Android: Fennec, B2G, B2Gdroid -->
|  &nbsp;
|  &nbsp;
  <!-- Android: Fennec, GeckoView -->
|  &nbsp;
|  &nbsp;
|  &nbsp;
|  &nbsp;
  <!-- BSD, Solaris -->
| &nbsp;
| &nbsp;
   <!-- iOS -->
   <!-- iOS -->
|  &nbsp;
|  &nbsp;
|-
|-
!XP_IOS
!XP_IOS
   <!-- Windows: Desktop, B2G, Mulet -->
   <!-- Windows: Desktop -->
|  &nbsp;
|  &nbsp;
|  &nbsp;
  <!-- OS X: Desktop -->
|  &nbsp;
|  &nbsp;
  <!-- OS X: Desktop, B2G, Mulet -->
   <!-- Linux-gtk: Desktop -->
|  &nbsp;
|  &nbsp;
|  &nbsp;
   <!-- Linux-gtk: Desktop, B2G, Mulet -->
|  &nbsp;
|  &nbsp;
|  &nbsp;
  <!-- Android: Fennec, B2G, B2Gdroid -->
|  &nbsp;
|  &nbsp;
  <!-- Android: Fennec, GeckoView -->
|  &nbsp;
|  &nbsp;
|  &nbsp;
|  &nbsp;
  <!-- BSD, Solaris -->
| &nbsp;
| &nbsp;
   <!-- iOS -->
   <!-- iOS -->
|  style="background: green; color: white"|✓
|  style="background: green; color: white"|✓
|-
|-
!XP_UNIX
!XP_UNIX
   <!-- Windows: Desktop, B2G, Mulet -->
   <!-- Windows: Desktop -->
|  &nbsp;
|  &nbsp;
|  &nbsp;
|  &nbsp;
   <!-- OS X: Desktop, B2G, Mulet -->
   <!-- OS X: Desktop -->
|  style="background: green; color: white"|✓
|  style="background: green; color: white"|✓
  <!-- Linux-gtk: Desktop -->
|  style="background: green; color: white"|✓
|  style="background: green; color: white"|✓
|  style="background: green; color: white"|✓
   <!-- Android: Fennec, GeckoView -->
  <!-- Linux-gtk: Desktop, B2G, Mulet -->
|  style="background: green; color: white"|✓
|  style="background: green; color: white"|✓
|  style="background: green; color: white"|✓
   <!-- Android: Fennec, B2G, B2Gdroid -->
|  style="background: green; color: white"|✓
|  style="background: green; color: white"|✓
|  style="background: green; color: white"|✓
|  style="background: green; color: white"|✓
|  style="background: green; color: white"|✓
  <!-- BSD, Solaris -->
| style="background: green; color: white"|✓
| style="background: green; color: white"|✓
   <!-- iOS -->
   <!-- iOS -->
|  style="background: green; color: white"|✓
|  style="background: green; color: white"|✓
|-
|-
!XP_LINUX
!XP_LINUX
   <!-- Windows: Desktop, B2G, Mulet -->
   <!-- Windows: Desktop -->
|  &nbsp;
|  &nbsp;
  <!-- OS X: Desktop -->
|  &nbsp;
|  &nbsp;
|  &nbsp;
   <!-- Linux-gtk: Desktop -->
  <!-- OS X: Desktop, B2G, Mulet -->
|  &nbsp;
|  &nbsp;
|  &nbsp;
   <!-- Linux-gtk: Desktop, B2G, Mulet -->
|  style="background: green; color: white"|✓
|  style="background: green; color: white"|✓
|  style="background: green; color: white"|✓
  <!-- Android: Fennec, B2G, B2Gdroid -->
|  style="background: green; color: white"|✓
|  style="background: green; color: white"|✓
  <!-- Android: Fennec, GeckoView -->
|  style="background: green; color: white"|✓
|  style="background: green; color: white"|✓
|  style="background: green; color: white"|✓
|  style="background: green; color: white"|✓
  <!-- BSD, Solaris -->
| &nbsp;
| &nbsp;
   <!-- iOS -->
   <!-- iOS -->
|  &nbsp;
|  &nbsp;
|-
|-
!ANDROID
!XP_SOLARIS
   <!-- Windows: Desktop, B2G, Mulet -->
   <!-- Windows: Desktop -->
|  &nbsp;
|  &nbsp;
|  &nbsp;
  <!-- OS X: Desktop, B2G, Mulet -->
|  &nbsp;
|  &nbsp;
  <!-- OS X: Desktop -->
|  &nbsp;
|  &nbsp;
  <!-- Linux-gtk: Desktop -->
|  &nbsp;
|  &nbsp;
   <!-- Linux-gtk: Desktop, B2G, Mulet -->
   <!-- Android: Fennec, GeckoView -->
|  &nbsp;
|  &nbsp;
|  &nbsp;
|  &nbsp;
  <!-- BSD, Solaris -->
|  &nbsp;
|  &nbsp;
  <!-- Android: Fennec, B2G, B2Gdroid -->
| style="background: green; color: white"|✓
| style="background: green; color: white"|✓
|  style="background: green; color: white"|✓
style="background: green; color: white"|✓
   <!-- iOS -->
   <!-- iOS -->
|  &nbsp;
|  &nbsp;
|-
|-
!MOZ_B2G
!ANDROID
   <!-- Windows: Desktop, B2G, Mulet -->
   <!-- Windows: Desktop -->
|  &nbsp;
|  style="background: green; color: white"|✓
|  style="background: green; color: white"|✓
  <!-- OS X: Desktop, B2G, Mulet -->
|  &nbsp;
|  &nbsp;
|  style="background: green; color: white"|✓
   <!-- OS X: Desktop -->
|  style="background: green; color: white"|✓
   <!-- Linux-gtk: Desktop, B2G, Mulet -->
|  &nbsp;
|  &nbsp;
|  style="background: green; color: white"|✓
   <!-- Linux-gtk: Desktop -->
|  style="background: green; color: white"|✓
   <!-- Android: Fennec, B2G, B2Gdroid -->
|  &nbsp;
|  &nbsp;
  <!-- Android: Fennec, GeckoView -->
|  style="background: green; color: white"|✓
|  style="background: green; color: white"|✓
|  style="background: green; color: white"|✓
|  style="background: green; color: white"|✓
   <!-- iOS -->
   <!-- BSD, Solaris -->
|  &nbsp;
| &nbsp;
|-
| &nbsp;
!MOZ_B2GDROID
  <!-- Windows: Desktop, B2G, Mulet -->
|  &nbsp;
|  &nbsp;
|  &nbsp;
  <!-- OS X: Desktop, B2G, Mulet -->
|  &nbsp;
|  &nbsp;
|  &nbsp;
  <!-- Linux-gtk: Desktop, B2G, Mulet -->
| &nbsp;
|  &nbsp;
|  &nbsp;
  <!-- Android: Fennec, B2G, B2Gdroid -->
|  &nbsp;
|  &nbsp;
|  style="background: green; color: white"|✓
  <!-- iOS -->
|  &nbsp;
|-
!MOZ_MULET
  <!-- Windows: Desktop, B2G, Mulet -->
|  &nbsp;
|  &nbsp;
|  style="background: green; color: white"|✓
  <!-- OS X: Desktop, B2G, Mulet -->
|  &nbsp;
|  &nbsp;
|  style="background: green; color: white"|✓
  <!-- Linux-gtk: Desktop, B2G, Mulet -->
|  &nbsp;
|  &nbsp;
|  style="background: green; color: white"|✓
  <!-- Android: Fennec, B2G, B2Gdroid -->
|  &nbsp;
&nbsp;
| &nbsp;
   <!-- iOS -->
   <!-- iOS -->
|  &nbsp;
|  &nbsp;
|-
|-
!MOZ_WIDGET_GTK
!MOZ_WIDGET_GTK
   <!-- Windows: Desktop, B2G, Mulet -->
   <!-- Windows: Desktop -->
|  &nbsp;
|  &nbsp;
|  &nbsp;
  <!-- OS X: Desktop, B2G, Mulet -->
|  &nbsp;
|  &nbsp;
|  &nbsp;
  <!-- OS X: Desktop -->
|  &nbsp;
|  &nbsp;
   <!-- Linux-gtk: Desktop, B2G, Mulet -->
   <!-- Linux-gtk: Desktop -->
|  style="background: green; color: white"|✓
|  style="background: green; color: white"|✓
|  style="background: green; color: white"|✓
|  style="background: green; color: white"|✓
   <!-- Android: Fennec, B2G, B2Gdroid -->
   <!-- Android: Fennec, GeckoView -->
|  &nbsp;
|  &nbsp;
|  &nbsp;
|  &nbsp;
|  &nbsp;
  <!-- BSD, Solaris -->
| style="background: green; color: white"|✓
| style="background: green; color: white"|✓
   <!-- iOS -->
   <!-- iOS -->
|  &nbsp;
|  &nbsp;
|-
|-
!MOZ_WIDGET_ANDROID
!MOZ_WIDGET_ANDROID
   <!-- Windows: Desktop, B2G, Mulet -->
   <!-- Windows: Desktop -->
|  &nbsp;
|  &nbsp;
|  &nbsp;
  <!-- OS X: Desktop, B2G, Mulet -->
|  &nbsp;
|  &nbsp;
|  &nbsp;
  <!-- OS X: Desktop -->
|  &nbsp;
|  &nbsp;
   <!-- Linux-gtk: Desktop, B2G, Mulet -->
   <!-- Linux-gtk: Desktop -->
|  &nbsp;
|  &nbsp;
|  &nbsp;
   <!-- Android: Fennec, GeckoView -->
|  &nbsp;
   <!-- Android: Fennec, B2G, B2Gdroid -->
|  style="background: green; color: white"|✓
|  style="background: green; color: white"|✓
|  &nbsp;
|  style="background: green; color: white"|✓
|  style="background: green; color: white"|✓
   <!-- iOS -->
   <!-- BSD, Solaris -->
|  &nbsp;
| &nbsp;
|-
| &nbsp;
!MOZ_WIDGET_GONK
  <!-- iOS -->
  <!-- Windows: Desktop, B2G, Mulet -->
|  &nbsp;
|  &nbsp;
|  &nbsp;
  <!-- OS X: Desktop, B2G, Mulet -->
|  &nbsp;
|  &nbsp;
|  &nbsp;
  <!-- Linux-gtk: Desktop, B2G, Mulet -->
| &nbsp;
| &nbsp;
|  &nbsp;
  <!-- Android: Fennec, B2G, B2Gdroid -->
|  &nbsp;
|  style="background: green; color: white"|✓
&nbsp;
  <!-- iOS -->
|  &nbsp;
|  &nbsp;
|-
|-
!MOZ_WIDGET_UIKIT
!MOZ_WIDGET_UIKIT
   <!-- Windows: Desktop, B2G, Mulet -->
   <!-- Windows: Desktop -->
|  &nbsp;
|  &nbsp;
|  &nbsp;
  <!-- OS X: Desktop, B2G, Mulet -->
|  &nbsp;
|  &nbsp;
|  &nbsp;
  <!-- Linux-gtk: Desktop, B2G, Mulet -->
|  &nbsp;
|  &nbsp;
|  &nbsp;
  <!-- OS X: Desktop -->
|  &nbsp;
|  &nbsp;
   <!-- Android: Fennec, B2G, B2Gdroid -->
   <!-- Linux-gtk: Desktop -->
|  &nbsp;
|  &nbsp;
  <!-- Android: Fennec, GeckoView -->
|  &nbsp;
|  &nbsp;
|  &nbsp;
|  &nbsp;
  <!-- BSD, Solaris -->
| &nbsp;
| &nbsp;
   <!-- iOS -->
   <!-- iOS -->
|  style="background: green; color: white"|✓
|  style="background: green; color: white"|✓
Line 311: Line 204:
{|border="1" style="text-align: center; width: 100%"
{|border="1" style="text-align: center; width: 100%"
!OS
!OS
!colspan="3"|Windows
!colspan="1"|Windows
!colspan="3"|OS X
!colspan="1"|OS X
!colspan="3"|Linux-gtk
!colspan="1"|Linux-gtk
!colspan="3"|Android
!colspan="2"|Android
!iOS
!iOS
|-
|-
!Product
!Product
!Desktop
!Desktop
!B2G
!Mulet
!Desktop
!Desktop
!B2G
!Mulet
!Desktop
!Desktop
!B2G
!Mulet
!Fennec
!Fennec
!B2G
!GeckoView
!B2Gdroid
!iOS
!iOS
|-
|-
|[https://hg.mozilla.org/mozilla-central/file/tip/modules/libpref/init/all.js all.js]
|[https://hg.mozilla.org/mozilla-central/file/tip/modules/libpref/init/all.js all.js]
   <!-- Windows: Desktop, B2G, Mulet -->
   <!-- Windows: Desktop -->
|  style="background: green; color: white"|✓
|  style="background: green; color: white"|✓
|  style="background: green; color: white"|✓
  <!-- OS X: Desktop, B2G, Mulet -->
|  style="background: green; color: white"|✓
|  style="background: green; color: white"|✓
|  style="background: green; color: white"|✓
  <!-- Linux-gtk: Desktop, B2G, Mulet -->
|  style="background: green; color: white"|✓
|  style="background: green; color: white"|✓
  <!-- OS X: Desktop -->
|  style="background: green; color: white"|✓
|  style="background: green; color: white"|✓
  <!-- Linux-gtk: Desktop -->
|  style="background: green; color: white"|✓
|  style="background: green; color: white"|✓
   <!-- Android: Fennec, B2G, B2Gdroid -->
   <!-- Android: Fennec, GeckoView -->
|  style="background: green; color: white"|✓
|  style="background: green; color: white"|✓
|  style="background: green; color: white"|✓
|  style="background: green; color: white"|✓
|  style="background: green; color: white"|✓
Line 353: Line 232:
|-
|-
|[https://hg.mozilla.org/mozilla-central/file/tip/browser/app/profile/firefox.js firefox.js]
|[https://hg.mozilla.org/mozilla-central/file/tip/browser/app/profile/firefox.js firefox.js]
   <!-- Windows: Desktop, B2G, Mulet -->
   <!-- Windows: Desktop -->
|  style="background: green; color: white"|✓
|  style="background: green; color: white"|✓
|  &nbsp;
  <!-- OS X: Desktop -->
|  style="background: green; color: white"|✓
|  style="background: green; color: white"|✓
   <!-- OS X: Desktop, B2G, Mulet -->
   <!-- Linux-gtk: Desktop -->
|  style="background: green; color: white"|✓
|  style="background: green; color: white"|✓
|  &nbsp;
   <!-- Android: Fennec, GeckoView -->
|  style="background: green; color: white"|✓
  <!-- Linux-gtk: Desktop, B2G, Mulet -->
|  style="background: green; color: white"|✓
|  &nbsp;
|  style="background: green; color: white"|✓
   <!-- Android: Fennec, B2G, B2Gdroid -->
|  &nbsp;
|  &nbsp;
|  &nbsp;
|  &nbsp;
|  &nbsp;
Line 373: Line 245:
|-
|-
|[https://hg.mozilla.org/mozilla-central/file/tip/mobile/android/app/mobile.js mobile.js]
|[https://hg.mozilla.org/mozilla-central/file/tip/mobile/android/app/mobile.js mobile.js]
   <!-- Windows: Desktop, B2G, Mulet -->
   <!-- Windows: Desktop -->
|  &nbsp;
|  &nbsp;
  <!-- OS X: Desktop -->
|  &nbsp;
|  &nbsp;
  <!-- Linux-gtk: Desktop -->
|  &nbsp;
|  &nbsp;
  <!-- OS X: Desktop, B2G, Mulet -->
   <!-- Android: Fennec, GeckoView -->
|  &nbsp;
|  &nbsp;
|  &nbsp;
  <!-- Linux-gtk: Desktop, B2G, Mulet -->
|  &nbsp;
|  &nbsp;
|  &nbsp;
   <!-- Android: Fennec, B2G, B2Gdroid -->
|  style="background: green; color: white"|✓
|  style="background: green; color: white"|✓
&nbsp;
??
|  &nbsp;
   <!-- iOS -->
   <!-- iOS -->
|  &nbsp;
|  &nbsp;
|-
|-
|[https://hg.mozilla.org/mozilla-central/file/tip/mobile/android/b2gdroid/app/b2gdroid.js b2gdroid.js]
|[https://hg.mozilla.org/mozilla-central/file/tip/mobile/android/app/geckoview-prefs.js geckoview-prefs.js]
   <!-- Windows: Desktop, B2G, Mulet -->
   <!-- Windows: Desktop -->
|  &nbsp;
|  &nbsp;
  <!-- OS X: Desktop -->
|  &nbsp;
|  &nbsp;
  <!-- Linux-gtk: Desktop -->
|  &nbsp;
|  &nbsp;
  <!-- OS X: Desktop, B2G, Mulet -->
   <!-- Android: Fennec, GeckoView -->
|  &nbsp;
|  &nbsp;
|  &nbsp;
  <!-- Linux-gtk: Desktop, B2G, Mulet -->
|  &nbsp;
|  &nbsp;
|  &nbsp;
   <!-- Android: Fennec, B2G, B2Gdroid -->
|  &nbsp;
|  &nbsp;
|  &nbsp;
|  style="background: green; color: white"|✓
|  style="background: green; color: white"|✓
   <!-- iOS -->
   <!-- iOS -->
|  &nbsp;
|  &nbsp;
|-
|[https://hg.mozilla.org/mozilla-central/file/tip/b2g/app/b2g.js b2g.js]
  <!-- Windows: Desktop, B2G, Mulet -->
|  &nbsp;
|  style="background: green; color: white"|✓
|  style="background: green; color: white"|✓
  <!-- OS X: Desktop, B2G, Mulet -->
|  &nbsp;
|  style="background: green; color: white"|✓
|  style="background: green; color: white"|✓
  <!-- Linux-gtk: Desktop, B2G, Mulet -->
|  &nbsp;
|  style="background: green; color: white"|✓
|  style="background: green; color: white"|✓
  <!-- Android: Fennec, B2G, B2Gdroid -->
|  &nbsp;
|  style="background: green; color: white"|✓
|  &nbsp;
  <!-- iOS -->
|  &nbsp;
|-
|[https://hg.mozilla.org/mozilla-central/file/tip/b2g/dev/app/mulet.js mulet.js]
  <!-- Windows: Desktop, B2G, Mulet -->
|  &nbsp;
|  &nbsp;
|  style="background: green; color: white"|✓
  <!-- OS X: Desktop, B2G, Mulet -->
|  &nbsp;
|  &nbsp;
|  style="background: green; color: white"|✓
  <!-- Linux-gtk: Desktop, B2G, Mulet -->
|  &nbsp;
|  &nbsp;
|  style="background: green; color: white"|✓
  <!-- Android: Fennec, B2G, B2Gdroid -->
|  &nbsp;
|  &nbsp;
|  &nbsp;
  <!-- iOS -->
|  &nbsp;
|-
|[https://hg.mozilla.org/mozilla-central/file/tip/b2g/graphene/graphene.js graphene.js]
  <!-- Windows: Desktop, B2G, Mulet -->
|  ??
|  ??
|  ??
  <!-- OS X: Desktop, B2G, Mulet -->
|  ??
|  ??
|  ??
  <!-- Linux-gtk: Desktop, B2G, Mulet -->
|  ??
|  ??
|  ??
  <!-- Android: Fennec, B2G, B2Gdroid -->
|  ??
|  ??
|  ??
  <!-- iOS -->
|  ??
|}
|}
'''WARNING''': Until {{bug|1174234}} is resolved firefox.js prefs will override mulet.js prefs on Mulet.


== Reftest conditions ==
== Reftest conditions ==
Line 481: Line 277:
{|border="1" style="text-align: center; width: 100%"
{|border="1" style="text-align: center; width: 100%"
!OS
!OS
!colspan="2"|Windows
!colspan="1"|Windows
!colspan="2"|OS X
!colspan="1"|OS X
!colspan="3"|Linux-gtk
!colspan="1"|Linux-gtk
!colspan="2"|Android
!colspan="2"|Android
!iOS
!iOS
Line 489: Line 285:
!Product
!Product
!Desktop
!Desktop
!B2G
!Desktop
!Desktop
!B2G
!Desktop
!Desktop
!B2G
!Mulet
!Fennec
!Fennec
!B2G
!GeckoView
!iOS
!iOS
|-
|-
!B2G
!Android
   <!-- Windows: Desktop, B2G -->
   <!-- Windows: Desktop -->
|  &nbsp;
|  &nbsp;
  <!-- OS X: Desktop -->
|  &nbsp;
|  &nbsp;
  <!-- Linux-gtk: Desktop -->
|  &nbsp;
|  &nbsp;
|  &nbsp;
   <!-- Android: Fennec, GeckoView -->
|  &nbsp;
|  &nbsp;
|  &nbsp;
|  &nbsp;
|  style="background: green; color: white"|✓
|  &nbsp;
|-
!B2GDT
  <!-- Windows: Desktop, B2G -->
|  &nbsp;
|  style="background: green; color: white"|✓
   <!-- OS X: Desktop, B2G -->
|  &nbsp;
|  style="background: green; color: white"|✓
|  style="background: green; color: white"|✓
  <!-- Linux-gtk: Desktop, B2G, Mulet -->
|  &nbsp;
|  style="background: green; color: white"|✓
|  style="background: green; color: white"|✓
|  &nbsp;
  <!-- Android: Fennec, B2G -->
|  &nbsp;
|  &nbsp;
   <!-- iOS -->
   <!-- iOS -->
|  &nbsp;
|  &nbsp;
|-
|-
!Android
!geckoview
   <!-- Windows: Desktop, B2G -->
   <!-- Windows: Desktop -->
|  &nbsp;
|  &nbsp;
  <!-- OS X: Desktop, B2G -->
|  &nbsp;
|  &nbsp;
|  &nbsp;
   <!-- Linux-gtk: Desktop, B2G, Mulet -->
   <!-- OS X: Desktop -->
|  &nbsp;
|  &nbsp;
  <!-- Linux-gtk: Desktop -->
|  &nbsp;
|  &nbsp;
  <!-- Android: Fennec, GeckoView -->
|  &nbsp;
|  &nbsp;
  <!-- Android: Fennec, B2G -->
|  style="background: green; color: white"|✓
|  style="background: green; color: white"|✓
|  &nbsp;
   <!-- iOS -->
   <!-- iOS -->
|  &nbsp;
|  &nbsp;
|-
|-
!cocoaWidget
!cocoaWidget
   <!-- Windows: Desktop, B2G -->
   <!-- Windows: Desktop -->
|  &nbsp;
|  &nbsp;
|  &nbsp;
   <!-- OS X: Desktop, B2G -->
   <!-- OS X: Desktop -->
|  style="background: green; color: white"|✓
|  style="background: green; color: white"|✓
|  style="background: green; color: white"|✓
   <!-- Linux-gtk: Desktop, B2G, Mulet -->
   <!-- Linux-gtk: Desktop -->
|  &nbsp;
|  &nbsp;
|  &nbsp;
|  &nbsp;
   <!-- Android: Fennec, B2G -->
   <!-- Android: Fennec, GeckoView -->
|  &nbsp;
|  &nbsp;
|  &nbsp;
|  &nbsp;
Line 564: Line 331:
|-
|-
!gtkWidget
!gtkWidget
   <!-- Windows: Desktop, B2G -->
   <!-- Windows: Desktop -->
|  &nbsp;
|  &nbsp;
  <!-- OS X: Desktop, B2G -->
|  &nbsp;
|  &nbsp;
  <!-- OS X: Desktop -->
|  &nbsp;
|  &nbsp;
   <!-- Linux-gtk: Desktop, B2G, Mulet -->
   <!-- Linux-gtk: Desktop -->
|  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, GeckoView -->
|  &nbsp;
|  &nbsp;
|  &nbsp;
|  &nbsp;
Line 581: Line 344:
|-
|-
!qtWidget
!qtWidget
   <!-- Windows: Desktop, B2G -->
   <!-- Windows: Desktop -->
|  &nbsp;
|  &nbsp;
|  &nbsp;
   <!-- OS X: Desktop, B2G -->
   <!-- OS X: Desktop -->
|  &nbsp;
|  &nbsp;
  <!-- Linux-gtk: Desktop -->
|  &nbsp;
|  &nbsp;
  <!-- Linux-gtk: Desktop, B2G, Mulet -->
   <!-- Android: Fennec, GeckoView -->
|  &nbsp;
|  &nbsp;
|  &nbsp;
   <!-- Android: Fennec, B2G -->
|  &nbsp;
|  &nbsp;
|  &nbsp;
|  &nbsp;
Line 598: Line 357:
|-
|-
!winWidget
!winWidget
   <!-- Windows: Desktop, B2G -->
   <!-- Windows: Desktop -->
|  style="background: green; color: white"|✓
|  style="background: green; color: white"|✓
|  style="background: green; color: white"|✓
   <!-- OS X: Desktop -->
   <!-- OS X: Desktop, B2G -->
|  &nbsp;
|  &nbsp;
  <!-- Linux-gtk: Desktop -->
|  &nbsp;
|  &nbsp;
  <!-- Linux-gtk: Desktop, B2G, Mulet -->
   <!-- Android: Fennec, GeckoView -->
|  &nbsp;
|  &nbsp;
|  &nbsp;
   <!-- Android: Fennec, B2G -->
|  &nbsp;
|  &nbsp;
  <!-- iOS -->
|  &nbsp;
|-
!Mulet
  <!-- Windows: Desktop, B2G -->
|  &nbsp;
|  &nbsp;
  <!-- OS X: Desktop, B2G -->
|  &nbsp;
|  &nbsp;
  <!-- Linux-gtk: Desktop, B2G, Mulet -->
|  &nbsp;
|  &nbsp;
|  style="background: green; color: white"|✓
|  &nbsp;
|  &nbsp;
|  &nbsp;
|  &nbsp;
Line 637: Line 376:
{|border="1" style="text-align: center; width: 100%"
{|border="1" style="text-align: center; width: 100%"
!OS
!OS
!colspan="2"|Windows
!colspan="1"|Windows
!colspan="2"|OS X
!colspan="1"|OS X
!colspan="3"|Linux-gtk
!colspan="1"|Linux-gtk
!colspan="2"|Android
!colspan="2"|Android
!iOS
!iOS
Line 645: Line 384:
!Product
!Product
!Desktop
!Desktop
!B2G
!Desktop
!Desktop
!B2G
!Desktop
!Desktop
!B2G
!Mulet
!Fennec
!Fennec
!B2G
!GeckoView
!iOS
!iOS
|-
|-
!os
!os
   <!-- Windows: Desktop, B2G -->
   <!-- Windows: Desktop -->
|  win
|  win
|  ??
   <!-- OS X: Desktop -->
   <!-- OS X: Desktop, B2G -->
|  mac
|  mac
|  ??
   <!-- Linux-gtk: Desktop -->
   <!-- Linux-gtk: Desktop, B2G, Mulet -->
|  linux
|  linux
|  ??
   <!-- Android: Fennec, GeckoView -->
|  ??
|  android
   <!-- Android: Fennec, B2G -->
|  android
|  android
|  b2g
   <!-- iOS -->
   <!-- iOS -->
|  ??
|  ??
|-
|-
!toolkit
!toolkit
   <!-- Windows: Desktop, B2G -->
   <!-- Windows: Desktop -->
|  windows
|  windows
|  ??
   <!-- OS X: Desktop -->
   <!-- OS X: Desktop, B2G -->
|  cocoa
|  cocoa
|  ??
   <!-- Linux-gtk: Desktop -->
   <!-- Linux-gtk: Desktop, B2G, Mulet -->
|  gtk2 or gtk3
|  gtk2 or gtk3
|  ??
   <!-- Android: Fennec, GeckoView -->
|  ??
|  android
   <!-- Android: Fennec, B2G -->
|  android
|  android
|  gonk
   <!-- iOS -->
   <!-- iOS -->
|  ??
|  ??
|-
|-
!buildapp
!buildapp
   <!-- Windows: Desktop, B2G -->
   <!-- Windows: Desktop -->
|  ??
|  ??
  <!-- OS X: Desktop, B2G -->
|  ??
|  ??
|  ??
   <!-- Linux-gtk: Desktop, B2G, Mulet -->
   <!-- OS X: Desktop -->
|  ??
|  ??
  <!-- Linux-gtk: Desktop -->
|  ??
|  ??
|  mulet
   <!-- Android: Fennec, GeckoView -->
   <!-- Android: Fennec, B2G -->
|  mobile/android
|  ??
|  ??
|  b2g
   <!-- iOS -->
   <!-- iOS -->
|  ??
|  ??
|}
|}
You may also be interested in [[Platform/Channel-specific_build_defines]]
You may also be interested in [[Platform/Channel-specific_build_defines]]

Latest revision as of 10:51, 15 July 2019

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 *BSD Solaris iOS
Product Desktop Desktop Desktop Fennec GeckoView Desktop Desktop iOS
XP_WIN              
XP_DARWIN            
XP_MACOSX              
XP_IOS              
XP_UNIX  
XP_LINUX          
XP_SOLARIS              
ANDROID            
MOZ_WIDGET_GTK          
MOZ_WIDGET_ANDROID            
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
Product Desktop Desktop Desktop Fennec GeckoView iOS
all.js
firefox.js      
mobile.js       ??  
geckoview-prefs.js          

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 Desktop Desktop Fennec GeckoView iOS
Android        
geckoview          
cocoaWidget          
gtkWidget          
qtWidget            
winWidget          

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 Desktop Desktop Fennec GeckoView iOS
os win mac linux android android ??
toolkit windows cocoa gtk2 or gtk3 android android ??
buildapp ?? ?? ?? mobile/android ?? ??

You may also be interested in Platform/Channel-specific_build_defines