Пример #1
0
def alias(name, sources=[], requirements=[], default_build=[], usage_requirements=[]):

    project = get_manager().projects().current()
    targets = get_manager().targets()

    targets.main_target_alternative(AliasTarget(
        name, project,
        targets.main_target_sources(sources, name, no_renaming=True),
        targets.main_target_requirements(requirements or [], project),
        targets.main_target_default_build(default_build, project),
        targets.main_target_usage_requirements(usage_requirements or [], project)))
Пример #2
0
def alias(name, sources, requirements=None, default_build=None, usage_requirements=None):
    project = get_manager().projects().current()
    targets = get_manager().targets()

    if default_build:
        default_build = default_build[0]

    targets.main_target_alternative(AliasTarget(
        name[0], project,
        targets.main_target_sources(sources, name),
        targets.main_target_requirements(requirements or [], project),
        targets.main_target_default_build(default_build, project),
        targets.main_target_usage_requirements(usage_requirements or [], project)))
Пример #3
0
def alias(name, sources, requirements=None, default_build=None, usage_requirements=None):
    project = get_manager().projects().current()
    targets = get_manager().targets()

    if default_build:
        default_build = default_build[0]

    targets.main_target_alternative(AliasTarget(
        name[0], project,
        targets.main_target_sources(sources, name),
        targets.main_target_requirements(requirements or [], project),
        targets.main_target_default_build(default_build, project),
        targets.main_target_usage_requirements(usage_requirements or [], project)))
Пример #4
0
def alias(name, sources=[], requirements=[], default_build=[], usage_requirements=[]):
    assert isinstance(name, basestring)
    assert is_iterable_typed(sources, basestring)
    assert is_iterable_typed(requirements, basestring)
    assert is_iterable_typed(default_build, basestring)
    assert is_iterable_typed(usage_requirements, basestring)
    project = get_manager().projects().current()
    targets = get_manager().targets()

    targets.main_target_alternative(AliasTarget(
        name, project,
        targets.main_target_sources(sources, name, no_renaming=True),
        targets.main_target_requirements(requirements or [], project),
        targets.main_target_default_build(default_build, project),
        targets.main_target_usage_requirements(usage_requirements or [], project)))
def alias(name,
          sources=[],
          requirements=[],
          default_build=[],
          usage_requirements=[]):
    project = get_manager().projects().current()
    targets = get_manager().targets()

    targets.main_target_alternative(
        AliasTarget(
            name, project,
            targets.main_target_sources(sources, name, no_renaming=True),
            targets.main_target_requirements(requirements or [], project),
            targets.main_target_default_build(default_build, project),
            targets.main_target_usage_requirements(usage_requirements or [],
                                                   project)))
Пример #6
0
def alias(name,
          sources=[],
          requirements=[],
          default_build=[],
          usage_requirements=[]):
    assert isinstance(name, basestring)
    assert is_iterable_typed(sources, basestring)
    assert is_iterable_typed(requirements, basestring)
    assert is_iterable_typed(default_build, basestring)
    assert is_iterable_typed(usage_requirements, basestring)
    project = get_manager().projects().current()
    targets = get_manager().targets()

    targets.main_target_alternative(
        AliasTarget(
            name, project,
            targets.main_target_sources(sources, name, no_renaming=True),
            targets.main_target_requirements(requirements or [], project),
            targets.main_target_default_build(default_build, project),
            targets.main_target_usage_requirements(usage_requirements or [],
                                                   project)))