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 'variables': { |
| 7 'conditions': [ |
| 8 ['inside_chromium_build==0', { |
| 9 'webkit_src_dir': '../../../../../..', |
| 10 },{ |
| 11 'webkit_src_dir': '../../../third_party/WebKit', |
| 12 }], |
| 13 ], |
| 14 }, |
6 'targets': [ | 15 'targets': [ |
7 { | 16 { |
8 'target_name': 'devtools_resources', | 17 'target_name': 'devtools_resources', |
9 'type': 'none', | 18 'type': 'none', |
10 'dependencies': [ | 19 'dependencies': [ |
11 '../../../third_party/WebKit/Source/WebKit/chromium/WebKit.gyp:generate_
devtools_grd', | 20 '<(webkit_src_dir)/Source/WebKit/chromium/WebKit.gyp:generate_devtools_g
rd', |
12 ], | 21 ], |
13 'variables': { | 22 'variables': { |
14 'grit_out_dir': '<(SHARED_INTERMEDIATE_DIR)/webkit', | 23 'grit_out_dir': '<(SHARED_INTERMEDIATE_DIR)/webkit', |
15 }, | 24 }, |
16 'actions': [ | 25 'actions': [ |
17 { | 26 { |
18 'action_name': 'devtools_resources', | 27 'action_name': 'devtools_resources', |
19 # This can't use build/grit_action.gypi because the grd file | 28 # 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 | 29 # 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. | 30 # the real inputs/outputs at GYP time isn't possible. |
(...skipping 17 matching lines...) Expand all Loading... |
39 '-o', '<(grit_out_dir)', | 48 '-o', '<(grit_out_dir)', |
40 '-D', 'SHARED_INTERMEDIATE_DIR=<(SHARED_INTERMEDIATE_DIR)', | 49 '-D', 'SHARED_INTERMEDIATE_DIR=<(SHARED_INTERMEDIATE_DIR)', |
41 '<@(grit_defines)' ], | 50 '<@(grit_defines)' ], |
42 'message': 'Generating resources from <(grit_grd_file)', | 51 'message': 'Generating resources from <(grit_grd_file)', |
43 } | 52 } |
44 ], | 53 ], |
45 'includes': [ '../../../build/grit_target.gypi' ], | 54 'includes': [ '../../../build/grit_target.gypi' ], |
46 }, | 55 }, |
47 ], | 56 ], |
48 } | 57 } |
OLD | NEW |