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

Unified Diff: runtime/bin/bin.gypi

Issue 11337019: Use patching for dart:io. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 2 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
Index: runtime/bin/bin.gypi
diff --git a/runtime/bin/bin.gypi b/runtime/bin/bin.gypi
index 4aff04ba8f17e5c509461746ab13aedad2eea18e..3270275a595b005946004024c1f349939cd53e06 100644
--- a/runtime/bin/bin.gypi
+++ b/runtime/bin/bin.gypi
@@ -1,3 +1,4 @@
+
Søren Gjesse 2012/10/30 09:28:32 Accidental edit?
Mads Ager (google) 2012/10/30 11:12:40 Yes, thanks!
# Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
# for details. All rights reserved. Use of this source code is governed by a
# BSD-style license that can be found in the LICENSE file.
@@ -6,6 +7,7 @@
'variables': {
'crypto_cc_file': '<(SHARED_INTERMEDIATE_DIR)/crypto_gen.cc',
'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',
'uri_cc_file': '<(SHARED_INTERMEDIATE_DIR)/uri_gen.cc',
'utf_cc_file': '<(SHARED_INTERMEDIATE_DIR)/utf_gen.cc',
@@ -79,8 +81,11 @@
{
'target_name': 'generate_io_cc_file',
'type': 'none',
+ 'sources': [
+ 'io.dart',
+ ],
'includes': [
- 'io_sources.gypi',
+ '../../lib/io/iolib_sources.gypi',
],
'actions': [
{
@@ -107,6 +112,36 @@
]
},
{
+ 'target_name': 'generate_io_patch_cc_file',
+ 'type': 'none',
+ 'includes': [
+ 'io_sources.gypi',
+ ],
+ 'actions': [
+ {
+ 'action_name': 'generate_io_patch_cc',
+ 'inputs': [
+ '../tools/create_string_literal.py',
+ '<(builtin_in_cc_file)',
+ '<@(_sources)',
+ ],
+ 'outputs': [
+ '<(io_patch_cc_file)',
+ ],
+ 'action': [
+ 'python',
+ 'tools/create_string_literal.py',
+ '--output', '<(io_patch_cc_file)',
+ '--input_cc', '<(builtin_in_cc_file)',
+ '--include', 'bin/builtin.h',
+ '--var_name', 'Builtin::io_patch_',
+ '<@(_sources)',
+ ],
+ 'message': 'Generating ''<(io_patch_cc_file)'' file.'
+ },
+ ]
+ },
+ {
'target_name': 'generate_json_cc_file',
'type': 'none',
'includes': [
@@ -222,6 +257,7 @@
'generate_builtin_cc_file',
'generate_crypto_cc_file',
'generate_io_cc_file',
+ 'generate_io_patch_cc_file',
'generate_json_cc_file',
'generate_uri_cc_file',
'generate_utf_cc_file',
@@ -306,6 +342,7 @@
'<(builtin_cc_file)',
'<(crypto_cc_file)',
'<(io_cc_file)',
+ '<(io_patch_cc_file)',
'<(json_cc_file)',
'<(uri_cc_file)',
'<(utf_cc_file)',
@@ -425,6 +462,7 @@
'<(builtin_cc_file)',
'<(crypto_cc_file)',
'<(io_cc_file)',
+ '<(io_patch_cc_file)',
'<(json_cc_file)',
'<(uri_cc_file)',
'<(utf_cc_file)',
@@ -463,6 +501,7 @@
'<(builtin_cc_file)',
'<(crypto_cc_file)',
'<(io_cc_file)',
+ '<(io_patch_cc_file)',
'<(json_cc_file)',
'<(uri_cc_file)',
'<(utf_cc_file)',

Powered by Google App Engine
This is Rietveld 408576698