Permalink
Browse files

Add DragonFlyBSD to list of recognized platforms.

  • Loading branch information...
1 parent aa86060 commit 01cfc36bbec0121833d2e9686d3b3f6116229feb @bnoordhuis committed Nov 20, 2012
Showing with 10 additions and 7 deletions.
  1. +2 −0 pylib/gyp/common.py
  2. +7 −6 pylib/gyp/common_test.py
  3. +1 −1 pylib/gyp/generator/make.py
View
@@ -378,6 +378,8 @@ def GetFlavor(params):
return 'solaris'
if sys.platform.startswith('freebsd'):
return 'freebsd'
+ if sys.platform.startswith('dragonfly'):
+ return 'dragonfly'
return 'linux'
View
@@ -56,12 +56,13 @@ def assertFlavor(self, expected, argument, param):
self.assertEqual(expected, gyp.common.GetFlavor(param))
def test_platform_default(self):
- self.assertFlavor('freebsd', 'freebsd9' , {})
- self.assertFlavor('freebsd', 'freebsd10', {})
- self.assertFlavor('solaris', 'sunos5' , {});
- self.assertFlavor('solaris', 'sunos' , {});
- self.assertFlavor('linux' , 'linux2' , {});
- self.assertFlavor('linux' , 'linux3' , {});
+ self.assertFlavor('dragonfly', 'dragonfly3', {})
+ self.assertFlavor('freebsd' , 'freebsd9' , {})
+ self.assertFlavor('freebsd' , 'freebsd10' , {})
+ self.assertFlavor('solaris' , 'sunos5' , {});
+ self.assertFlavor('solaris' , 'sunos' , {});
+ self.assertFlavor('linux' , 'linux2' , {});
+ self.assertFlavor('linux' , 'linux3' , {});
def test_param(self):
self.assertFlavor('foobar', 'linux2' , {'flavor': 'foobar'})
@@ -2000,7 +2000,7 @@ def CalculateMakefilePath(build_file, base_name):
'flock_index': 2,
'extra_commands': SHARED_HEADER_SUN_COMMANDS,
})
- elif flavor == 'freebsd':
+ elif flavor == 'freebsd' or flavor == 'dragonfly':
header_params.update({
'flock': 'lockf',
})

0 comments on commit 01cfc36

Please sign in to comment.