gn2bp: Change ActionSanitizer name
* Change the class name to Base which will allow other classes to extend from it. Test: None Change-Id: I96ad16765bdcae109970a863d8612f0966bbd955
This commit is contained in:
@@ -619,7 +619,7 @@ def create_proto_group_modules(blueprint, gn, module_name, target_names):
|
||||
blueprint.add_module(module)
|
||||
|
||||
|
||||
class ActionSanitizer():
|
||||
class BaseActionSanitizer():
|
||||
def __init__(self, target):
|
||||
# Just to be on the safe side, create a deep-copy.
|
||||
self.target = copy.deepcopy(target)
|
||||
@@ -713,7 +713,7 @@ def create_action_module(blueprint, target):
|
||||
bp_module_name = label_to_module_name(target.name)
|
||||
module = Module('cc_genrule', bp_module_name, target.name)
|
||||
|
||||
sanitizer = ActionSanitizer(target)
|
||||
sanitizer = BaseActionSanitizer(target)
|
||||
target.args = sanitizer.get_args()
|
||||
|
||||
if target.script == '//build/write_build_date_header.py':
|
||||
|
||||
Reference in New Issue
Block a user