Bug 1457092 - Define XP_*BSD for OpenBSD/NetBSD/FreeBSD. r=glandium
authorLandry Breuil <landry@openbsd.org>
Thu, 23 Aug 2018 04:55:00 +0300
changeset 491555 5ba529cbce594db3cafc89bee7a5ec218087e164
parent 491501 16018f6ec0c897edf6f4fb82e462e057b8bfa712
child 491556 152b2a1144ae5c9d9541c3eda269bb417408ad9a
push id1815
push userffxbld-merge
push dateMon, 15 Oct 2018 10:40:45 +0000
treeherdermozilla-release@18d4c09e9378 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersglandium
bugs1457092
milestone63.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1457092 - Define XP_*BSD for OpenBSD/NetBSD/FreeBSD. r=glandium
build/moz.configure/init.configure
--- a/build/moz.configure/init.configure
+++ b/build/moz.configure/init.configure
@@ -945,16 +945,40 @@ def target_is_linux(target):
     if target.kernel == 'Linux':
         return True
 
 
 set_define('XP_LINUX', target_is_linux)
 
 
 @depends(target)
+def target_is_openbsd(target):
+    if target.kernel == 'OpenBSD':
+        return True
+
+
+set_define('XP_OPENBSD', target_is_openbsd)
+
+@depends(target)
+def target_is_netbsd(target):
+    if target.kernel == 'NetBSD':
+        return True
+
+
+set_define('XP_NETBSD', target_is_netbsd)
+
+@depends(target)
+def target_is_freebsd(target):
+    if target.kernel == 'FreeBSD':
+        return True
+
+
+set_define('XP_FREEBSD', target_is_freebsd)
+
+@depends(target)
 def target_is_solaris(target):
     if target.kernel == 'SunOS':
         return True
 
 
 set_define('XP_SOLARIS', target_is_solaris)
 
 # The application/project to build