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': { 'variables': {
'visibility%': 'hidden', # V8's visibility setting
'target_arch%': 'ia32', # set v8's target architecture 'target_arch%': 'ia32', # set v8's target architecture
'host_arch%': 'ia32', # set v8's host architecture 'host_arch%': 'ia32', # set v8's host architecture
'library%': 'static_library', # allow override to 'shared_library' for DLL/.so builds 'library%': 'static_library', # allow override to 'shared_library' for DLL/.so builds

6
node.gyp

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

Loading…
Cancel
Save