Index: tools/gyp/v8.gyp |
diff --git a/tools/gyp/v8.gyp b/tools/gyp/v8.gyp |
index df8f5473a17924779ae55de4c40815bb51f891ee..456fb3c33173b166830d6c8052869c5d74facd7f 100644 |
--- a/tools/gyp/v8.gyp |
+++ b/tools/gyp/v8.gyp |
@@ -196,6 +196,38 @@ |
}, |
}, |
{ |
+ 'target_name': 'v8_preparser', |
+ 'include_dirs': [ |
+ '../../include', |
+ '../../src', |
+ ], |
+ 'sources': [ |
+ '../../src/allocation.cc', |
+ '../../src/hashmap.cc', |
+ '../../src/preparse-data.cc', |
+ '../../src/preparser.cc', |
+ '../../src/preparser-api.cc', |
+ '../../src/scanner-base.cc', |
+ '../../src/token.cc', |
+ '../../src/unicode.cc', |
+ ], |
+ 'conditions': [ |
+ ['OS=="win" and component=="shared_library"', { |
+ 'sources': [ '../../src/v8preparserdll-main.cc' ], |
+ 'defines': [ 'BUILDING_V8_SHARED' ], |
+ 'direct_dependent_settings': { |
+ 'defines': [ 'USING_V8_SHARED' ] |
+ }, |
+ 'type': '<(component)', |
+ } , { |
+ 'type': 'none' |
+ }], |
+ ['OS!="win"', { |
+ 'type': '<(library)' |
+ }], |
+ ] |
+ }, |
+ { |
'target_name': 'v8_snapshot', |
'type': '<(library)', |
'conditions': [ |