Index: tools/gyp/v8.gyp |
diff --git a/tools/gyp/v8.gyp b/tools/gyp/v8.gyp |
index 8dba67fd6d2686de460596484bf055052836d49c..5785336a21c33cf04f787f7276f377b5e1bc3bee 100644 |
--- a/tools/gyp/v8.gyp |
+++ b/tools/gyp/v8.gyp |
@@ -237,6 +237,9 @@ |
{ |
'target_name': 'v8_base.<(v8_target_arch)', |
'type': 'static_library', |
+ 'dependencies': [ |
+ 'v8_libbase.<(v8_target_arch)', |
+ ], |
'variables': { |
'optimize': 'max', |
}, |
@@ -1031,6 +1034,33 @@ |
], |
}, |
{ |
+ 'target_name': 'v8_libbase.<(v8_target_arch)', |
+ # TODO(jochen): Should be a static library once it has sources in it. |
+ 'type': 'none', |
+ 'variables': { |
+ 'optimize': 'max', |
+ }, |
+ 'include_dirs+': [ |
+ '../../src', |
+ ], |
+ 'sources': [ |
+ '../../src/base/macros.h', |
+ ], |
+ 'conditions': [ |
+ ['want_separate_host_toolset==1', { |
+ 'toolsets': ['host', 'target'], |
+ }, { |
+ 'toolsets': ['target'], |
+ }], |
+ ['component=="shared_library"', { |
+ 'defines': [ |
+ 'BUILDING_V8_SHARED', |
+ 'V8_SHARED', |
+ ], |
+ }], |
+ ], |
+ }, |
+ { |
'target_name': 'js2c', |
'type': 'none', |
'conditions': [ |