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

Side by Side Diff: Source/build/scripts/make_media_features.py

Issue 235673007: Fix deps problems in Jinja template use in build/scripts (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 8 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | Source/core/core_generated.gyp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/usr/bin/env python 1 #!/usr/bin/env python
2 2
3 # Copyright 2014 The Chromium Authors. All rights reserved. 3 # Copyright 2014 The Chromium Authors. All rights reserved.
4 # Use of this source code is governed by a BSD-style license that can be 4 # Use of this source code is governed by a BSD-style license that can be
5 # found in the LICENSE file. 5 # found in the LICENSE file.
6 6
7 import media_feature_symbol 7 import media_feature_symbol
8 import in_generator 8 import in_generator
9 import template_expander 9 import template_expander
10 import name_utilities 10 import name_utilities
(...skipping 20 matching lines...) Expand all
31 31
32 self._outputs = { 32 self._outputs = {
33 ('MediaFeatures.h'): self.generate_header, 33 ('MediaFeatures.h'): self.generate_header,
34 } 34 }
35 self._template_context = { 35 self._template_context = {
36 'namespace': '', 36 'namespace': '',
37 'export': '', 37 'export': '',
38 'entries': self.in_file.name_dictionaries, 38 'entries': self.in_file.name_dictionaries,
39 } 39 }
40 40
41 @template_expander.use_jinja("MediaFeatures.h.tmpl", filters=filters) 41 @template_expander.use_jinja('MediaFeatures.h.tmpl', filters=filters)
42 def generate_header(self): 42 def generate_header(self):
43 return self._template_context 43 return self._template_context
44 44
45 if __name__ == "__main__": 45 if __name__ == '__main__':
46 in_generator.Maker(MakeMediaFeaturesWriter).main(sys.argv) 46 in_generator.Maker(MakeMediaFeaturesWriter).main(sys.argv)
OLDNEW
« no previous file with comments | « no previous file | Source/core/core_generated.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698