If the type of target in build.gyp is 'loadable_module',
(target_name).xwalk file will be generated automatically.
'.xwalk' file can be loaded by JSNative directly with require()
without node module wrapper.
Change-Id: If4401f243a07fa17d97d6959a0da4f30012d5b77
'extension_build_type%': 'Debug',
},
'target_defaults': {
+ 'type': 'loadable_module',
+ 'target_conditions': [
+ ['_type=="loadable_module"', {
+ 'product_prefix': '',
+ 'product_extension': 'xwalk',
+ 'variables': {
+ 'packages': [
+ 'xwalk-extensions-common',
+ ],
+ },
+ }],
+ ],
'conditions': [
['extension_build_type == "Release"', {
'defines': ['NDEBUG', ],