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

Unified Diff: tools/dom/scripts/dartdomgenerator.py

Issue 1833373002: Speed up interop patch file creation (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Requires latest change to WebKit Created 4 years, 9 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 | « tools/deps/dartium.deps/DEPS ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/dom/scripts/dartdomgenerator.py
diff --git a/tools/dom/scripts/dartdomgenerator.py b/tools/dom/scripts/dartdomgenerator.py
index b528141a15db4640ab14a53e20d92fd935d7cbc2..c0315df255fab90883a8ec9e92a640a2ef3b1189 100755
--- a/tools/dom/scripts/dartdomgenerator.py
+++ b/tools/dom/scripts/dartdomgenerator.py
@@ -234,6 +234,25 @@ def UpdateCssProperties():
_logger.info('Updating Css Properties.')
css_code_generator.GenerateCssTemplateFile()
+CACHED_PATCHES = """
+// START_OF_CACHED_PATCHES
+// Copyright (c) 2013, 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.
+
+// DO NOT EDIT GENERATED FILE.
+
+library cached_patches;
+
+var cached_patches = {
+ /********************************************************
+ ***** *****
+ ***** MUST RUN tools/dartium/generate_patches.sh *****
+ ***** *****
+ ********************************************************/
+};
+"""
+
def main():
parser = optparse.OptionParser()
parser.add_option('--parallel', dest='parallel',
@@ -327,6 +346,14 @@ def main():
os.path.join(dartium_output_dir, '%s_dartium.dart' % library_name),
os.path.join('..', '..', '..', 'sdk', 'lib', library_name, 'dartium'))
+ # Blow away the cached_patches.dart needs to be re-generated for Dartium
+ # see tools/dartium/generate_patches.sh
+ cached_patches_filename = os.path.join('..', '..', '..', 'sdk', 'lib', 'js', 'dartium',
+ 'cached_patches.dart')
+ cached_patches = open(cached_patches_filename, 'w')
+ cached_patches.write(CACHED_PATCHES);
+ cached_patches.close()
+
if '_blink' in systems:
_logger.info('Generating dartium _blink file.')
file_generation_start_time = time.time()
« no previous file with comments | « tools/deps/dartium.deps/DEPS ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698