Hi,
Is it possible to use source files from one target in another in the same file. Here is an example:
{
'target_name': 'hello',
'sources': [
'kitty.cc',
],
'target_name': 'hello_another_compiler',
'actions': [
{
'action_name': 'make_hello_another_compiler',
'inputs': [
'<hello@sources'
],
'outputs': ['hello_another_compiler.exe'],
'action': [
'compile.bat',
'<(inputs)',
],
},
]
}
I want to reuse the sources specified in the first target as inputs for the custom action in the second target. That way I don't need to have duplicate copies of the filenames. The line in red is ideally something what I am looking for. I can just say "use the sources from the target hello". If not is there another way to achieve this in gyp? My goal is not to duplicate the files because it makes life harder for people that need to maintain it.
Thanks,
Nikola