| OLD | NEW |
| (Empty) | |
| 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 |
| 3 # found in the LICENSE file. |
| 4 |
| 5 { |
| 6 'targets': [ |
| 7 { |
| 8 'target_name': 'devtools_resources', |
| 9 'type': 'none', |
| 10 'dependencies': [ |
| 11 '../../../third_party/WebKit/Source/WebKit/chromium/WebKit.gyp:generate_
devtools_grd', |
| 12 ], |
| 13 'variables': { |
| 14 'grit_out_dir': '<(SHARED_INTERMEDIATE_DIR)/webkit', |
| 15 }, |
| 16 'actions': [ |
| 17 { |
| 18 'action_name': 'devtools_resources', |
| 19 # This can't use build/grit_action.gypi because the grd file |
| 20 # is generated at build time, so the trick of using grit_info to get |
| 21 # the real inputs/outputs at GYP time isn't possible. |
| 22 'variables': { |
| 23 'grit_cmd': ['python', '../../../tools/grit/grit.py'], |
| 24 'grit_grd_file': '<(SHARED_INTERMEDIATE_DIR)/devtools/devtools_resou
rces.grd', |
| 25 }, |
| 26 'inputs': [ |
| 27 '<(grit_grd_file)', |
| 28 '<!@pymod_do_main(grit_info --inputs)', |
| 29 ], |
| 30 'outputs': [ |
| 31 '<(grit_out_dir)/grit/devtools_resources.h', |
| 32 '<(grit_out_dir)/devtools_resources.pak', |
| 33 '<(grit_out_dir)/grit/devtools_resources_map.cc', |
| 34 '<(grit_out_dir)/grit/devtools_resources_map.h', |
| 35 ], |
| 36 'action': ['<@(grit_cmd)', |
| 37 '-i', '<(grit_grd_file)', 'build', |
| 38 '-o', '<(grit_out_dir)', |
| 39 '-D', 'SHARED_INTERMEDIATE_DIR=<(SHARED_INTERMEDIATE_DIR)', |
| 40 '<@(grit_defines)' ], |
| 41 'message': 'Generating resources from <(grit_grd_file)', |
| 42 } |
| 43 ], |
| 44 'includes': [ '../../../build/grit_target.gypi' ], |
| 45 }, |
| 46 ], |
| 47 } |
| OLD | NEW |