Browse Source

gyp: Support Linux

v0.7.4-release
Ryan Dahl 14 years ago
parent
commit
b433c42a56
  1. 1
      common.gypi
  2. 6
      node.gyp

1
common.gypi

@ -1,5 +1,6 @@
{
'variables': {
'visibility%': 'hidden', # V8's visibility setting
'target_arch%': 'ia32', # set v8's target architecture
'host_arch%': 'ia32', # set v8's host architecture
'library%': 'static_library', # allow override to 'shared_library' for DLL/.so builds

6
node.gyp

@ -108,6 +108,12 @@
[ 'OS=="mac"', {
'sources': [ 'src/platform_darwin.cc' ],
'libraries': [ '-framework Carbon' ],
}],
[ 'OS=="linux"', {
'sources': [ 'src/platform_linux.cc' ],
'libraries': [
'-lutil' # needed for openpty
],
}]
],
'msvs-settings': {

Loading…
Cancel
Save