def __init__(self, name, subdir, subproject, is_cross, sources, objects, environment, kwargs):
    super().__init__(name, subdir, subproject, True)
    self.is_cross = is_cross
    unity_opt = environment.coredata.get_builtin_option('unity')
    self.is_unity = ((unity_opt == 'on') or ((unity_opt == 'subprojects') and (subproject != '')))
    self.environment = environment
    self.sources = []
    self.compilers = OrderedDict()
    self.objects = []
    self.external_deps = []
    self.include_dirs = []
    self.link_targets = []
    self.link_whole_targets = []
    self.link_depends = []
    self.name_prefix_set = False
    self.name_suffix_set = False
    self.filename = 'no_name'
    self.outputs = [self.filename]
    self.need_install = False
    self.pch = {}
    self.extra_args = {}
    self.generated = []
    self.extra_files = []
    self.d_features = {}
    self.pic = False
    self.pie = False
    self.process_sourcelist(sources)
    self.process_objectlist(objects)
    self.process_kwargs(kwargs, environment)
    self.check_unknown_kwargs(kwargs)
    self.process_compilers()
    if (not any([self.sources, self.generated, self.objects, self.link_whole])):
        raise InvalidArguments(('Build target %s has no sources.' % name))
    self.process_compilers_late()
    self.validate_sources()
    self.validate_cross_install(environment)
    self.check_module_linking()
def __init__(self, name, subdir, subproject, is_cross, sources, objects, environment, kwargs):
    super().__init__(name, subdir, subproject, True)
    self.is_cross = is_cross
    unity_opt = environment.coredata.get_builtin_option('unity')
    self.is_unity = ((unity_opt == 'on') or ((unity_opt == 'subprojects') and (subproject != )))
    self.environment = environment
    self.sources = []
    self.compilers = OrderedDict()
    self.objects = []
    self.external_deps = []
    self.include_dirs = []
    self.link_targets = []
    self.link_whole_targets = []
    self.link_depends = []
    self.name_prefix_set = False
    self.name_suffix_set = False
    self.filename = 'no_name'
    self.outputs = [self.filename]
    self.need_install = False
    self.pch = {}
    self.extra_args = {}
    self.generated = []
    self.extra_files = []
    self.d_features = {}
    self.pic = False
    self.pie = False
    self.process_sourcelist(sources)
    self.process_objectlist(objects)
    self.process_kwargs(kwargs, environment)
    self.check_unknown_kwargs(kwargs)
    self.process_compilers()
    if (not any([self.sources, self.generated, self.objects, self.link_whole])):
        raise InvalidArguments(('Build target %s has no sources.' % name))
    self.process_compilers_late()
    self.validate_sources()
    self.validate_cross_install(environment)
    self.check_module_linking()