1 # Copyright (c) 2014 Google Inc. All rights reserved. 2 # Use of this source code is governed by a BSD-style license that can be 3 # found in the LICENSE file. 4 5 { 6 'targets': [ 7 { 8 'target_name': 'program', 9 'type': 'executable', 10 'sources': [ 11 '<(INTERMEDIATE_DIR)/main.cc', 12 ], 13 'actions': [ 14 { 15 'action_name': 'emit_main_cc', 16 'inputs': ['emit.py'], 17 'outputs': ['<(INTERMEDIATE_DIR)/main.cc'], 18 'action': [ 19 'python', 20 'emit.py', 21 '<(INTERMEDIATE_DIR)/main.cc', 22 ], 23 # Allows the test to run without hermetic cygwin on windows. 24 'msvs_cygwin_shell': 0, 25 }, 26 ], 27 }, 28 ], 29 } 30