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

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

Issue 12114021: Use browsers JSON.parse for parsing JSON. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | runtime/bin/builtin.h » ('j') | sdk/lib/json/json.dart » ('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 'crypto_cc_file': '<(SHARED_INTERMEDIATE_DIR)/crypto_gen.cc', 7 'crypto_cc_file': '<(SHARED_INTERMEDIATE_DIR)/crypto_gen.cc',
8 'io_cc_file': '<(SHARED_INTERMEDIATE_DIR)/io_gen.cc', 8 'io_cc_file': '<(SHARED_INTERMEDIATE_DIR)/io_gen.cc',
9 'io_patch_cc_file': '<(SHARED_INTERMEDIATE_DIR)/io_patch_gen.cc', 9 'io_patch_cc_file': '<(SHARED_INTERMEDIATE_DIR)/io_patch_gen.cc',
10 'json_cc_file': '<(SHARED_INTERMEDIATE_DIR)/json_gen.cc', 10 'json_cc_file': '<(SHARED_INTERMEDIATE_DIR)/json_gen.cc',
11 'json_patch_cc_file': '<(SHARED_INTERMEDIATE_DIR)/json_patch_gen.cc',
11 'uri_cc_file': '<(SHARED_INTERMEDIATE_DIR)/uri_gen.cc', 12 'uri_cc_file': '<(SHARED_INTERMEDIATE_DIR)/uri_gen.cc',
12 'utf_cc_file': '<(SHARED_INTERMEDIATE_DIR)/utf_gen.cc', 13 'utf_cc_file': '<(SHARED_INTERMEDIATE_DIR)/utf_gen.cc',
13 'builtin_in_cc_file': 'builtin_in.cc', 14 'builtin_in_cc_file': 'builtin_in.cc',
14 'builtin_cc_file': '<(SHARED_INTERMEDIATE_DIR)/builtin_gen.cc', 15 'builtin_cc_file': '<(SHARED_INTERMEDIATE_DIR)/builtin_gen.cc',
15 'snapshot_in_cc_file': 'snapshot_in.cc', 16 'snapshot_in_cc_file': 'snapshot_in.cc',
16 'snapshot_bin_file': '<(SHARED_INTERMEDIATE_DIR)/snapshot_gen.bin', 17 'snapshot_bin_file': '<(SHARED_INTERMEDIATE_DIR)/snapshot_gen.bin',
17 'snapshot_cc_file': '<(SHARED_INTERMEDIATE_DIR)/snapshot_gen.cc', 18 'snapshot_cc_file': '<(SHARED_INTERMEDIATE_DIR)/snapshot_gen.cc',
18 }, 19 },
19 'targets': [ 20 'targets': [
20 { 21 {
(...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after
178 }, 179 },
179 ] 180 ]
180 }, 181 },
181 { 182 {
182 'target_name': 'generate_json_cc_file', 183 'target_name': 'generate_json_cc_file',
183 'type': 'none', 184 'type': 'none',
184 'variables': { 185 'variables': {
185 'json_dart': '<(SHARED_INTERMEDIATE_DIR)/json_gen.dart', 186 'json_dart': '<(SHARED_INTERMEDIATE_DIR)/json_gen.dart',
186 }, 187 },
187 'includes': [ 188 'includes': [
188 'json_sources.gypi', 189 '../../sdk/lib/json/json_sources.gypi',
189 ], 190 ],
190 'actions': [ 191 'actions': [
191 { 192 {
192 'action_name': 'generate_json_dart', 193 'action_name': 'generate_json_dart',
193 'inputs': [ 194 'inputs': [
194 '../tools/concat_library.py', 195 '../tools/concat_library.py',
195 '<@(_sources)', 196 '<@(_sources)',
196 ], 197 ],
197 'outputs': [ 198 'outputs': [
198 '<(json_dart)', 199 '<(json_dart)',
(...skipping 22 matching lines...) Expand all
221 '--input_cc', '<(builtin_in_cc_file)', 222 '--input_cc', '<(builtin_in_cc_file)',
222 '--include', 'bin/builtin.h', 223 '--include', 'bin/builtin.h',
223 '--var_name', 'Builtin::json_source_', 224 '--var_name', 'Builtin::json_source_',
224 '<(json_dart)', 225 '<(json_dart)',
225 ], 226 ],
226 'message': 'Generating ''<(json_cc_file)'' file.' 227 'message': 'Generating ''<(json_cc_file)'' file.'
227 }, 228 },
228 ] 229 ]
229 }, 230 },
230 { 231 {
232 'target_name': 'generate_json_patch_cc_file',
233 'type': 'none',
234 'includes': [
235 'json_sources.gypi',
236 ],
237 'actions': [
238 {
239 'action_name': 'generate_json_patch_cc',
240 'inputs': [
241 '../tools/create_string_literal.py',
242 '<(builtin_in_cc_file)',
243 '<@(_sources)',
244 ],
245 'outputs': [
246 '<(json_patch_cc_file)',
247 ],
248 'action': [
249 'python',
250 'tools/create_string_literal.py',
251 '--output', '<(json_patch_cc_file)',
252 '--input_cc', '<(builtin_in_cc_file)',
253 '--include', 'bin/builtin.h',
254 '--var_name', 'Builtin::json_patch_',
255 '<@(_sources)',
256 ],
257 'message': 'Generating ''<(json_patch_cc_file)'' file.'
258 },
259 ]
260 },
261 {
231 'target_name': 'generate_uri_cc_file', 262 'target_name': 'generate_uri_cc_file',
232 'type': 'none', 263 'type': 'none',
233 'variables': { 264 'variables': {
234 'uri_dart': '<(SHARED_INTERMEDIATE_DIR)/uri_gen.dart', 265 'uri_dart': '<(SHARED_INTERMEDIATE_DIR)/uri_gen.dart',
235 }, 266 },
236 'includes': [ 267 'includes': [
237 'uri_sources.gypi', 268 'uri_sources.gypi',
238 ], 269 ],
239 'actions': [ 270 'actions': [
240 { 271 {
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
327 }, 358 },
328 { 359 {
329 'target_name': 'libdart_builtin', 360 'target_name': 'libdart_builtin',
330 'type': 'static_library', 361 'type': 'static_library',
331 'dependencies': [ 362 'dependencies': [
332 'generate_builtin_cc_file', 363 'generate_builtin_cc_file',
333 'generate_crypto_cc_file', 364 'generate_crypto_cc_file',
334 'generate_io_cc_file', 365 'generate_io_cc_file',
335 'generate_io_patch_cc_file', 366 'generate_io_patch_cc_file',
336 'generate_json_cc_file', 367 'generate_json_cc_file',
368 'generate_json_patch_cc_file',
337 'generate_uri_cc_file', 369 'generate_uri_cc_file',
338 'generate_utf_cc_file', 370 'generate_utf_cc_file',
339 ], 371 ],
340 'include_dirs': [ 372 'include_dirs': [
341 '..', 373 '..',
342 ], 374 ],
343 'sources': [ 375 'sources': [
344 'builtin_natives.cc', 376 'builtin_natives.cc',
345 'builtin.h', 377 'builtin.h',
346 'io_natives.h', 378 'io_natives.h',
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
456 'sources': [ 488 'sources': [
457 'gen_snapshot.cc', 489 'gen_snapshot.cc',
458 # Only looks up native functions in libdart_builtin, not libdart_io. 490 # Only looks up native functions in libdart_builtin, not libdart_io.
459 'builtin_gen_snapshot.cc', 491 'builtin_gen_snapshot.cc',
460 # Include generated source files. 492 # Include generated source files.
461 '<(builtin_cc_file)', 493 '<(builtin_cc_file)',
462 '<(crypto_cc_file)', 494 '<(crypto_cc_file)',
463 '<(io_cc_file)', 495 '<(io_cc_file)',
464 '<(io_patch_cc_file)', 496 '<(io_patch_cc_file)',
465 '<(json_cc_file)', 497 '<(json_cc_file)',
498 '<(json_patch_cc_file)',
466 '<(uri_cc_file)', 499 '<(uri_cc_file)',
467 '<(utf_cc_file)', 500 '<(utf_cc_file)',
468 ], 501 ],
469 'conditions': [ 502 'conditions': [
470 ['OS=="win"', { 503 ['OS=="win"', {
471 'link_settings': { 504 'link_settings': {
472 'libraries': [ '-lws2_32.lib', '-lRpcrt4.lib' ], 505 'libraries': [ '-lws2_32.lib', '-lRpcrt4.lib' ],
473 }, 506 },
474 }], 507 }],
475 ['OS=="android"', { 508 ['OS=="android"', {
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after
591 ], 624 ],
592 'sources': [ 625 'sources': [
593 'main.cc', 626 'main.cc',
594 'builtin.cc', 627 'builtin.cc',
595 # Include generated source files. 628 # Include generated source files.
596 '<(builtin_cc_file)', 629 '<(builtin_cc_file)',
597 '<(crypto_cc_file)', 630 '<(crypto_cc_file)',
598 '<(io_cc_file)', 631 '<(io_cc_file)',
599 '<(io_patch_cc_file)', 632 '<(io_patch_cc_file)',
600 '<(json_cc_file)', 633 '<(json_cc_file)',
634 '<(json_patch_cc_file)',
601 '<(uri_cc_file)', 635 '<(uri_cc_file)',
602 '<(utf_cc_file)', 636 '<(utf_cc_file)',
603 'snapshot_empty.cc', 637 'snapshot_empty.cc',
604 ], 638 ],
605 'conditions': [ 639 'conditions': [
606 ['OS=="win"', { 640 ['OS=="win"', {
607 'link_settings': { 641 'link_settings': {
608 'libraries': [ '-lws2_32.lib', '-lRpcrt4.lib', '-lwinmm.lib' ], 642 'libraries': [ '-lws2_32.lib', '-lRpcrt4.lib', '-lwinmm.lib' ],
609 }, 643 },
610 # Generate an import library on Windows, by exporting a function. 644 # Generate an import library on Windows, by exporting a function.
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
646 ], 680 ],
647 'sources': [ 681 'sources': [
648 'run_vm_tests.cc', 682 'run_vm_tests.cc',
649 'builtin.cc', 683 'builtin.cc',
650 # Include generated source files. 684 # Include generated source files.
651 '<(builtin_cc_file)', 685 '<(builtin_cc_file)',
652 '<(crypto_cc_file)', 686 '<(crypto_cc_file)',
653 '<(io_cc_file)', 687 '<(io_cc_file)',
654 '<(io_patch_cc_file)', 688 '<(io_patch_cc_file)',
655 '<(json_cc_file)', 689 '<(json_cc_file)',
690 '<(json_patch_cc_file)',
656 '<(uri_cc_file)', 691 '<(uri_cc_file)',
657 '<(utf_cc_file)', 692 '<(utf_cc_file)',
658 ], 693 ],
659 'includes': [ 694 'includes': [
660 'builtin_impl_sources.gypi', 695 'builtin_impl_sources.gypi',
661 '../platform/platform_sources.gypi', 696 '../platform/platform_sources.gypi',
662 '../vm/vm_sources.gypi', 697 '../vm/vm_sources.gypi',
663 ], 698 ],
664 'defines': [ 699 'defines': [
665 'TESTING', 700 'TESTING',
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
709 ['OS=="mac"', { 744 ['OS=="mac"', {
710 'xcode_settings': { 745 'xcode_settings': {
711 'OTHER_LDFLAGS': [ '-undefined', 'dynamic_lookup' ], 746 'OTHER_LDFLAGS': [ '-undefined', 'dynamic_lookup' ],
712 }, 747 },
713 }], 748 }],
714 ], 749 ],
715 }, 750 },
716 ], 751 ],
717 } 752 }
718 753
OLDNEW
« no previous file with comments | « no previous file | runtime/bin/builtin.h » ('j') | sdk/lib/json/json.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698