Permalink
Browse files

gyp: add freebsd support

  • Loading branch information...
1 parent 5c30285 commit cf9e5f0bca253ff9cfd73639645b94dd2b72e2fd @bnoordhuis committed Aug 17, 2011
Showing with 6 additions and 0 deletions.
  1. +6 −0 pylib/gyp/generator/make.py
@@ -64,6 +64,8 @@ def GetFlavor(params):
flavors = {
'darwin': 'mac',
'sunos5': 'solaris',
+ 'freebsd7': 'freebsd',
+ 'freebsd8': 'freebsd',
}
flavor = flavors.get(sys.platform, 'linux')
return params.get('flavor', flavor)
@@ -2661,6 +2663,10 @@ def CalculateMakefilePath(build_file, base_name):
'flock_index': 2,
'extra_commands': SHARED_HEADER_SUN_COMMANDS,
})
+ elif flavor == 'freebsd':
+ header_params.update({
+ 'flock': 'lockf',
+ })
if flavor == 'android':
header_params.update({

0 comments on commit cf9e5f0

Please sign in to comment.