Skip to content
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.

Commit

Permalink
gyp: add freebsd support
Browse files Browse the repository at this point in the history
  • Loading branch information
bnoordhuis committed Aug 17, 2011
1 parent 1e7a0aa commit 0f077a7
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tools/gyp/pylib/gyp/generator/make.py
Expand Up @@ -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)
Expand Down Expand Up @@ -2532,6 +2534,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({
Expand Down

0 comments on commit 0f077a7

Please sign in to comment.