{
'variables': {
'test_variable%': 0,
'variable_path': 'subdir',
},
'targets': [
{
'target_name': 'exe',
'type': 'executable',
'dependencies': [
'subdir/subdir.gyp:foo',
'subdir/subdir2/subdir2.gyp:subdir2',
],
'sources': [
'foo.c',
'<(variable_path)/subdir_source2.c',
],
'conditions': [
['test_variable==1', {
'sources': [
'conditional_source.c',
],
}],
],
'actions': [
{
'action_name': 'action',
'inputs': [
'<(PRODUCT_DIR)/product_dir_input.c',
'action_input.c',
'../bad_path1.h',
'../../bad_path2.h',
'./rel_path1.h',
],
'outputs': [
'action_output.c',
],
},
],
'rules': [
{
'rule_name': 'rule',
'extension': 'pdf',
'inputs': [
'rule_input.c',
],
'outputs': [
'rule_output.pdf',
],
},
],
},
{
'target_name': 'exe2',
'type': 'executable',
'sources': [
'exe2.c',
],
},
{
'target_name': 'exe3',
'type': 'executable',
'dependencies': [
'subdir/subdir.gyp:foo',
'subdir/subdir.gyp:subdir2a',
],
'sources': [
'exe3.c',
],
},
{
'target_name': 'allx',
'type': 'none',
'dependencies': [
'exe',
'exe3',
],
},
],
}