summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorBen Noordhuis <info@bnoordhuis.nl>2011-08-17 06:12:09 +0200
committerBen Noordhuis <info@bnoordhuis.nl>2011-08-17 07:50:58 +0200
commit0f077a78ad3cc43e847bbd7d797b923d8bf8ea5c (patch)
treedf4edd4915d3302c369e80167d25e1f887466907 /tools
parent1e7a0aa8837dd9244a4941560b2a20da1b4aa60d (diff)
downloadnode-new-0f077a78ad3cc43e847bbd7d797b923d8bf8ea5c.tar.gz
gyp: add freebsd support
Diffstat (limited to 'tools')
-rw-r--r--tools/gyp/pylib/gyp/generator/make.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/tools/gyp/pylib/gyp/generator/make.py b/tools/gyp/pylib/gyp/generator/make.py
index d41da6a86e..eded5ac0af 100644
--- a/tools/gyp/pylib/gyp/generator/make.py
+++ b/tools/gyp/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)
@@ -2532,6 +2534,10 @@ def GenerateOutput(target_list, target_dicts, data, params):
'flock_index': 2,
'extra_commands': SHARED_HEADER_SUN_COMMANDS,
})
+ elif flavor == 'freebsd':
+ header_params.update({
+ 'flock': 'lockf',
+ })
if flavor == 'android':
header_params.update({