Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Add DragonFlyBSD to list of recognized platforms.

  • Loading branch information...
commit 01cfc36bbec0121833d2e9686d3b3f6116229feb 1 parent aa86060
Ben Noordhuis authored November 20, 2012
2  pylib/gyp/common.py
@@ -378,6 +378,8 @@ def GetFlavor(params):
378 378
     return 'solaris'
379 379
   if sys.platform.startswith('freebsd'):
380 380
     return 'freebsd'
  381
+  if sys.platform.startswith('dragonfly'):
  382
+    return 'dragonfly'
381 383
 
382 384
   return 'linux'
383 385
 
13  pylib/gyp/common_test.py
@@ -56,12 +56,13 @@ def assertFlavor(self, expected, argument, param):
56 56
     self.assertEqual(expected, gyp.common.GetFlavor(param))
57 57
 
58 58
   def test_platform_default(self):
59  
-    self.assertFlavor('freebsd', 'freebsd9' , {})
60  
-    self.assertFlavor('freebsd', 'freebsd10', {})
61  
-    self.assertFlavor('solaris', 'sunos5'   , {});
62  
-    self.assertFlavor('solaris', 'sunos'    , {});
63  
-    self.assertFlavor('linux'  , 'linux2'   , {});
64  
-    self.assertFlavor('linux'  , 'linux3'   , {});
  59
+    self.assertFlavor('dragonfly', 'dragonfly3', {})
  60
+    self.assertFlavor('freebsd'  , 'freebsd9'  , {})
  61
+    self.assertFlavor('freebsd'  , 'freebsd10' , {})
  62
+    self.assertFlavor('solaris'  , 'sunos5'    , {});
  63
+    self.assertFlavor('solaris'  , 'sunos'     , {});
  64
+    self.assertFlavor('linux'    , 'linux2'    , {});
  65
+    self.assertFlavor('linux'    , 'linux3'    , {});
65 66
 
66 67
   def test_param(self):
67 68
     self.assertFlavor('foobar', 'linux2' , {'flavor': 'foobar'})
2  pylib/gyp/generator/make.py
@@ -2000,7 +2000,7 @@ def CalculateMakefilePath(build_file, base_name):
2000 2000
         'flock_index': 2,
2001 2001
         'extra_commands': SHARED_HEADER_SUN_COMMANDS,
2002 2002
     })
2003  
-  elif flavor == 'freebsd':
  2003
+  elif flavor == 'freebsd' or flavor == 'dragonfly':
2004 2004
     header_params.update({
2005 2005
         'flock': 'lockf',
2006 2006
     })

0 notes on commit 01cfc36

Please sign in to comment.
Something went wrong with that request. Please try again.