Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(772)

Side by Side Diff: Source/bindings/core/generated.gyp

Issue 316173008: IDL build: factor out global objects action into a GYP template (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 # Copyright 2014 The Chromium Authors. All rights reserved. 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 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 # Generate IDL interfaces info for core, used to generate bindings 5 # Generate IDL interfaces info for core, used to generate bindings
6 # 6 #
7 # Design doc: http://www.chromium.org/developers/design-documents/idl-build 7 # Design doc: http://www.chromium.org/developers/design-documents/idl-build
8 8
9 { 9 {
10 'includes': [ 10 'includes': [
11 # ../.. == Source 11 # ../.. == Source
12 '../../bindings/bindings.gypi',
13 '../../bindings/scripts/scripts.gypi', 12 '../../bindings/scripts/scripts.gypi',
14 '../../core/core.gypi', 13 '../../core/core.gypi',
15 'core.gypi', 14 'core.gypi',
16 'generated.gypi', 15 'generated.gypi',
17 'idl.gypi', 16 'idl.gypi',
18 ], 17 ],
19 18
20 'targets': [ 19 'targets': [
21 ################################################################################ 20 ################################################################################
22 { 21 {
23 'target_name': 'core_global_objects', 22 'target_name': 'core_global_objects',
Nils Barth (inactive) 2014/06/06 05:28:43 A bit simpler, no?
24 'type': 'none', 23 'variables': {
25 'actions': [{ 24 'idl_files': '<(core_idl_files)',
26 'action_name': 'compute_core_global_objects', 25 'output_file': '<(bindings_core_output_dir)/GlobalObjectsCore.pickle',
27 'inputs': [ 26 },
28 '<(bindings_scripts_dir)/compute_global_objects.py', 27 'includes': ['../../bindings/scripts/global_objects.gypi'],
29 '<(bindings_scripts_dir)/utilities.py',
30 # Only look in main IDL files (exclude dependencies and testing,
31 # which should not define global objects).
32 '<(core_idl_files_list)',
33 '<@(core_idl_files)',
34 ],
35 'outputs': [
36 '<(bindings_core_output_dir)/GlobalObjectsCore.pickle',
37 ],
38 'action': [
39 'python',
40 '<(bindings_scripts_dir)/compute_global_objects.py',
41 '--idl-files-list',
42 '<(core_idl_files_list)',
43 '--write-file-only-if-changed',
44 '<(write_file_only_if_changed)',
45 '--',
46 '<(bindings_core_output_dir)/GlobalObjectsCore.pickle',
47 ],
48 'message': 'Computing global objects in core',
49 }]
50 }, 28 },
51 ################################################################################ 29 ################################################################################
52 { 30 {
53 'target_name': 'core_global_constructors_idls', 31 'target_name': 'core_global_constructors_idls',
54 'type': 'none', 32 'type': 'none',
55 'dependencies': [ 33 'dependencies': [
56 'core_global_objects', 34 'core_global_objects',
57 ], 35 ],
58 'actions': [{ 36 'actions': [{
59 'action_name': 'generate_core_global_constructors_idls', 37 'action_name': 'generate_core_global_constructors_idls',
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
125 '--', 103 '--',
126 # Generated files must be passed at command line 104 # Generated files must be passed at command line
127 '<@(core_generated_idl_files)', 105 '<@(core_generated_idl_files)',
128 ], 106 ],
129 'message': 'Computing global information about individual IDL files', 107 'message': 'Computing global information about individual IDL files',
130 }] 108 }]
131 }, 109 },
132 ################################################################################ 110 ################################################################################
133 ], # targets 111 ], # targets
134 } 112 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698