Index: src/d8.gyp |
diff --git a/src/d8.gyp b/src/d8.gyp |
index 85914ec672a1e6e6bde97a2674aa281df19b3412..3fdb7207fc3118e476a68a9e8b8ae41266bf9fa9 100644 |
--- a/src/d8.gyp |
+++ b/src/d8.gyp |
@@ -31,7 +31,6 @@ |
'target_name': 'd8', |
'type': 'executable', |
'dependencies': [ |
- 'd8_js2c#host', |
'../tools/gyp/v8.gyp:v8', |
], |
'include_dirs+': [ |
@@ -42,15 +41,24 @@ |
], |
'sources': [ |
'd8.cc', |
- 'd8-debug.cc', |
- '<(SHARED_INTERMEDIATE_DIR)/d8-js.cc', |
], |
'conditions': [ |
- [ 'OS=="linux" or OS=="mac" or OS=="freebsd" or OS=="openbsd" or OS=="solaris"', { |
- 'sources': [ 'd8-posix.cc', ] |
- }], |
- [ 'OS=="win"', { |
- 'sources': [ 'd8-windows.cc', ] |
+ [ 'component!="shared_library"', { |
+ 'dependencies': [ 'd8_js2c#host', ], |
+ 'sources': [ 'd8-debug.cc', '<(SHARED_INTERMEDIATE_DIR)/d8-js.cc', ], |
+ 'conditions': [ |
+ [ 'console=="readline"', { |
+ 'libraries': [ '-lreadline', ], |
+ 'sources': [ 'd8-readline.cc' ], |
+ }], |
+ [ '(OS=="linux" or OS=="mac" or OS=="freebsd" \ |
+ or OS=="openbsd" or OS=="solaris")', { |
+ 'sources': [ 'd8-posix.cc', ] |
+ }], |
+ [ 'OS=="win"', { |
+ 'sources': [ 'd8-windows.cc', ] |
+ }], |
+ ], |
}], |
], |
}, |