Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
| 4 | 4 |
| 5 { | 5 { |
| 6 'conditions': [ | 6 'conditions': [ |
| 7 ['use_system_protobuf==0', { | 7 ['use_system_protobuf==0', { |
| 8 'conditions': [ | 8 'conditions': [ |
| 9 ['OS!="win"', { | 9 ['OS!="win"', { |
| 10 'variables': { | 10 'variables': { |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 50 # the ninja build, so setting all the inputs and outputs isn't an | 50 # the ninja build, so setting all the inputs and outputs isn't an |
| 51 # option). The first target is given here; the second target is th e | 51 # option). The first target is given here; the second target is th e |
| 52 # normal protoc target under the condition that "OS==iOS". | 52 # normal protoc target under the condition that "OS==iOS". |
| 53 'target_name': 'compile_protoc', | 53 'target_name': 'compile_protoc', |
| 54 'type': 'none', | 54 'type': 'none', |
| 55 'includes': ['../../build/ios/mac_build.gypi'], | 55 'includes': ['../../build/ios/mac_build.gypi'], |
| 56 'actions': [ | 56 'actions': [ |
| 57 { | 57 { |
| 58 'action_name': 'compile protoc', | 58 'action_name': 'compile protoc', |
| 59 'inputs': [], | 59 'inputs': [], |
| 60 'outputs': [], | 60 # A nonexistant name forces the ninja cmd every time. |
|
Mark Mentovai
2013/05/01 18:12:10
Here too.
| |
| 61 'outputs': [ | |
| 62 '<(ninja_product_dir)/protoc', | |
|
Mark Mentovai
2013/05/01 18:12:10
So what…a real output and a fake output? Why?
| |
| 63 'compile_protoc' | |
| 64 ], | |
| 61 'action': [ | 65 'action': [ |
| 62 '<@(ninja_cmd)', | 66 '<@(ninja_cmd)', |
| 63 'protoc', | 67 'protoc', |
| 64 ], | 68 ], |
| 65 'message': 'Generating the C++ protocol buffers compiler', | 69 'message': 'Generating the C++ protocol buffers compiler', |
| 66 }, | 70 }, |
| 67 ], | 71 ], |
| 68 }, | 72 }, |
| 69 ], | 73 ], |
| 70 }], | 74 }], |
| (...skipping 348 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 419 'toolsets': ['host', 'target'], | 423 'toolsets': ['host', 'target'], |
| 420 }, | 424 }, |
| 421 { | 425 { |
| 422 'target_name': 'py_proto', | 426 'target_name': 'py_proto', |
| 423 'type': 'none', | 427 'type': 'none', |
| 424 }, | 428 }, |
| 425 ], | 429 ], |
| 426 }], | 430 }], |
| 427 ], | 431 ], |
| 428 } | 432 } |
| OLD | NEW |