Index: preparser/preparser.gyp |
diff --git a/preparser/preparser.gyp b/preparser/preparser.gyp |
index 0b03382880f15fb3dd6287fdb60b05386a2bd3ec..2dcbaf9d1a64c187f77a4a5bf181c70ac30ec174 100644 |
--- a/preparser/preparser.gyp |
+++ b/preparser/preparser.gyp |
@@ -31,11 +31,22 @@ |
{ |
'target_name': 'preparser', |
'type': 'executable', |
- 'dependencies': [ |
- '../tools/gyp/v8.gyp:preparser_lib', |
+ 'conditions': [ |
+ # preparser can't link against a shared library, so link against |
+ # the underlying static targets. |
+ ['v8_use_snapshot=="true"', { |
+ 'dependencies': ['../tools/gyp/v8.gyp:v8_snapshot'], |
+ }, { |
+ 'dependencies': ['../tools/gyp/v8.gyp:v8_nosnapshot'], |
+ }], |
+ ], |
+ 'include_dirs+': [ |
+ '../src', |
], |
'sources': [ |
'preparser-process.cc', |
+ '../include/v8-preparser.h', |
+ '../src/preparser-api.cc', |
], |
}, |
], |