Index: src/v8.gyp |
diff --git a/src/v8.gyp b/src/v8.gyp |
index 9d538d07c79f149b37563e73879f2bb4154b21da..d82357b8b8f9471482d96240af01ee89dfa13d90 100644 |
--- a/src/v8.gyp |
+++ b/src/v8.gyp |
@@ -68,16 +68,6 @@ |
'USING_V8_SHARED', |
], |
}, |
- 'target_conditions': [ |
- ['OS=="android" and _toolset=="target"', { |
- 'libraries': [ |
- '-llog', |
- ], |
- 'include_dirs': [ |
- 'src/common/android/include', |
- ], |
- }], |
- ], |
'conditions': [ |
['OS=="mac"', { |
'xcode_settings': { |
@@ -1760,7 +1750,7 @@ |
}, |
{ |
'target_name': 'v8_libbase', |
- 'type': 'static_library', |
+ 'type': '<(component)', |
'variables': { |
'optimize': 'max', |
}, |
@@ -1783,6 +1773,7 @@ |
'base/atomicops_internals_x86_gcc.cc', |
'base/atomicops_internals_x86_gcc.h', |
'base/atomicops_internals_x86_msvc.h', |
+ 'base/base-export.h', |
'base/bits.cc', |
'base/bits.h', |
'base/build_config.h', |
@@ -1830,6 +1821,16 @@ |
'base/utils/random-number-generator.cc', |
'base/utils/random-number-generator.h', |
], |
+ 'target_conditions': [ |
+ ['OS=="android" and _toolset=="target"', { |
+ 'libraries': [ |
+ '-llog', |
+ ], |
+ 'include_dirs': [ |
+ 'src/common/android/include', |
+ ], |
+ }], |
+ ], |
'conditions': [ |
['want_separate_host_toolset==1 or \ |
want_separate_host_toolset_mkpeephole==1', { |
@@ -1837,6 +1838,16 @@ |
}, { |
'toolsets': ['target'], |
}], |
+ ['component=="shared_library"', { |
+ 'defines': [ |
+ 'BUILDING_V8_BASE_SHARED', |
+ ], |
+ 'direct_dependent_settings': { |
+ 'defines': [ |
+ 'USING_V8_BASE_SHARED', |
+ ], |
+ }, |
+ }], |
['OS=="linux"', { |
'link_settings': { |
'libraries': [ |
@@ -2397,7 +2408,12 @@ |
{ |
'target_name': 'mksnapshot', |
'type': 'executable', |
- 'dependencies': ['v8_base', 'v8_nosnapshot', 'v8_libplatform'], |
+ 'dependencies': [ |
+ 'v8_base', |
+ 'v8_libbase', |
+ 'v8_nosnapshot', |
+ 'v8_libplatform' |
+ ], |
'include_dirs+': [ |
'..', |
'<(DEPTH)', |