Lines Matching refs:target_name
403 def make_genrules_for_action(blueprint, desc, target_name): argument
419 target = desc[target_name]
425 raise Error('Unsupported action in target %s: %s' % (target_name,
428 (target_name, ' '.join(target['args'])))
461 source_module = Module('genrule', label_to_module_name(target_name))
466 label_to_module_name(target_name) + '_headers')
499 (target_name, args[i]))
553 def create_modules_from_target(blueprint, desc, target_name): argument
564 target = desc[target_name]
566 if 'host' in target['toolchain'] or target_name in target_host_only:
572 modules = [Module(module_type, label_to_module_name(target_name))]
574 modules = make_genrules_for_action(blueprint, desc, target_name)
576 module = Module('cc_library_static', label_to_module_name(target_name))
581 Module('cc_library_shared', label_to_module_name(target_name))
587 module.comment = 'GN target: %s' % target_name
588 if target_name in target_initrc:
589 module.init_rc = [target_initrc[target_name]]
590 if target_name in target_host_supported:
597 apply_module_dependency(blueprint, desc, module, target_name)
598 for dep in resolve_dependencies(desc, target_name):
616 def resolve_dependencies(desc, target_name): argument
627 if label_without_toolchain(target_name) in builtin_deps:
629 target = desc[target_name]