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

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: Review comments. Created 4 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
« no previous file with comments | « no previous file | runtime/bin/builtin.h » ('j') | runtime/bin/builtin.cc » ('J')
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 '../../sdk/lib/html/html_common/standalone_additions.dart',
179 ],
180 'actions': [
181 {
182 'action_name': 'generate_html_common_cc',
183 'inputs': [
184 '../tools/gen_library_src_paths.py',
185 '<(builtin_in_cc_file)',
186 '<@(_sources)',
187 ],
188 'outputs': [
189 '<(html_common_cc_file)',
190 ],
191 'action': [
192 'python',
193 'tools/gen_library_src_paths.py',
194 '--output', '<(html_common_cc_file)',
195 '--input_cc', '<(builtin_in_cc_file)',
196 '--include', 'bin/builtin.h',
197 '--var_name', 'dart::bin::Builtin::html_common_source_paths_',
198 '--library_name', 'dart:html_common',
199 '<@(_sources)',
200 ],
201 'message': 'Generating ''<(html_common_cc_file)'' file.'
202 },
203 ]
204 },
205 {
206 'target_name': 'generate_js_cc_file',
207 'type': 'none',
208 'toolsets':['host'],
209 'sources': [
210 '../../sdk/lib/js/dartium/js_dartium.dart',
211 ],
212 'actions': [
213 {
214 'action_name': 'generate_js_cc',
215 'inputs': [
216 '../tools/gen_library_src_paths.py',
217 '<(builtin_in_cc_file)',
218 '<@(_sources)',
219 ],
220 'outputs': [
221 '<(js_cc_file)',
222 ],
223 'action': [
224 'python',
225 'tools/gen_library_src_paths.py',
226 '--output', '<(js_cc_file)',
227 '--input_cc', '<(builtin_in_cc_file)',
228 '--include', 'bin/builtin.h',
229 '--var_name', 'dart::bin::Builtin::js_source_paths_',
230 '--library_name', 'dart:js',
231 '<@(_sources)',
232 ],
233 'message': 'Generating ''<(js_cc_file)'' file.'
234 },
235 ]
236 },
237 {
238 'target_name': 'generate_blink_cc_file',
239 'type': 'none',
240 'toolsets':['host'],
241 'sources': [
242 '../../sdk/lib/_blink/dartium/_blink_dartium.dart',
243 ],
244 'actions': [
245 {
246 'action_name': 'generate_blink_cc',
247 'inputs': [
248 '../tools/gen_library_src_paths.py',
249 '<(builtin_in_cc_file)',
250 '<@(_sources)',
251 ],
252 'outputs': [
253 '<(blink_cc_file)',
254 ],
255 'action': [
256 'python',
257 'tools/gen_library_src_paths.py',
258 '--output', '<(blink_cc_file)',
259 '--input_cc', '<(builtin_in_cc_file)',
260 '--include', 'bin/builtin.h',
261 '--var_name', 'dart::bin::Builtin::blink_source_paths_',
262 '--library_name', 'dart:_blink',
263 '<@(_sources)',
264 ],
265 'message': 'Generating ''<(blink_cc_file)'' file.'
266 },
267 ]
268 },
269 {
270 'target_name': 'generate_indexeddb_cc_file',
271 'type': 'none',
272 'toolsets':['host'],
273 'sources': [
274 '../../sdk/lib/indexed_db/dartium/indexed_db_dartium.dart',
275 ],
276 'actions': [
277 {
278 'action_name': 'generate_indexeddb_cc',
279 'inputs': [
280 '../tools/gen_library_src_paths.py',
281 '<(builtin_in_cc_file)',
282 '<@(_sources)',
283 ],
284 'outputs': [
285 '<(indexeddb_cc_file)',
286 ],
287 'action': [
288 'python',
289 'tools/gen_library_src_paths.py',
290 '--output', '<(indexeddb_cc_file)',
291 '--input_cc', '<(builtin_in_cc_file)',
292 '--include', 'bin/builtin.h',
293 '--var_name', 'dart::bin::Builtin::indexeddb_source_paths_',
294 '--library_name', 'dart:indexed_db',
295 '<@(_sources)',
296 ],
297 'message': 'Generating ''<(indexeddb_cc_file)'' file.'
298 },
299 ]
300 },
301 {
302 'target_name': 'generate_cached_patches_cc_file',
303 'type': 'none',
304 'toolsets':['host'],
305 'sources': [
306 '../../sdk/lib/js/dartium/cached_patches.dart',
307 ],
308 'actions': [
309 {
310 'action_name': 'generate_cached_patches_cc',
311 'inputs': [
312 '../tools/gen_library_src_paths.py',
313 '<(builtin_in_cc_file)',
314 '<@(_sources)',
315 ],
316 'outputs': [
317 '<(cached_patches_cc_file)',
318 ],
319 'action': [
320 'python',
321 'tools/gen_library_src_paths.py',
322 '--output', '<(cached_patches_cc_file)',
323 '--input_cc', '<(builtin_in_cc_file)',
324 '--include', 'bin/builtin.h',
325 '--var_name', 'dart::bin::Builtin::cached_patches_source_paths_',
326 '--library_name', 'cached_patches.dart',
327 '<@(_sources)',
328 ],
329 'message': 'Generating ''<(cached_patches_cc_file)'' file.'
330 },
331 ]
332 },
333 {
334 'target_name': 'generate_web_gl_cc_file',
335 'type': 'none',
336 'toolsets':['host'],
337 'sources': [
338 '../../sdk/lib/web_gl/dartium/web_gl_dartium.dart',
339 ],
340 'actions': [
341 {
342 'action_name': 'generate_web_gl_cc',
343 'inputs': [
344 '../tools/gen_library_src_paths.py',
345 '<(builtin_in_cc_file)',
346 '<@(_sources)',
347 ],
348 'outputs': [
349 '<(web_gl_cc_file)',
350 ],
351 'action': [
352 'python',
353 'tools/gen_library_src_paths.py',
354 '--output', '<(web_gl_cc_file)',
355 '--input_cc', '<(builtin_in_cc_file)',
356 '--include', 'bin/builtin.h',
357 '--var_name', 'dart::bin::Builtin::web_gl_source_paths_',
358 '--library_name', 'dart:web_gl',
359 '<@(_sources)',
360 ],
361 'message': 'Generating ''<(web_gl_cc_file)'' file.'
362 },
363 ]
364 },
365 {
366 'target_name': 'generate_metadata_cc_file',
367 'type': 'none',
368 'toolsets':['host'],
369 'sources': [
370 '../../sdk/lib/html/html_common/metadata.dart',
371 ],
372 'actions': [
373 {
374 'action_name': 'generate_metadata_cc',
375 'inputs': [
376 '../tools/gen_library_src_paths.py',
377 '<(builtin_in_cc_file)',
378 '<@(_sources)',
379 ],
380 'outputs': [
381 '<(metadata_cc_file)',
382 ],
383 'action': [
384 'python',
385 'tools/gen_library_src_paths.py',
386 '--output', '<(metadata_cc_file)',
387 '--input_cc', '<(builtin_in_cc_file)',
388 '--include', 'bin/builtin.h',
389 '--var_name', 'dart::bin::Builtin::metadata_source_paths_',
390 '--library_name', 'metadata.dart',
391 '<@(_sources)',
392 ],
393 'message': 'Generating ''<(metadata_cc_file)'' file.'
394 },
395 ]
396 },
397 {
398 'target_name': 'generate_websql_cc_file',
399 'type': 'none',
400 'toolsets':['host'],
401 'sources': [
402 '../../sdk/lib/web_sql/dartium/web_sql_dartium.dart',
403 ],
404 'actions': [
405 {
406 'action_name': 'generate_websql_cc',
407 'inputs': [
408 '../tools/gen_library_src_paths.py',
409 '<(builtin_in_cc_file)',
410 '<@(_sources)',
411 ],
412 'outputs': [
413 '<(websql_cc_file)',
414 ],
415 'action': [
416 'python',
417 'tools/gen_library_src_paths.py',
418 '--output', '<(websql_cc_file)',
419 '--input_cc', '<(builtin_in_cc_file)',
420 '--include', 'bin/builtin.h',
421 '--var_name', 'dart::bin::Builtin::websql_source_paths_',
422 '--library_name', 'dart:web_sql',
423 '<@(_sources)',
424 ],
425 'message': 'Generating ''<(websql_cc_file)'' file.'
426 },
427 ]
428 },
429 {
430 'target_name': 'generate_svg_cc_file',
431 'type': 'none',
432 'toolsets':['host'],
433 'sources': [
434 '../../sdk/lib/svg/dartium/svg_dartium.dart',
435 ],
436 'actions': [
437 {
438 'action_name': 'generate_svg_cc',
439 'inputs': [
440 '../tools/gen_library_src_paths.py',
441 '<(builtin_in_cc_file)',
442 '<@(_sources)',
443 ],
444 'outputs': [
445 '<(svg_cc_file)',
446 ],
447 'action': [
448 'python',
449 'tools/gen_library_src_paths.py',
450 '--output', '<(svg_cc_file)',
451 '--input_cc', '<(builtin_in_cc_file)',
452 '--include', 'bin/builtin.h',
453 '--var_name', 'dart::bin::Builtin::svg_source_paths_',
454 '--library_name', 'dart:svg',
455 '<@(_sources)',
456 ],
457 'message': 'Generating ''<(svg_cc_file)'' file.'
458 },
459 ]
460 },
461 {
462 'target_name': 'generate_webaudio_cc_file',
463 'type': 'none',
464 'toolsets':['host'],
465 'sources': [
466 '../../sdk/lib/web_audio/dartium/web_audio_dartium.dart',
467 ],
468 'actions': [
469 {
470 'action_name': 'generate_webaudio_cc',
471 'inputs': [
472 '../tools/gen_library_src_paths.py',
473 '<(builtin_in_cc_file)',
474 '<@(_sources)',
475 ],
476 'outputs': [
477 '<(webaudio_cc_file)',
478 ],
479 'action': [
480 'python',
481 'tools/gen_library_src_paths.py',
482 '--output', '<(webaudio_cc_file)',
483 '--input_cc', '<(builtin_in_cc_file)',
484 '--include', 'bin/builtin.h',
485 '--var_name', 'dart::bin::Builtin::webaudio_source_paths_',
486 '--library_name', 'dart:web_audio',
487 '<@(_sources)',
488 ],
489 'message': 'Generating ''<(webaudio_cc_file)'' file.'
490 },
491 ]
492 },
493 {
123 'target_name': 'libdart_builtin', 494 'target_name': 'libdart_builtin',
124 'type': 'static_library', 495 'type': 'static_library',
125 'toolsets':['target','host'], 496 'toolsets':['target','host'],
126 'dependencies': [ 497 'dependencies': [
127 'generate_builtin_cc_file#host', 498 'generate_builtin_cc_file#host',
128 'generate_io_cc_file#host', 499 'generate_io_cc_file#host',
129 'generate_io_patch_cc_file#host', 500 'generate_io_patch_cc_file#host',
501 'generate_html_cc_file#host',
502 'generate_html_common_cc_file#host',
503 'generate_js_cc_file#host',
504 'generate_blink_cc_file#host',
505 'generate_indexeddb_cc_file#host',
506 'generate_cached_patches_cc_file#host',
507 'generate_web_gl_cc_file#host',
508 'generate_metadata_cc_file#host',
509 'generate_websql_cc_file#host',
510 'generate_svg_cc_file#host',
511 'generate_webaudio_cc_file#host',
130 ], 512 ],
131 'include_dirs': [ 513 'include_dirs': [
132 '..', 514 '..',
133 ], 515 ],
134 'sources': [ 516 'sources': [
135 'log_android.cc', 517 'log_android.cc',
136 'log_linux.cc', 518 'log_linux.cc',
137 'log_macos.cc', 519 'log_macos.cc',
138 'log_win.cc', 520 'log_win.cc',
139 ], 521 ],
(...skipping 390 matching lines...) Expand 10 before | Expand all | Expand 10 after
530 'platform_linux.cc', 912 'platform_linux.cc',
531 'platform_macos.cc', 913 'platform_macos.cc',
532 'platform_win.cc', 914 'platform_win.cc',
533 'platform.h', 915 'platform.h',
534 'vmservice_impl.cc', 916 'vmservice_impl.cc',
535 'vmservice_impl.h', 917 'vmservice_impl.h',
536 # Include generated source files. 918 # Include generated source files.
537 '<(builtin_cc_file)', 919 '<(builtin_cc_file)',
538 '<(io_cc_file)', 920 '<(io_cc_file)',
539 '<(io_patch_cc_file)', 921 '<(io_patch_cc_file)',
922 '<(html_cc_file)',
siva 2016/04/25 23:38:31 Why do we need this here?
Ivan Posva 2016/04/26 21:17:43 Left over from development. Thanks for spotting th
540 '<(resources_cc_file)', 923 '<(resources_cc_file)',
541 ], 924 ],
542 'defines': [ 925 'defines': [
543 'PLATFORM_DISABLE_SOCKET', 926 'PLATFORM_DISABLE_SOCKET',
544 ], 927 ],
545 'conditions': [ 928 'conditions': [
546 ['OS=="win"', { 929 ['OS=="win"', {
547 'link_settings': { 930 'link_settings': {
548 'libraries': [ '-lws2_32.lib', '-lRpcrt4.lib' ], 931 'libraries': [ '-lws2_32.lib', '-lRpcrt4.lib' ],
549 }, 932 },
(...skipping 309 matching lines...) Expand 10 before | Expand all | Expand 10 after
859 'builtin_natives.cc', 1242 'builtin_natives.cc',
860 'io_natives.h', 1243 'io_natives.h',
861 'observatory_assets_empty.cc', 1244 'observatory_assets_empty.cc',
862 'snapshot_empty.cc', 1245 'snapshot_empty.cc',
863 'vmservice_impl.cc', 1246 'vmservice_impl.cc',
864 'vmservice_impl.h', 1247 'vmservice_impl.h',
865 # Include generated source files. 1248 # Include generated source files.
866 '<(builtin_cc_file)', 1249 '<(builtin_cc_file)',
867 '<(io_cc_file)', 1250 '<(io_cc_file)',
868 '<(io_patch_cc_file)', 1251 '<(io_patch_cc_file)',
1252 '<(html_cc_file)',
1253 '<(html_common_cc_file)',
1254 '<(js_cc_file)',
1255 '<(blink_cc_file)',
1256 '<(indexeddb_cc_file)',
1257 '<(cached_patches_cc_file)',
1258 '<(web_gl_cc_file)',
1259 '<(metadata_cc_file)',
1260 '<(websql_cc_file)',
1261 '<(svg_cc_file)',
1262 '<(webaudio_cc_file)',
1263
869 '<(resources_cc_file)', 1264 '<(resources_cc_file)',
870 ], 1265 ],
871 'defines': [ 1266 'defines': [
872 'DART_NO_SNAPSHOT', 1267 'DART_NO_SNAPSHOT',
873 'DART_PRECOMPILER', 1268 'DART_PRECOMPILER',
874 ], 1269 ],
875 'conditions': [ 1270 'conditions': [
876 ['OS=="win"', { 1271 ['OS=="win"', {
877 'link_settings': { 1272 'link_settings': {
878 'libraries': [ '-lws2_32.lib', '-lRpcrt4.lib', '-lwinmm.lib' ], 1273 'libraries': [ '-lws2_32.lib', '-lRpcrt4.lib', '-lwinmm.lib' ],
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
922 'builtin_common.cc', 1317 'builtin_common.cc',
923 'builtin_natives.cc', 1318 'builtin_natives.cc',
924 'builtin_nolib.cc', 1319 'builtin_nolib.cc',
925 'builtin.h', 1320 'builtin.h',
926 'io_natives.h', 1321 'io_natives.h',
927 # Include generated source files. 1322 # Include generated source files.
928 '<(snapshot_cc_file)', 1323 '<(snapshot_cc_file)',
929 '<(builtin_cc_file)', 1324 '<(builtin_cc_file)',
930 '<(io_cc_file)', 1325 '<(io_cc_file)',
931 '<(io_patch_cc_file)', 1326 '<(io_patch_cc_file)',
1327 '<(html_cc_file)',
siva 2016/04/25 23:38:31 Ditto ?
Ivan Posva 2016/04/26 21:17:43 Done.
932 ], 1328 ],
933 'includes': [ 1329 'includes': [
934 'builtin_impl_sources.gypi', 1330 'builtin_impl_sources.gypi',
935 '../platform/platform_sources.gypi', 1331 '../platform/platform_sources.gypi',
936 '../vm/vm_sources.gypi', 1332 '../vm/vm_sources.gypi',
937 ], 1333 ],
938 'defines': [ 1334 'defines': [
939 'TESTING', 1335 'TESTING',
940 ], 1336 ],
941 # Only include _test.[cc|h] files. 1337 # Only include _test.[cc|h] files.
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
1004 }], 1400 }],
1005 ['OS=="linux"', { 1401 ['OS=="linux"', {
1006 'cflags': [ 1402 'cflags': [
1007 '-fPIC', 1403 '-fPIC',
1008 ], 1404 ],
1009 }], 1405 }],
1010 ], 1406 ],
1011 }, 1407 },
1012 ], 1408 ],
1013 } 1409 }
OLDNEW
« no previous file with comments | « no previous file | runtime/bin/builtin.h » ('j') | runtime/bin/builtin.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698