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

Unified Diff: bin/bin.gypi

Issue 9417012: - Add dart:json, dart:uri and dart:utf8 to the known and builtin libraries. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/runtime/
Patch Set: Created 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | bin/builtin.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: bin/bin.gypi
===================================================================
--- bin/bin.gypi (revision 4317)
+++ bin/bin.gypi (working copy)
@@ -4,8 +4,10 @@
{
'variables': {
- 'io_in_cc_file': 'io_in.cc',
'io_cc_file': '<(SHARED_INTERMEDIATE_DIR)/io_gen.cc',
+ 'json_cc_file': '<(SHARED_INTERMEDIATE_DIR)/json_gen.cc',
+ 'uri_cc_file': '<(SHARED_INTERMEDIATE_DIR)/uri_gen.cc',
+ 'utf8_cc_file': '<(SHARED_INTERMEDIATE_DIR)/utf8_gen.cc',
'builtin_in_cc_file': 'builtin_in.cc',
'builtin_cc_file': '<(SHARED_INTERMEDIATE_DIR)/builtin_gen.cc',
'snapshot_in_cc_file': 'snapshot_in.cc',
@@ -41,6 +43,8 @@
'tools/create_string_literal.py',
'--output', '<(builtin_cc_file)',
'--input_cc', '<(builtin_in_cc_file)',
+ '--include', 'bin/builtin.h',
+ '--var_name', 'Builtin::builtin_source_',
'<@(_sources)',
],
'message': 'Generating ''<(builtin_cc_file)'' file.'
@@ -63,7 +67,7 @@
'action_name': 'generate_io_cc',
'inputs': [
'../tools/create_string_literal.py',
- '<(io_in_cc_file)',
+ '<(builtin_in_cc_file)',
'<@(_sources)',
],
'outputs': [
@@ -73,7 +77,9 @@
'python',
'tools/create_string_literal.py',
'--output', '<(io_cc_file)',
- '--input_cc', '<(io_in_cc_file)',
+ '--input_cc', '<(builtin_in_cc_file)',
+ '--include', 'bin/builtin.h',
+ '--var_name', 'Builtin::io_source_',
'<@(_sources)',
],
'message': 'Generating ''<(io_cc_file)'' file.'
@@ -81,11 +87,119 @@
]
},
{
+ 'target_name': 'generate_json_cc_file',
+ 'type': 'none',
+ 'conditions': [
+ ['OS=="win"', {
+ 'msvs_cygwin_dirs': ['<(cygwin_dir)'],
+ }],
+ ],
+ 'includes': [
+ 'json_sources.gypi',
+ ],
+ 'actions': [
+ {
+ 'action_name': 'generate_json_cc',
+ 'inputs': [
+ '../tools/create_string_literal.py',
+ '<(builtin_in_cc_file)',
+ '<@(_sources)',
+ ],
+ 'outputs': [
+ '<(json_cc_file)',
+ ],
+ 'action': [
+ 'python',
+ 'tools/create_string_literal.py',
+ '--output', '<(json_cc_file)',
+ '--input_cc', '<(builtin_in_cc_file)',
+ '--include', 'bin/builtin.h',
+ '--var_name', 'Builtin::json_source_',
+ '<@(_sources)',
+ ],
+ 'message': 'Generating ''<(json_cc_file)'' file.'
+ },
+ ]
+ },
+ {
+ 'target_name': 'generate_uri_cc_file',
+ 'type': 'none',
+ 'conditions': [
+ ['OS=="win"', {
+ 'msvs_cygwin_dirs': ['<(cygwin_dir)'],
+ }],
+ ],
+ 'includes': [
+ 'uri_sources.gypi',
+ ],
+ 'actions': [
+ {
+ 'action_name': 'generate_uri_cc',
+ 'inputs': [
+ '../tools/create_string_literal.py',
+ '<(builtin_in_cc_file)',
+ '<@(_sources)',
+ ],
+ 'outputs': [
+ '<(uri_cc_file)',
+ ],
+ 'action': [
+ 'python',
+ 'tools/create_string_literal.py',
+ '--output', '<(uri_cc_file)',
+ '--input_cc', '<(builtin_in_cc_file)',
+ '--include', 'bin/builtin.h',
+ '--var_name', 'Builtin::uri_source_',
+ '<@(_sources)',
+ ],
+ 'message': 'Generating ''<(uri_cc_file)'' file.'
+ },
+ ]
+ },
+ {
+ 'target_name': 'generate_utf8_cc_file',
+ 'type': 'none',
+ 'conditions': [
+ ['OS=="win"', {
+ 'msvs_cygwin_dirs': ['<(cygwin_dir)'],
+ }],
+ ],
+ 'includes': [
+ 'utf8_sources.gypi',
+ ],
+ 'actions': [
+ {
+ 'action_name': 'generate_utf8_cc',
+ 'inputs': [
+ '../tools/create_string_literal.py',
+ '<(builtin_in_cc_file)',
+ '<@(_sources)',
+ ],
+ 'outputs': [
+ '<(utf8_cc_file)',
+ ],
+ 'action': [
+ 'python',
+ 'tools/create_string_literal.py',
+ '--output', '<(utf8_cc_file)',
+ '--input_cc', '<(builtin_in_cc_file)',
+ '--include', 'bin/builtin.h',
+ '--var_name', 'Builtin::utf8_source_',
+ '<@(_sources)',
+ ],
+ 'message': 'Generating ''<(utf8_cc_file)'' file.'
+ },
+ ]
+ },
+ {
'target_name': 'libdart_builtin',
'type': 'static_library',
'dependencies': [
'generate_builtin_cc_file',
'generate_io_cc_file',
+ 'generate_json_cc_file',
+ 'generate_uri_cc_file',
+ 'generate_utf8_cc_file',
],
'include_dirs': [
'..',
@@ -143,6 +257,9 @@
# Include generated source files.
'<(builtin_cc_file)',
'<(io_cc_file)',
+ '<(json_cc_file)',
+ '<(uri_cc_file)',
+ '<(utf8_cc_file)',
],
'conditions': [
['OS=="win"', {
@@ -227,6 +344,9 @@
# Include generated source files.
'<(builtin_cc_file)',
'<(io_cc_file)',
+ '<(json_cc_file)',
+ '<(uri_cc_file)',
+ '<(utf8_cc_file)',
'snapshot_empty.cc',
],
'conditions': [
« no previous file with comments | « no previous file | bin/builtin.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698