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

Side by Side Diff: Source/bindings/derived_sources.gyp

Issue 14179013: Add support for [NoInterfaceObject] extended attribute to bindings generator (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fix circular dependency to DOMWindow.idl in gyp Created 7 years, 8 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
OLDNEW
1 # 1 #
2 # Copyright (C) 2013 Google Inc. All rights reserved. 2 # Copyright (C) 2013 Google Inc. All rights reserved.
3 # 3 #
4 # Redistribution and use in source and binary forms, with or without 4 # Redistribution and use in source and binary forms, with or without
5 # modification, are permitted provided that the following conditions are 5 # modification, are permitted provided that the following conditions are
6 # met: 6 # met:
7 # 7 #
8 # * Redistributions of source code must retain the above copyright 8 # * Redistributions of source code must retain the above copyright
9 # notice, this list of conditions and the following disclaimer. 9 # notice, this list of conditions and the following disclaimer.
10 # * Redistributions in binary form must reproduce the above 10 # * Redistributions in binary form must reproduce the above
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
78 ], 78 ],
79 }], 79 }],
80 ], 80 ],
81 }, 81 },
82 82
83 'target_defaults': { 83 'target_defaults': {
84 'variables': { 84 'variables': {
85 'optimize': 'max', 85 'optimize': 'max',
86 }, 86 },
87 }, 87 },
88 88 # Touch DOMWindow.idl if any IDL file has changed so that DOMWindow attributes
89 # are properly generated to each interface that does not have NoInterfaceObjec t
90 # extended attribute set.
Nico 2013/04/22 17:10:36 This looks like it's emulating a build system in g
89 'targets': [{ 91 'targets': [{
92 'target_name': 'touch_domwindow',
93 'type': 'none',
94 'actions': [{
95 'action_name': 'touchDOMWindow',
96 'variables': {
97 # Write sources into a file, so that the action command line won't
98 # exceed OS limits.
99 'idl_files_list': '<|(idl_files_list.tmp <@(idl_files))',
100 },
101 'inputs': [
102 '<(idl_files_list)',
103 '<!@(cat <(idl_files_list))',
104 ],
105 'inputs/': [['exclude', 'DOMWindow\\.idl$']],
106 'outputs': [
107 '../core/page/DOMWindow.idl',
108 ],
109 'action': [
110 'touch',
111 '../core/page/DOMWindow.idl',
112 ],
113 'message': 'Touching DOMWindow.idl',
114 }]
115 },
116 {
90 'target_name': 'supplemental_dependencies', 117 'target_name': 'supplemental_dependencies',
91 'type': 'none', 118 'type': 'none',
92 'actions': [{ 119 'actions': [{
93 'action_name': 'generateSupplementalDependency', 120 'action_name': 'generateSupplementalDependency',
94 'variables': { 121 'variables': {
95 # Write sources into a file, so that the action command line won't 122 # Write sources into a file, so that the action command line won't
96 # exceed OS limits. 123 # exceed OS limits.
97 'idl_files_list': '<|(idl_files_list.tmp <@(idl_files))', 124 'idl_files_list': '<|(idl_files_list.tmp <@(idl_files))',
98 }, 125 },
99 'inputs': [ 126 'inputs': [
(...skipping 19 matching lines...) Expand all
119 '<(SHARED_INTERMEDIATE_DIR)/supplemental_dependency.tmp', 146 '<(SHARED_INTERMEDIATE_DIR)/supplemental_dependency.tmp',
120 ], 147 ],
121 'message': 'Resolving [Supplemental=XXX] dependencies in all IDL files', 148 'message': 'Resolving [Supplemental=XXX] dependencies in all IDL files',
122 }] 149 }]
123 }, 150 },
124 { 151 {
125 'target_name': 'bindings_derived_sources', 152 'target_name': 'bindings_derived_sources',
126 'type': 'none', 153 'type': 'none',
127 'hard_dependency': 1, 154 'hard_dependency': 1,
128 'dependencies': [ 155 'dependencies': [
156 'touch_domwindow',
129 'supplemental_dependencies', 157 'supplemental_dependencies',
130 '../core/core.gyp/core_derived_sources.gyp:generate_settings', 158 '../core/core.gyp/core_derived_sources.gyp:generate_settings',
131 ], 159 ],
132 'sources': [ 160 'sources': [
133 '<@(idl_files)', 161 '<@(idl_files)',
134 '<@(webcore_test_support_idl_files)', 162 '<@(webcore_test_support_idl_files)',
135 ], 163 ],
136 'actions': [{ 164 'actions': [{
137 'action_name': 'derived_sources_all_in_one', 165 'action_name': 'derived_sources_all_in_one',
138 'inputs': [ 166 'inputs': [
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
219 '--additionalIdlFiles', 247 '--additionalIdlFiles',
220 '<(webcore_test_support_idl_files)', 248 '<(webcore_test_support_idl_files)',
221 '<(RULE_INPUT_PATH)', 249 '<(RULE_INPUT_PATH)',
222 '<@(preprocessor)', 250 '<@(preprocessor)',
223 ], 251 ],
224 'message': 'Generating binding from <(RULE_INPUT_PATH)', 252 'message': 'Generating binding from <(RULE_INPUT_PATH)',
225 }], 253 }],
226 }, 254 },
227 ], 255 ],
228 } 256 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698