Ben Murdoch | 097c5b2 | 2016-05-18 11:27:45 +0100 | [diff] [blame^] | 1 | # Copyright (c) 2010 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': 'Some_Target', |
| 9 | 'type': 'executable', |
| 10 | 'msvs_settings': { |
| 11 | 'VCLinkerTool': { |
| 12 | 'OutputFile': '<(PRODUCT_DIR)/stuff/AnotherName.exe', |
| 13 | }, |
| 14 | }, |
| 15 | 'sources': [ |
| 16 | 'HeLLo.cc', |
| 17 | 'blOrP.idl', |
| 18 | ], |
| 19 | }, |
| 20 | { |
| 21 | 'target_name': 'second', |
| 22 | 'type': 'executable', |
| 23 | 'msvs_settings': { |
| 24 | 'VCLinkerTool': { |
| 25 | 'OutputFile': '$(OutDir)\\things\\AnotherName.exe', |
| 26 | }, |
| 27 | }, |
| 28 | 'sources': [ |
| 29 | 'HeLLo.cc', |
| 30 | ], |
| 31 | }, |
| 32 | { |
| 33 | 'target_name': 'Copy_Target', |
| 34 | 'type': 'none', |
| 35 | 'copies': [ |
| 36 | { |
| 37 | 'destination': '<(PRODUCT_DIR)', |
| 38 | 'files': [ |
| 39 | '$(VSInstallDir)\\bin\\cl.exe', |
| 40 | ], |
| 41 | }, |
| 42 | ], |
| 43 | }, |
| 44 | { |
| 45 | 'target_name': 'action', |
| 46 | 'type': 'none', |
| 47 | 'msvs_cygwin_shell': '0', |
| 48 | 'actions': [ |
| 49 | { |
| 50 | 'inputs': [ |
| 51 | '$(IntDir)\\SomeInput', |
| 52 | '$(OutDir)\\SomeOtherInput', |
| 53 | ], |
| 54 | 'outputs': [ |
| 55 | '<(PRODUCT_DIR)/ReSuLt', |
| 56 | '<(SHARED_INTERMEDIATE_DIR)/TempFile', |
| 57 | '$(OutDir)\SomethingElse', |
| 58 | ], |
| 59 | 'action_name': 'Test action', |
| 60 | # Unfortunately, we can't normalize this field because it's |
| 61 | # free-form. Fortunately, ninja doesn't inspect it at all (only the |
| 62 | # inputs and outputs) so it's not mandatory. |
| 63 | 'action': [], |
| 64 | }, |
| 65 | ], |
| 66 | }, |
| 67 | ], |
| 68 | } |