Index: tools/gyp/v8.gyp |
diff --git a/tools/gyp/v8.gyp b/tools/gyp/v8.gyp |
index 8be7ded9fd94356b773ec0abad4cb048fff27c03..eefd142b7042040d7b6f298e37b8e4eeff57e0ac 100644 |
--- a/tools/gyp/v8.gyp |
+++ b/tools/gyp/v8.gyp |
@@ -129,6 +129,11 @@ |
], |
}, |
}], |
+ ['v8_enable_i18n_support==1', { |
+ 'sources': [ |
+ '<(SHARED_INTERMEDIATE_DIR)/i18n-libraries.cc', |
+ ], |
+ }], |
], |
'dependencies': [ |
'v8_base.<(v8_target_arch)', |
@@ -192,6 +197,11 @@ |
'V8_SHARED', |
], |
}], |
+ ['v8_enable_i18n_support==1', { |
+ 'sources': [ |
+ '<(SHARED_INTERMEDIATE_DIR)/i18n-libraries.cc', |
+ ], |
+ }], |
] |
}, |
{ |
@@ -814,6 +824,10 @@ |
] |
}], |
['v8_enable_i18n_support==1', { |
+ 'sources': [ |
+ '../../src/extensions/i18n/i18n-extension.cc', |
+ '../../src/extensions/i18n/i18n-extension.h', |
+ ], |
'dependencies': [ |
'<(DEPTH)/third_party/icu/icu.gyp:icui18n', |
'<(DEPTH)/third_party/icu/icu.gyp:icuuc', |
@@ -841,15 +855,24 @@ |
'toolsets': ['target'], |
}], |
['v8_enable_i18n_support==1', { |
- 'variables': { |
- 'i18n_library_files': [ |
- '../../src/i18n.js', |
+ 'actions': [{ |
+ 'action_name': 'js2c_i18n', |
+ 'inputs': [ |
+ '../../tools/js2c.py', |
+ '<@(i18n_library_files)', |
], |
- }, |
- }, { |
- 'variables': { |
- 'i18n_library_files': [], |
- }, |
+ 'outputs': [ |
+ '<(SHARED_INTERMEDIATE_DIR)/i18n-libraries.cc', |
+ ], |
+ 'action': [ |
+ 'python', |
+ '../../tools/js2c.py', |
+ '<@(_outputs)', |
+ 'I18N', |
+ '<(v8_compress_startup_data)', |
+ '<@(i18n_library_files)' |
+ ], |
+ }], |
}], |
], |
'variables': { |
@@ -883,6 +906,18 @@ |
'../../src/harmony-string.js', |
'../../src/harmony-array.js', |
], |
+ 'i18n_library_files': [ |
+ '../../src/extensions/i18n/header.js', |
+ '../../src/extensions/i18n/globals.js', |
+ '../../src/extensions/i18n/locale.js', |
+ '../../src/extensions/i18n/collator.js', |
+ '../../src/extensions/i18n/number-format.js', |
+ '../../src/extensions/i18n/date-format.js', |
+ '../../src/extensions/i18n/break-iterator.js', |
+ '../../src/extensions/i18n/i18n-utils.js', |
+ '../../src/extensions/i18n/overrides.js', |
+ '../../src/extensions/i18n/footer.js', |
+ ], |
}, |
'actions': [ |
{ |
@@ -890,7 +925,6 @@ |
'inputs': [ |
'../../tools/js2c.py', |
'<@(library_files)', |
- '<@(i18n_library_files)', |
], |
'outputs': [ |
'<(SHARED_INTERMEDIATE_DIR)/libraries.cc', |
@@ -901,8 +935,7 @@ |
'<@(_outputs)', |
'CORE', |
'<(v8_compress_startup_data)', |
- '<@(library_files)', |
- '<@(i18n_library_files)', |
+ '<@(library_files)' |
], |
}, |
{ |