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

Side by Side Diff: runtime/bin/bin.gypi

Issue 1916793003: - Allow for loading dart:html and friends into the standalone (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Rebase. Created 4 years, 7 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
« no previous file with comments | « no previous file | runtime/bin/builtin.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 # Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
2 # for details. All rights reserved. Use of this source code is governed by a 2 # for details. All rights reserved. Use of this source code is governed by a
3 # BSD-style license that can be found in the LICENSE file. 3 # BSD-style license that can be found in the LICENSE file.
4 4
5 { 5 {
6 'variables': { 6 'variables': {
7 'gen_source_dir': '<(SHARED_INTERMEDIATE_DIR)', 7 'gen_source_dir': '<(SHARED_INTERMEDIATE_DIR)',
8 8
9 'io_cc_file': '<(gen_source_dir)/io_gen.cc', 9 'io_cc_file': '<(gen_source_dir)/io_gen.cc',
10 'io_patch_cc_file': '<(gen_source_dir)/io_patch_gen.cc', 10 'io_patch_cc_file': '<(gen_source_dir)/io_patch_gen.cc',
11 'html_cc_file': '<(gen_source_dir)/html_gen.cc',
12 'html_common_cc_file': '<(gen_source_dir)/html_common_gen.cc',
13 'js_cc_file': '<(gen_source_dir)/js_gen.cc',
14 'blink_cc_file': '<(gen_source_dir)/blink_gen.cc',
15 'indexeddb_cc_file': '<(gen_source_dir)/indexeddb_gen.cc',
16 'cached_patches_cc_file': '<(gen_source_dir)/cached_patches_gen.cc',
17 'web_gl_cc_file': '<(gen_source_dir)/web_gl_gen.cc',
18 'metadata_cc_file': '<(gen_source_dir)/metadata_gen.cc',
19 'websql_cc_file': '<(gen_source_dir)/websql_gen.cc',
20 'svg_cc_file': '<(gen_source_dir)/svg_gen.cc',
21 'webaudio_cc_file': '<(gen_source_dir)/webaudio_gen.cc',
22
11 'builtin_in_cc_file': 'builtin_in.cc', 23 'builtin_in_cc_file': 'builtin_in.cc',
12 'builtin_cc_file': '<(gen_source_dir)/builtin_gen.cc', 24 'builtin_cc_file': '<(gen_source_dir)/builtin_gen.cc',
13 'snapshot_in_cc_file': 'snapshot_in.cc', 25 'snapshot_in_cc_file': 'snapshot_in.cc',
14 'vm_isolate_snapshot_bin_file': '<(gen_source_dir)/vm_isolate_snapshot_gen.b in', 26 'vm_isolate_snapshot_bin_file': '<(gen_source_dir)/vm_isolate_snapshot_gen.b in',
15 'isolate_snapshot_bin_file': '<(gen_source_dir)/isolate_snapshot_gen.bin', 27 'isolate_snapshot_bin_file': '<(gen_source_dir)/isolate_snapshot_gen.bin',
16 'gen_snapshot_stamp_file': '<(gen_source_dir)/gen_snapshot.stamp', 28 'gen_snapshot_stamp_file': '<(gen_source_dir)/gen_snapshot.stamp',
17 'resources_cc_file': '<(gen_source_dir)/resources_gen.cc', 29 'resources_cc_file': '<(gen_source_dir)/resources_gen.cc',
18 'snapshot_cc_file': '<(gen_source_dir)/snapshot_gen.cc', 30 'snapshot_cc_file': '<(gen_source_dir)/snapshot_gen.cc',
19 'observatory_assets_cc_file': '<(gen_source_dir)/observatory_assets.cc', 31 'observatory_assets_cc_file': '<(gen_source_dir)/observatory_assets.cc',
20 'observatory_assets_tar_file': '<(gen_source_dir)/observatory_assets.tar', 32 'observatory_assets_tar_file': '<(gen_source_dir)/observatory_assets.tar',
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
113 '--include', 'bin/builtin.h', 125 '--include', 'bin/builtin.h',
114 '--var_name', 'dart::bin::Builtin::io_patch_paths_', 126 '--var_name', 'dart::bin::Builtin::io_patch_paths_',
115 '--library_name', 'dart:io', 127 '--library_name', 'dart:io',
116 '<@(_sources)', 128 '<@(_sources)',
117 ], 129 ],
118 'message': 'Generating ''<(io_patch_cc_file)'' file.' 130 'message': 'Generating ''<(io_patch_cc_file)'' file.'
119 }, 131 },
120 ] 132 ]
121 }, 133 },
122 { 134 {
135 'target_name': 'generate_html_cc_file',
136 'type': 'none',
137 'toolsets':['host'],
138 'sources': [
139 '../../sdk/lib/html/dartium/html_dartium.dart',
140 ],
141 'actions': [
142 {
143 'action_name': 'generate_html_cc',
144 'inputs': [
145 '../tools/gen_library_src_paths.py',
146 '<(builtin_in_cc_file)',
147 '<@(_sources)',
148 ],
149 'outputs': [
150 '<(html_cc_file)',
151 ],
152 'action': [
153 'python',
154 'tools/gen_library_src_paths.py',
155 '--output', '<(html_cc_file)',
156 '--input_cc', '<(builtin_in_cc_file)',
157 '--include', 'bin/builtin.h',
158 '--var_name', 'dart::bin::Builtin::html_source_paths_',
159 '--library_name', 'dart:html',
160 '<@(_sources)',
161 ],
162 'message': 'Generating ''<(html_cc_file)'' file.'
163 },
164 ]
165 },
166 {
167 'target_name': 'generate_html_common_cc_file',
168 'type': 'none',
169 'toolsets':['host'],
170 'sources': [
171 '../../sdk/lib/html/html_common/html_common.dart',
172 '../../sdk/lib/html/html_common/css_class_set.dart',
173 '../../sdk/lib/html/html_common/device.dart',
174 '../../sdk/lib/html/html_common/filtered_element_list.dart',
175 '../../sdk/lib/html/html_common/lists.dart',
176 '../../sdk/lib/html/html_common/conversions.dart',
177 '../../sdk/lib/html/html_common/conversions_dartium.dart',
178 ],
179 'actions': [
180 {
181 'action_name': 'generate_html_common_cc',
182 'inputs': [
183 '../tools/gen_library_src_paths.py',
184 '<(builtin_in_cc_file)',
185 '<@(_sources)',
186 ],
187 'outputs': [
188 '<(html_common_cc_file)',
189 ],
190 'action': [
191 'python',
192 'tools/gen_library_src_paths.py',
193 '--output', '<(html_common_cc_file)',
194 '--input_cc', '<(builtin_in_cc_file)',
195 '--include', 'bin/builtin.h',
196 '--var_name', 'dart::bin::Builtin::html_common_source_paths_',
197 '--library_name', 'dart:html_common',
198 '<@(_sources)',
199 ],
200 'message': 'Generating ''<(html_common_cc_file)'' file.'
201 },
202 ]
203 },
204 {
205 'target_name': 'generate_js_cc_file',
206 'type': 'none',
207 'toolsets':['host'],
208 'sources': [
209 '../../sdk/lib/js/dartium/js_dartium.dart',
210 ],
211 'actions': [
212 {
213 'action_name': 'generate_js_cc',
214 'inputs': [
215 '../tools/gen_library_src_paths.py',
216 '<(builtin_in_cc_file)',
217 '<@(_sources)',
218 ],
219 'outputs': [
220 '<(js_cc_file)',
221 ],
222 'action': [
223 'python',
224 'tools/gen_library_src_paths.py',
225 '--output', '<(js_cc_file)',
226 '--input_cc', '<(builtin_in_cc_file)',
227 '--include', 'bin/builtin.h',
228 '--var_name', 'dart::bin::Builtin::js_source_paths_',
229 '--library_name', 'dart:js',
230 '<@(_sources)',
231 ],
232 'message': 'Generating ''<(js_cc_file)'' file.'
233 },
234 ]
235 },
236 {
237 'target_name': 'generate_blink_cc_file',
238 'type': 'none',
239 'toolsets':['host'],
240 'sources': [
241 '../../sdk/lib/_blink/dartium/_blink_dartium.dart',
242 ],
243 'actions': [
244 {
245 'action_name': 'generate_blink_cc',
246 'inputs': [
247 '../tools/gen_library_src_paths.py',
248 '<(builtin_in_cc_file)',
249 '<@(_sources)',
250 ],
251 'outputs': [
252 '<(blink_cc_file)',
253 ],
254 'action': [
255 'python',
256 'tools/gen_library_src_paths.py',
257 '--output', '<(blink_cc_file)',
258 '--input_cc', '<(builtin_in_cc_file)',
259 '--include', 'bin/builtin.h',
260 '--var_name', 'dart::bin::Builtin::blink_source_paths_',
261 '--library_name', 'dart:_blink',
262 '<@(_sources)',
263 ],
264 'message': 'Generating ''<(blink_cc_file)'' file.'
265 },
266 ]
267 },
268 {
269 'target_name': 'generate_indexeddb_cc_file',
270 'type': 'none',
271 'toolsets':['host'],
272 'sources': [
273 '../../sdk/lib/indexed_db/dartium/indexed_db_dartium.dart',
274 ],
275 'actions': [
276 {
277 'action_name': 'generate_indexeddb_cc',
278 'inputs': [
279 '../tools/gen_library_src_paths.py',
280 '<(builtin_in_cc_file)',
281 '<@(_sources)',
282 ],
283 'outputs': [
284 '<(indexeddb_cc_file)',
285 ],
286 'action': [
287 'python',
288 'tools/gen_library_src_paths.py',
289 '--output', '<(indexeddb_cc_file)',
290 '--input_cc', '<(builtin_in_cc_file)',
291 '--include', 'bin/builtin.h',
292 '--var_name', 'dart::bin::Builtin::indexeddb_source_paths_',
293 '--library_name', 'dart:indexed_db',
294 '<@(_sources)',
295 ],
296 'message': 'Generating ''<(indexeddb_cc_file)'' file.'
297 },
298 ]
299 },
300 {
301 'target_name': 'generate_cached_patches_cc_file',
302 'type': 'none',
303 'toolsets':['host'],
304 'sources': [
305 '../../sdk/lib/js/dartium/cached_patches.dart',
306 ],
307 'actions': [
308 {
309 'action_name': 'generate_cached_patches_cc',
310 'inputs': [
311 '../tools/gen_library_src_paths.py',
312 '<(builtin_in_cc_file)',
313 '<@(_sources)',
314 ],
315 'outputs': [
316 '<(cached_patches_cc_file)',
317 ],
318 'action': [
319 'python',
320 'tools/gen_library_src_paths.py',
321 '--output', '<(cached_patches_cc_file)',
322 '--input_cc', '<(builtin_in_cc_file)',
323 '--include', 'bin/builtin.h',
324 '--var_name', 'dart::bin::Builtin::cached_patches_source_paths_',
325 '--library_name', 'cached_patches.dart',
326 '<@(_sources)',
327 ],
328 'message': 'Generating ''<(cached_patches_cc_file)'' file.'
329 },
330 ]
331 },
332 {
333 'target_name': 'generate_web_gl_cc_file',
334 'type': 'none',
335 'toolsets':['host'],
336 'sources': [
337 '../../sdk/lib/web_gl/dartium/web_gl_dartium.dart',
338 ],
339 'actions': [
340 {
341 'action_name': 'generate_web_gl_cc',
342 'inputs': [
343 '../tools/gen_library_src_paths.py',
344 '<(builtin_in_cc_file)',
345 '<@(_sources)',
346 ],
347 'outputs': [
348 '<(web_gl_cc_file)',
349 ],
350 'action': [
351 'python',
352 'tools/gen_library_src_paths.py',
353 '--output', '<(web_gl_cc_file)',
354 '--input_cc', '<(builtin_in_cc_file)',
355 '--include', 'bin/builtin.h',
356 '--var_name', 'dart::bin::Builtin::web_gl_source_paths_',
357 '--library_name', 'dart:web_gl',
358 '<@(_sources)',
359 ],
360 'message': 'Generating ''<(web_gl_cc_file)'' file.'
361 },
362 ]
363 },
364 {
365 'target_name': 'generate_metadata_cc_file',
366 'type': 'none',
367 'toolsets':['host'],
368 'sources': [
369 '../../sdk/lib/html/html_common/metadata.dart',
370 ],
371 'actions': [
372 {
373 'action_name': 'generate_metadata_cc',
374 'inputs': [
375 '../tools/gen_library_src_paths.py',
376 '<(builtin_in_cc_file)',
377 '<@(_sources)',
378 ],
379 'outputs': [
380 '<(metadata_cc_file)',
381 ],
382 'action': [
383 'python',
384 'tools/gen_library_src_paths.py',
385 '--output', '<(metadata_cc_file)',
386 '--input_cc', '<(builtin_in_cc_file)',
387 '--include', 'bin/builtin.h',
388 '--var_name', 'dart::bin::Builtin::metadata_source_paths_',
389 '--library_name', 'metadata.dart',
390 '<@(_sources)',
391 ],
392 'message': 'Generating ''<(metadata_cc_file)'' file.'
393 },
394 ]
395 },
396 {
397 'target_name': 'generate_websql_cc_file',
398 'type': 'none',
399 'toolsets':['host'],
400 'sources': [
401 '../../sdk/lib/web_sql/dartium/web_sql_dartium.dart',
402 ],
403 'actions': [
404 {
405 'action_name': 'generate_websql_cc',
406 'inputs': [
407 '../tools/gen_library_src_paths.py',
408 '<(builtin_in_cc_file)',
409 '<@(_sources)',
410 ],
411 'outputs': [
412 '<(websql_cc_file)',
413 ],
414 'action': [
415 'python',
416 'tools/gen_library_src_paths.py',
417 '--output', '<(websql_cc_file)',
418 '--input_cc', '<(builtin_in_cc_file)',
419 '--include', 'bin/builtin.h',
420 '--var_name', 'dart::bin::Builtin::websql_source_paths_',
421 '--library_name', 'dart:web_sql',
422 '<@(_sources)',
423 ],
424 'message': 'Generating ''<(websql_cc_file)'' file.'
425 },
426 ]
427 },
428 {
429 'target_name': 'generate_svg_cc_file',
430 'type': 'none',
431 'toolsets':['host'],
432 'sources': [
433 '../../sdk/lib/svg/dartium/svg_dartium.dart',
434 ],
435 'actions': [
436 {
437 'action_name': 'generate_svg_cc',
438 'inputs': [
439 '../tools/gen_library_src_paths.py',
440 '<(builtin_in_cc_file)',
441 '<@(_sources)',
442 ],
443 'outputs': [
444 '<(svg_cc_file)',
445 ],
446 'action': [
447 'python',
448 'tools/gen_library_src_paths.py',
449 '--output', '<(svg_cc_file)',
450 '--input_cc', '<(builtin_in_cc_file)',
451 '--include', 'bin/builtin.h',
452 '--var_name', 'dart::bin::Builtin::svg_source_paths_',
453 '--library_name', 'dart:svg',
454 '<@(_sources)',
455 ],
456 'message': 'Generating ''<(svg_cc_file)'' file.'
457 },
458 ]
459 },
460 {
461 'target_name': 'generate_webaudio_cc_file',
462 'type': 'none',
463 'toolsets':['host'],
464 'sources': [
465 '../../sdk/lib/web_audio/dartium/web_audio_dartium.dart',
466 ],
467 'actions': [
468 {
469 'action_name': 'generate_webaudio_cc',
470 'inputs': [
471 '../tools/gen_library_src_paths.py',
472 '<(builtin_in_cc_file)',
473 '<@(_sources)',
474 ],
475 'outputs': [
476 '<(webaudio_cc_file)',
477 ],
478 'action': [
479 'python',
480 'tools/gen_library_src_paths.py',
481 '--output', '<(webaudio_cc_file)',
482 '--input_cc', '<(builtin_in_cc_file)',
483 '--include', 'bin/builtin.h',
484 '--var_name', 'dart::bin::Builtin::webaudio_source_paths_',
485 '--library_name', 'dart:web_audio',
486 '<@(_sources)',
487 ],
488 'message': 'Generating ''<(webaudio_cc_file)'' file.'
489 },
490 ]
491 },
492 {
123 'target_name': 'libdart_builtin', 493 'target_name': 'libdart_builtin',
124 'type': 'static_library', 494 'type': 'static_library',
125 'toolsets':['target','host'], 495 'toolsets':['target','host'],
126 'dependencies': [ 496 'dependencies': [
127 'generate_builtin_cc_file#host', 497 'generate_builtin_cc_file#host',
128 'generate_io_cc_file#host', 498 'generate_io_cc_file#host',
129 'generate_io_patch_cc_file#host', 499 'generate_io_patch_cc_file#host',
500 'generate_html_cc_file#host',
501 'generate_html_common_cc_file#host',
502 'generate_js_cc_file#host',
503 'generate_blink_cc_file#host',
504 'generate_indexeddb_cc_file#host',
505 'generate_cached_patches_cc_file#host',
506 'generate_web_gl_cc_file#host',
507 'generate_metadata_cc_file#host',
508 'generate_websql_cc_file#host',
509 'generate_svg_cc_file#host',
510 'generate_webaudio_cc_file#host',
130 ], 511 ],
131 'include_dirs': [ 512 'include_dirs': [
132 '..', 513 '..',
133 ], 514 ],
134 'sources': [ 515 'sources': [
135 'log_android.cc', 516 'log_android.cc',
136 'log_linux.cc', 517 'log_linux.cc',
137 'log_macos.cc', 518 'log_macos.cc',
138 'log_win.cc', 519 'log_win.cc',
139 ], 520 ],
(...skipping 719 matching lines...) Expand 10 before | Expand all | Expand 10 after
859 'builtin_natives.cc', 1240 'builtin_natives.cc',
860 'io_natives.h', 1241 'io_natives.h',
861 'observatory_assets_empty.cc', 1242 'observatory_assets_empty.cc',
862 'snapshot_empty.cc', 1243 'snapshot_empty.cc',
863 'vmservice_impl.cc', 1244 'vmservice_impl.cc',
864 'vmservice_impl.h', 1245 'vmservice_impl.h',
865 # Include generated source files. 1246 # Include generated source files.
866 '<(builtin_cc_file)', 1247 '<(builtin_cc_file)',
867 '<(io_cc_file)', 1248 '<(io_cc_file)',
868 '<(io_patch_cc_file)', 1249 '<(io_patch_cc_file)',
1250 '<(html_cc_file)',
1251 '<(html_common_cc_file)',
1252 '<(js_cc_file)',
1253 '<(blink_cc_file)',
1254 '<(indexeddb_cc_file)',
1255 '<(cached_patches_cc_file)',
1256 '<(web_gl_cc_file)',
1257 '<(metadata_cc_file)',
1258 '<(websql_cc_file)',
1259 '<(svg_cc_file)',
1260 '<(webaudio_cc_file)',
1261
869 '<(resources_cc_file)', 1262 '<(resources_cc_file)',
870 ], 1263 ],
871 'defines': [ 1264 'defines': [
872 'DART_NO_SNAPSHOT', 1265 'DART_NO_SNAPSHOT',
873 'DART_PRECOMPILER', 1266 'DART_PRECOMPILER',
874 ], 1267 ],
875 'conditions': [ 1268 'conditions': [
876 ['OS=="win"', { 1269 ['OS=="win"', {
877 'link_settings': { 1270 'link_settings': {
878 'libraries': [ '-lws2_32.lib', '-lRpcrt4.lib', '-lwinmm.lib' ], 1271 'libraries': [ '-lws2_32.lib', '-lRpcrt4.lib', '-lwinmm.lib' ],
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after
1004 }], 1397 }],
1005 ['OS=="linux"', { 1398 ['OS=="linux"', {
1006 'cflags': [ 1399 'cflags': [
1007 '-fPIC', 1400 '-fPIC',
1008 ], 1401 ],
1009 }], 1402 }],
1010 ], 1403 ],
1011 }, 1404 },
1012 ], 1405 ],
1013 } 1406 }
OLDNEW
« no previous file with comments | « no previous file | runtime/bin/builtin.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698