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

Unified 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, 11 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | runtime/bin/builtin.h » ('j') | sdk/lib/json/json.dart » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/bin/bin.gypi
diff --git a/runtime/bin/bin.gypi b/runtime/bin/bin.gypi
index d2a1657255a4a2fd1f30e5906f8ff1bbd87ae2f7..e63cc66fc6a152a61ab8ff244c7d6fe8874fb6c6 100644
--- a/runtime/bin/bin.gypi
+++ b/runtime/bin/bin.gypi
@@ -8,6 +8,7 @@
'io_cc_file': '<(SHARED_INTERMEDIATE_DIR)/io_gen.cc',
'io_patch_cc_file': '<(SHARED_INTERMEDIATE_DIR)/io_patch_gen.cc',
'json_cc_file': '<(SHARED_INTERMEDIATE_DIR)/json_gen.cc',
+ 'json_patch_cc_file': '<(SHARED_INTERMEDIATE_DIR)/json_patch_gen.cc',
'uri_cc_file': '<(SHARED_INTERMEDIATE_DIR)/uri_gen.cc',
'utf_cc_file': '<(SHARED_INTERMEDIATE_DIR)/utf_gen.cc',
'builtin_in_cc_file': 'builtin_in.cc',
@@ -185,7 +186,7 @@
'json_dart': '<(SHARED_INTERMEDIATE_DIR)/json_gen.dart',
},
'includes': [
- 'json_sources.gypi',
+ '../../sdk/lib/json/json_sources.gypi',
],
'actions': [
{
@@ -228,6 +229,36 @@
]
},
{
+ 'target_name': 'generate_json_patch_cc_file',
+ 'type': 'none',
+ 'includes': [
+ 'json_sources.gypi',
+ ],
+ 'actions': [
+ {
+ 'action_name': 'generate_json_patch_cc',
+ 'inputs': [
+ '../tools/create_string_literal.py',
+ '<(builtin_in_cc_file)',
+ '<@(_sources)',
+ ],
+ 'outputs': [
+ '<(json_patch_cc_file)',
+ ],
+ 'action': [
+ 'python',
+ 'tools/create_string_literal.py',
+ '--output', '<(json_patch_cc_file)',
+ '--input_cc', '<(builtin_in_cc_file)',
+ '--include', 'bin/builtin.h',
+ '--var_name', 'Builtin::json_patch_',
+ '<@(_sources)',
+ ],
+ 'message': 'Generating ''<(json_patch_cc_file)'' file.'
+ },
+ ]
+ },
+ {
'target_name': 'generate_uri_cc_file',
'type': 'none',
'variables': {
@@ -334,6 +365,7 @@
'generate_io_cc_file',
'generate_io_patch_cc_file',
'generate_json_cc_file',
+ 'generate_json_patch_cc_file',
'generate_uri_cc_file',
'generate_utf_cc_file',
],
@@ -463,6 +495,7 @@
'<(io_cc_file)',
'<(io_patch_cc_file)',
'<(json_cc_file)',
+ '<(json_patch_cc_file)',
'<(uri_cc_file)',
'<(utf_cc_file)',
],
@@ -598,6 +631,7 @@
'<(io_cc_file)',
'<(io_patch_cc_file)',
'<(json_cc_file)',
+ '<(json_patch_cc_file)',
'<(uri_cc_file)',
'<(utf_cc_file)',
'snapshot_empty.cc',
@@ -653,6 +687,7 @@
'<(io_cc_file)',
'<(io_patch_cc_file)',
'<(json_cc_file)',
+ '<(json_patch_cc_file)',
'<(uri_cc_file)',
'<(utf_cc_file)',
],
« 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