Commit b543c229 authored by Kent Tamura's avatar Kent Tamura Committed by Commit Bot

Rename some template file names.

 - InternalRuntimeFlags.h.tmpl -> internal_runtime_flags.h.tmpl
 - InternalRuntimeFlags.idl.tmpl -> internal_runtime_flags.idl.tmpl
 - InternalSettingsGenerated.cpp.tmpl -> internal_settings_generated.cc.tmpl
 - InternalSettingsGenerated.h.tmpl -> internal_settings_generated.h.tmpl
 - InternalSettingsGenerated.idl.tmpl -> internal_settings_generated.idl.tmpl

This CL has no behavior changes.

Bug: 768828
Change-Id: I1538695125ff78b701a71e4cb50024cb4e5e6eab
Reviewed-on: https://chromium-review.googlesource.com/1004395Reviewed-by: default avatarHitoshi Yoshida <peria@chromium.org>
Commit-Queue: Kent Tamura <tkent@chromium.org>
Cr-Commit-Position: refs/heads/master@{#549500}
parent e4cfafa9
......@@ -39,7 +39,6 @@ import template_expander
# We want exactly the same parsing as RuntimeFeatureWriter
# but generate different files.
class InternalRuntimeFlagsWriter(make_runtime_features.RuntimeFeatureWriter):
class_name = 'InternalRuntimeFlags'
def __init__(self, json5_file_path):
super(InternalRuntimeFlagsWriter, self).__init__(json5_file_path)
......@@ -48,7 +47,7 @@ class InternalRuntimeFlagsWriter(make_runtime_features.RuntimeFeatureWriter):
'internal_runtime_flags.h': self.generate_header,
}
@template_expander.use_jinja('templates/' + class_name + '.idl.tmpl')
@template_expander.use_jinja('templates/internal_runtime_flags.idl.tmpl')
def generate_idl(self):
return {
'features': self._features,
......@@ -56,7 +55,7 @@ class InternalRuntimeFlagsWriter(make_runtime_features.RuntimeFeatureWriter):
'standard_features': self._standard_features,
}
@template_expander.use_jinja('templates/' + class_name + '.h.tmpl')
@template_expander.use_jinja('templates/internal_runtime_flags.h.tmpl')
def generate_header(self):
return {
'features': self._features,
......
......@@ -58,15 +58,15 @@ class MakeInternalSettingsWriter(json5_generator.Writer):
'settings': self.json5_file.name_dictionaries,
}
@template_expander.use_jinja('templates/InternalSettingsGenerated.h.tmpl', filters=filters)
@template_expander.use_jinja('templates/internal_settings_generated.h.tmpl', filters=filters)
def generate_header(self):
return self._template_context
@template_expander.use_jinja('templates/InternalSettingsGenerated.cpp.tmpl', filters=filters)
@template_expander.use_jinja('templates/internal_settings_generated.cc.tmpl', filters=filters)
def generate_implementation(self):
return self._template_context
@template_expander.use_jinja('templates/InternalSettingsGenerated.idl.tmpl', filters=filters)
@template_expander.use_jinja('templates/internal_settings_generated.idl.tmpl', filters=filters)
def generate_idl(self):
return self._template_context
......
......@@ -407,9 +407,9 @@ action("generated_testing_idls_settings") {
inputs = scripts_for_json5_files + [
"../build/scripts/make_internal_settings.py",
"../build/scripts/templates/InternalSettingsGenerated.idl.tmpl",
"../build/scripts/templates/InternalSettingsGenerated.cpp.tmpl",
"../build/scripts/templates/InternalSettingsGenerated.h.tmpl",
"../build/scripts/templates/internal_settings_generated.idl.tmpl",
"../build/scripts/templates/internal_settings_generated.cc.tmpl",
"../build/scripts/templates/internal_settings_generated.h.tmpl",
"frame/settings.json5",
]
......@@ -432,8 +432,8 @@ action("generated_testing_idls_internal_runtime_flags") {
inputs = scripts_for_json5_files + [
"../build/scripts/make_internal_runtime_flags.py",
"../platform/runtime_enabled_features.json5",
"../build/scripts/templates/InternalRuntimeFlags.h.tmpl",
"../build/scripts/templates/InternalRuntimeFlags.idl.tmpl",
"../build/scripts/templates/internal_runtime_flags.h.tmpl",
"../build/scripts/templates/internal_runtime_flags.idl.tmpl",
]
args = [
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment