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

Side by Side Diff: sky/engine/bindings-dart/core/dart/dart-extras.gypi

Issue 918273002: Remove bindings-dart (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 10 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
(Empty)
1 {
2 'variables': {
3 'global_dart_output_dir': '<(SHARED_INTERMEDIATE_DIR)/blink/bindings/dart',
4 'dart_dir': '../../../../../../dart',
5 'dart_lib_dir': '<(dart_dir)/sdk/lib',
6 'resources_dir': 'resources',
7 'build_dir': '../../../build',
8 'core_dir': '../../../core',
9 'modules_dir': '../../../modules',
10 'core_gyp_dir': '<(core_dir)',
11 'scripts_dir': '../../dart/gyp/scripts',
12
13 'bindings_core_dart_stamp_file': '<(SHARED_INTERMEDIATE_DIR)/blink/bindings/ core/dart/core.stamp',
14
15 # Share with Source/core/core.gyp somehow.
16 # Note: that SVG exclusions are not applicable for Dartium.
17 'bindings_idl_files': [
18 '<@(core_idl_files)',
19 '<@(core_dependency_idl_files)',
20 '<@(modules_idl_files)',
21 '<@(modules_dependency_idl_files)',
22 '<(modules_dir)/geolocation/NavigatorGeolocation.idl',
23 # Add some interfaces which are missing for JS, but necessary for Dart.
24 '<(core_dir)/svg/SVGFilterPrimitiveStandardAttributes.idl',
25 '<(core_dir)/svg/SVGFitToViewBox.idl',
26 '<(core_dir)/svg/SVGTests.idl',
27 ],
28
29 'bindings_idl_files!': [
30 # Custom bindings in bindings/core/v8/custom exist for these.
31 '<(core_dir)/dom/EventListener.idl',
32
33 '<(core_dir)/page/AbstractView.idl',
34
35 # FIXME: I don't know why these are excluded, either.
36 # Someone (me?) should figure it out and add appropriate comments.
37 '<(core_dir)/css/CSSUnknownRule.idl',
38 ],
39
40 'enable_dart_native_extensions%': '<(enable_dart_native_extensions)',
41 'additional_webcore_include_dirs': [
42 '.',
43 'custom',
44 '<(dart_dir)runtime',
45 '<(dart_dir)runtime/include',
46 '<(SHARED_INTERMEDIATE_DIR)/blink/bindings/dart',
47 ],
48 },
49 'targets': [
50 {
51 'target_name': 'dart_debug_hooks_source',
52 'type': 'none',
53 'actions': [
54 {
55 'action_name': 'generateDartDebugHooksSource',
56 'inputs': [
57 'DartDebugHooks.js',
58 ],
59 'outputs': [
60 '<(SHARED_INTERMEDIATE_DIR)/blink/DartDebugHooksSource.h',
61 ],
62 'action': [
63 'python',
64 '<(build_dir)/scripts/xxd.py',
65 'DartDebugHooksSource_js',
66 '<@(_inputs)',
67 '<@(_outputs)'
68 ],
69 'message': 'Generating DartDebugHooksSource.h from DartDebugHooks.js',
70 },
71 ]
72 },
73 {
74 'target_name': 'gen_dart_blink',
75 'type': 'none',
76 'actions': [
77 {
78 'action_name': 'generateDartBlinkLibrary',
79 'inputs': [
80 # Only includes main IDL files from core and modules (exclude
81 # dependencies and testing, for which bindings are not included in
82 # aggregate bindings).
83 '<@(core_idl_files)',
84 '<@(modules_idl_files)',
85 '<(bindings_core_dart_stamp_file)',
86 '<(bindings_modules_dart_stamp_file)',
87 '<@(dart_code_generator_template_files)',
88 '<@(dart_idl_compiler_files)',
89 '<@(idl_compiler_files)',
90 ],
91 'outputs': [
92 '<(global_dart_output_dir)/_blink_dartium.dart',
93 ],
94 'action': [
95 'python',
96 '-S', # skip 'import site' to speed up startup
97 '../../dart/scripts/compiler.py',
98 '--generate-dart-blink',
99 '<(bindings_core_dart_output_dir)',
100 '<(core_idl_files_list)',
101 '--generate-dart-blink',
102 '<(bindings_modules_dart_output_dir)',
103 '<(modules_idl_files_list)',
104 '--output-directory',
105 '<(global_dart_output_dir)',
106 ],
107 'message': 'Generating dart:_blink library',
108 },
109 ]
110 },
111 {
112 'target_name': 'dart_snapshot',
113 'type': 'none',
114 'hard_dependency': 1,
115 'dependencies': [
116 '<(dart_dir)/runtime/dart-runtime.gyp:gen_snapshot#host',
117 'gen_dart_blink',
118 ],
119 'variables': {
120 'idls_list_temp_file': '<|(idls_list_temp_file.tmp <@(bindings_idl_files ))',
121 'output_path': '<(SHARED_INTERMEDIATE_DIR)/blink/bindings/dart',
122 'dart_html_lib_dir': '<(dart_dir)/tools/dom',
123 'dart_html_lib_deps': '<!(python <@(scripts_dir)/dart_html_lib_deps.py < (dart_html_lib_dir))',
124 },
125 'sources': [
126 # '<!@(cat <(idls_list_temp_file))',
127 ],
128 'actions': [
129 # FIXME: We need an action to generate:
130 # - Dart*.[h|cpp]
131 # - blink_DartResolver.cpp
132 {
133 'action_name': 'generate_dart_class_ids',
134 'inputs': [
135 # Only includes main IDL files from core and modules (exclude
136 # dependencies and testing, for which bindings are not included in
137 # aggregate bindings).
138 '<@(core_idl_files)',
139 '<@(modules_idl_files)',
140 '<(bindings_core_dart_stamp_file)',
141 '<(bindings_modules_dart_stamp_file)',
142 '<@(dart_code_generator_template_files)',
143 '<@(dart_idl_compiler_files)',
144 '<@(idl_compiler_files)',
145 ],
146 'outputs': [
147 '<@(dart_class_id_files)',
148 ],
149 'action': [
150 'python',
151 '-S', # skip 'import site' to speed up startup
152 '../../dart/scripts/compiler.py',
153 '--generate-globals',
154 '<(bindings_core_dart_output_dir)',
155 '<(core_idl_files_list)',
156 '--generate-globals',
157 '<(bindings_modules_dart_output_dir)',
158 '<(modules_idl_files_list)',
159 '--output-directory',
160 '<(global_dart_output_dir)',
161 ],
162 'message': 'Generating Dart class id table',
163 },
164 {
165 'action_name': 'build_dart_snapshot',
166 'variables': {
167 'output_path': '<(SHARED_INTERMEDIATE_DIR)/blink/bindings/dart',
168 'pure_libs': [
169 '<(global_dart_output_dir)/_blink_dartium.dart',
170 '<(dart_lib_dir)/html/html_common/html_common.dart',
171 '<(dart_lib_dir)/js/dartium/js_dartium.dart',
172 '<(dart_lib_dir)/html/dartium/html_dartium.dart',
173 '<(dart_lib_dir)/indexed_db/dartium/indexed_db_dartium.dart',
174 '<(dart_lib_dir)/svg/dartium/svg_dartium.dart',
175 '<(dart_lib_dir)/web_audio/dartium/web_audio_dartium.dart',
176 '<(dart_lib_dir)/web_gl/dartium/web_gl_dartium.dart',
177 '<(dart_lib_dir)/web_sql/dartium/web_sql_dartium.dart',
178 ],
179 },
180 'inputs': [
181 '<@(scripts_dir)/build_dart_snapshot.py',
182 '<(resources_dir)/DartSnapshot.bytes.template',
183 '<(PRODUCT_DIR)/<(EXECUTABLE_PREFIX)gen_snapshot<(EXECUTABLE_SUFFIX) ',
184 # FIXME: libs below can consist of more than a single file. Ideally, we should
185 # track that somehow.
186 # FIXME: We need blink_dartium.dart here.
187 '<@(pure_libs)',
188 '<@(dart_html_lib_deps)',
189 ],
190 'outputs': [
191 '<(output_path)/DartSnapshot.bytes',
192 ],
193 'action': [
194 'python',
195 '<@(scripts_dir)/build_dart_snapshot.py',
196 '<(dart_dir)',
197 '<(resources_dir)/DartSnapshot.bytes.template',
198 '<(output_path)',
199 '<(PRODUCT_DIR)/<(EXECUTABLE_PREFIX)gen_snapshot<(EXECUTABLE_SUFFIX) ',
200 '<@(pure_libs)',
201 ],
202 },
203 ],
204 },
205 ],
206 }
OLDNEW
« no previous file with comments | « sky/engine/bindings-dart/core/dart/dart.gypi ('k') | sky/engine/bindings-dart/core/dart/dart-native-extensions.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698