def __init__(self, name, subdir, subproject, build_by_default):
    if has_path_sep(name):
        mlog.warning(('Target "%s" has a path separator in its name.\nThis is not supported, it can cause unexpected failures and will become\na hard error in the future.' % name))
    self.name = name
    self.subdir = subdir
    self.subproject = subproject
    self.build_by_default = build_by_default
    self.install = False
    self.build_always_stale = False
    self.option_overrides = {}
    if (not hasattr(self, 'typename')):
        raise RuntimeError('Target type is not set for target class "{}". This is a bug'.format(type(self).__name__))
def __init__(self, name, subdir, subproject, build_by_default):
    if has_path_sep(name):
        mlog.warning(('Target "%s" has a path separator in its name.\nThis is not supported, it can cause unexpected failures and will become\na hard error in the future.' % name))
    self.name = name
    self.subdir = subdir
    self.subproject = subproject
    self.build_by_default = build_by_default
    self.install = False
    self.build_always_stale = False
    self.option_overrides = {}
    if (not hasattr(self, 'typename')):
        raise RuntimeError('Target type is not set for target class "{}". This is a bug'.format(type(self).__name__))