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

Unified Diff: Source/build/scripts/make_names.py

Issue 275283002: Split EventTargetFactory.in and auto-generate modules-related files. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Split EventTargetFactory.in and auto-generate modules-related files. Created 6 years, 7 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 | « Source/build/scripts/make_event_factory.py ('k') | Source/build/scripts/name_macros.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/build/scripts/make_names.py
diff --git a/Source/build/scripts/make_names.py b/Source/build/scripts/make_names.py
index 8d8102a3c0e6b4e5ec4ed5c00ca3156fe73291a7..d88e263208333bf9d7fab8bdb534c8f4780239c1 100755
--- a/Source/build/scripts/make_names.py
+++ b/Source/build/scripts/make_names.py
@@ -52,6 +52,7 @@ class MakeNamesWriter(in_generator.Writer):
}
default_parameters = {
'namespace': '',
+ 'suffix': '',
'export': '',
}
filters = {
@@ -66,16 +67,18 @@ class MakeNamesWriter(in_generator.Writer):
super(MakeNamesWriter, self).__init__(in_file_path)
namespace = self.in_file.parameters['namespace'].strip('"')
+ suffix = self.in_file.parameters['suffix'].strip('"')
export = self.in_file.parameters['export'].strip('"')
assert namespace, 'A namespace is required.'
self._outputs = {
- (namespace + 'Names.h'): self.generate_header,
- (namespace + 'Names.cpp'): self.generate_implementation,
+ (namespace + suffix + 'Names.h'): self.generate_header,
+ (namespace + suffix + 'Names.cpp'): self.generate_implementation,
}
self._template_context = {
'namespace': namespace,
+ 'suffix': suffix,
'export': export,
'entries': self.in_file.name_dictionaries,
}
« no previous file with comments | « Source/build/scripts/make_event_factory.py ('k') | Source/build/scripts/name_macros.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698