1 { 2 'target_defaults': { 3 'variables': { 4 'cross%': 0, 5 }, 6 'target_conditions': [ 7 ['cross==1', { 8 'actions': [ 9 { 10 'action_name': 'cross compile >(_target_name)', 11 'inputs': ['^@(_sources)'], 12 'outputs': ['<(SHARED_INTERMEDIATE_DIR)/>(_target_name).fake'], 13 'action': [ 14 'python', 'fake_cross.py', '>@(_outputs)', '^@(_sources)', 15 ], 16 # Allows the test to run without hermetic cygwin on windows. 17 'msvs_cygwin_shell': 0, 18 }, 19 ], 20 }], 21 ], 22 }, 23 } 24