summaryrefslogtreecommitdiffstats
path: root/tools/polymer
diff options
context:
space:
mode:
authormichaelpg <michaelpg@chromium.org>2016-03-22 17:58:53 -0700
committerCommit bot <commit-bot@chromium.org>2016-03-23 01:01:25 +0000
commit4777fdbb18844e1107243909b148fc29658fc1a3 (patch)
tree454e2c6356f6764a41a916bafae00a368d17b3d3 /tools/polymer
parent12bbca48cda56b2a10a68f8f69bb90906189c4bf (diff)
downloadchromium_src-4777fdbb18844e1107243909b148fc29658fc1a3.zip
chromium_src-4777fdbb18844e1107243909b148fc29658fc1a3.tar.gz
chromium_src-4777fdbb18844e1107243909b148fc29658fc1a3.tar.bz2
Add web-animations externs to generated compiled_resources2.gyp files.
Review URL: https://codereview.chromium.org/1824163002 Cr-Commit-Position: refs/heads/master@{#382753}
Diffstat (limited to 'tools/polymer')
-rwxr-xr-xtools/polymer/generate_compiled_resources_gyp.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/tools/polymer/generate_compiled_resources_gyp.py b/tools/polymer/generate_compiled_resources_gyp.py
index 391974e..38f8157 100755
--- a/tools/polymer/generate_compiled_resources_gyp.py
+++ b/tools/polymer/generate_compiled_resources_gyp.py
@@ -13,6 +13,8 @@ _SRC = path.join(path.dirname(path.abspath(__file__)), "..", "..")
_COMPILE_JS = path.join(
_SRC, "third_party", "closure_compiler", "compile_js2.gypi")
_POLYMERS = ["polymer%s.html" % p for p in "", "-mini", "-micro"]
+_WEB_ANIMATIONS_BASE = "web-animations.html"
+_WEB_ANIMATIONS_TARGET = "<(EXTERNS_GYP):web_animations"
_COMPILED_RESOURCES_TEMPLATE = """
# Copyright %d The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
@@ -46,6 +48,10 @@ def main(created_by, html_files):
if import_base in _POLYMERS:
continue
+ if import_base == _WEB_ANIMATIONS_BASE:
+ dependencies.append(_WEB_ANIMATIONS_TARGET)
+ continue
+
target = import_base[:-5] + "-extracted"
if not path.isfile(path.join(html_dir, import_dir, target + ".js")):
continue