gyp: Support Linux

pull/22966/head
Ryan Dahl 2011-08-15 20:54:47 -04:00
parent 584ae7b084
commit b433c42a56
2 changed files with 7 additions and 0 deletions

View File

@ -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

View File

@ -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': {