1 # Copyright (c) 2013 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': 'main', 9 'toolsets': ['host'], 10 'type': 'executable', 11 'sources': [ 12 'main.cc', 13 ], 14 }, 15 { 16 'target_name': 'post', 17 'toolsets': ['host'], 18 'type': 'none', 19 'dependencies': [ 20 'main', 21 ], 22 'sources': [ 23 # As this test is written it could easily be made into an action. 24 # An acutal use case would have a number of these 'sources'. 25 '<(PRODUCT_DIR)/<(EXECUTABLE_PREFIX)main<(EXECUTABLE_SUFFIX)', 26 ], 27 'rules': [ 28 { 29 'rule_name': 'generate_output', 30 'extension': '<(EXECUTABLE_SUFFIX)', 31 'outputs': [ '<(RULE_INPUT_DIRNAME)/<(RULE_INPUT_ROOT)_output', ], 32 'msvs_cygwin_shell': 0, 33 'action': [ 34 '<(RULE_INPUT_PATH)', 35 '<(RULE_INPUT_DIRNAME)/<(RULE_INPUT_ROOT)_output', 36 ], 37 'message': 'Generating output for <(RULE_INPUT_ROOT)' 38 }, 39 ], 40 }, 41 ], 42 } 43