| OLD | NEW |
| (Empty) |
| 1 #!/usr/bin/python2.6 | |
| 2 # Copyright (c) 2014 The Native Client Authors. All rights reserved. | |
| 3 # Use of this source code is governed by a BSD-style license that can be | |
| 4 # found in the LICENSE file. | |
| 5 | |
| 6 import subprocess | |
| 7 | |
| 8 # This script vulcanizes all parts of the polymer library that are included in | |
| 9 # polymer-elements.in.html. This is required because the polymer library is not | |
| 10 # CSP compliant and Chrome extensions that use polymer have CSP enforced. | |
| 11 # The vulcanize tool cannot currently be added to the Chrome build which is why | |
| 12 # this must be run manually when polymer is revved. This script should be re-run | |
| 13 # whenever we want polymer is updated. | |
| 14 # | |
| 15 # See https://code.google.com/p/chromium/issues/detail?id=359333 for more | |
| 16 # details. | |
| 17 # | |
| 18 # Once this script has been run, the entire polymer library will be inside of | |
| 19 # polymer-elements.html and polymer-elements.js. | |
| 20 # | |
| 21 # TODO(raymes): This is ugly. Remove this as soon as we can fix | |
| 22 # crbug.com/359333. | |
| 23 | |
| 24 POLYMER_ELEMENTS_INPUT = "polymer-elements.in.html" | |
| 25 POLYMER_ELEMENTS_OUTPUT = "polymer-elements.html" | |
| 26 | |
| 27 subprocess.call(["vulcanize", "--csp", POLYMER_ELEMENTS_INPUT, | |
| 28 "-o", POLYMER_ELEMENTS_OUTPUT]); | |
| OLD | NEW |