Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 # Copyright 2014 The Chromium Authors. 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 # GN version: //content/app/strings | |
| 9 'target_name': 'content_strings', | |
| 10 'type': 'none', | |
| 11 'variables': { | |
| 12 'grit_out_dir': '<(SHARED_INTERMEDIATE_DIR)/content/app/strings', | |
| 13 }, | |
| 14 'actions': [ | |
| 15 { | |
| 16 'action_name': 'generate_content_strings', | |
| 17 'variables': { | |
| 18 'grit_grd_file': 'content_strings.grd', | |
| 19 }, | |
| 20 'includes': [ '../../../build/grit_action.gypi' ], | |
| 21 }, | |
| 22 { | |
| 23 'action_name': 'rm_old_file', | |
|
tfarina
2014/08/03 14:16:57
is it fine to have it here?
jochen (gone - plz use gerrit)
2014/08/04 08:32:38
i don't think we should have such magic in our gyp
Nico
2014/08/04 16:57:41
How is a PSA better than things Just Working autom
Ken Russell (switch to Gerrit)
2014/08/05 01:07:10
I think whatever magic is needed to make this work
| |
| 24 'inputs': [ | |
| 25 '<(DEPTH)/build/whitespace_file.txt', # Dummy input. | |
| 26 ], | |
| 27 'outputs': [ | |
| 28 '<(INTERMEDIATE_DIR)/dummy_stamp', | |
|
tfarina
2014/08/03 14:16:57
this is necessary, otherwise the ninja rule will b
tfarina
2014/08/03 14:17:32
s/will build/will be
| |
| 29 ], | |
| 30 'action': [ | |
| 31 'python', | |
| 32 '-c', | |
| 33 'import os, sys; os.remove(sys.argv[1])', | |
|
tfarina
2014/08/03 14:30:12
we also need os.path.exists(sys.argv[1]), otherwis
| |
| 34 '<(SHARED_INTERMEDIATE_DIR)/webkit/grit/webkit_strings.h' | |
| 35 ], | |
| 36 }, | |
| 37 ], | |
| 38 'includes': [ '../../../build/grit_target.gypi' ], | |
| 39 }, | |
| 40 ] | |
| 41 } | |
| OLD | NEW |