Index: src/extensions/experimental/experimental.gyp |
=================================================================== |
--- src/extensions/experimental/experimental.gyp (revision 7574) |
+++ src/extensions/experimental/experimental.gyp (working copy) |
@@ -41,6 +41,7 @@ |
'break-iterator.h', |
'i18n-extension.cc', |
'i18n-extension.h', |
+ '<(SHARED_INTERMEDIATE_DIR)/i18n-js.cc', |
], |
'include_dirs': [ |
'<(icu_src_dir)/public/common', |
@@ -48,8 +49,39 @@ |
], |
'dependencies': [ |
'<(icu_src_dir)/icu.gyp:*', |
+ 'js2c_i18n#host', |
'../../../tools/gyp/v8.gyp:v8', |
], |
}, |
+ { |
+ 'target_name': 'js2c_i18n', |
+ 'type': 'none', |
+ 'toolsets': ['host'], |
+ 'variables': { |
+ 'library_files': [ |
+ 'i18n.js' |
+ ], |
+ }, |
+ 'actions': [ |
+ { |
+ 'action_name': 'js2c_i18n', |
+ 'inputs': [ |
+ '../../../tools/js2c.py', |
+ '<@(library_files)', |
+ ], |
+ 'outputs': [ |
+ '<(SHARED_INTERMEDIATE_DIR)/i18n-js.cc', |
+ '<(SHARED_INTERMEDIATE_DIR)/i18n-js-empty.cc' |
+ ], |
+ 'action': [ |
+ 'python', |
+ '../../../tools/js2c.py', |
+ '<@(_outputs)', |
+ 'I18N', |
+ '<@(library_files)' |
+ ], |
+ }, |
+ ], |
+ }, |
], # targets |
} |