Index: tools/gyp/v8.gyp |
diff --git a/tools/gyp/v8.gyp b/tools/gyp/v8.gyp |
index c455c1f33dd473d4560d326253118a4abdac70bc..3fabc257889f38d69c88f786cee08f72a344bb6d 100644 |
--- a/tools/gyp/v8.gyp |
+++ b/tools/gyp/v8.gyp |
@@ -532,13 +532,6 @@ |
'../../src/jsregexp-inl.h', |
'../../src/jsregexp.cc', |
'../../src/jsregexp.h', |
- # TODO(jochen): move libplatform/ files to their own target. |
- '../../src/libplatform/default-platform.cc', |
- '../../src/libplatform/default-platform.h', |
- '../../src/libplatform/task-queue.cc', |
- '../../src/libplatform/task-queue.h', |
- '../../src/libplatform/worker-thread.cc', |
- '../../src/libplatform/worker-thread.h', |
'../../src/list-inl.h', |
'../../src/list.h', |
'../../src/lithium-allocator-inl.h', |
@@ -1209,6 +1202,41 @@ |
], |
}, |
{ |
+ 'target_name': 'v8_libplatform', |
+ 'type': 'static_library', |
+ 'variables': { |
+ 'optimize': 'max', |
+ }, |
+ 'dependencies': [ |
+ 'v8_libbase', |
+ ], |
+ 'include_dirs+': [ |
+ '../..', |
+ ], |
+ 'sources': [ |
+ '../../include/libplatform/libplatform.h', |
+ '../../src/libplatform/default-platform.cc', |
+ '../../src/libplatform/default-platform.h', |
+ '../../src/libplatform/task-queue.cc', |
+ '../../src/libplatform/task-queue.h', |
+ '../../src/libplatform/worker-thread.cc', |
+ '../../src/libplatform/worker-thread.h', |
+ ], |
+ 'conditions': [ |
+ ['want_separate_host_toolset==1', { |
+ 'toolsets': ['host', 'target'], |
+ }, { |
+ 'toolsets': ['target'], |
+ }], |
+ ['component=="shared_library"', { |
+ 'defines': [ |
+ 'BUILDING_V8_SHARED', |
+ 'V8_SHARED', |
+ ], |
+ }], |
+ ], |
+ }, |
+ { |
'target_name': 'natives_blob', |
'type': 'none', |
'conditions': [ |
@@ -1382,7 +1410,7 @@ |
{ |
'target_name': 'mksnapshot', |
'type': 'executable', |
- 'dependencies': ['v8_base', 'v8_nosnapshot'], |
+ 'dependencies': ['v8_base', 'v8_nosnapshot', 'v8_libplatform'], |
'include_dirs+': [ |
'../..', |
], |