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