コード例 #1
0
ファイル: property_set.py プロジェクト: elemel/boost-python
def create_from_user_input(raw_properties, jamfile_module, location):
    """Creates a property-set from the input given by the user, in the
    context of 'jamfile-module' at 'location'"""

    property.validate(raw_properties)

    specification = property.translate_paths(raw_properties, location)
    specification = property.translate_indirect(specification, jamfile_module)
    specification = property.expand_subfeatures_in_conditions(specification)
    specification = property.make(specification)
    return create(specification)
コード例 #2
0
def create_from_user_input(raw_properties, jamfile_module, location):
    """Creates a property-set from the input given by the user, in the
    context of 'jamfile-module' at 'location'"""

    property.validate(raw_properties)

    specification = property.translate_paths(raw_properties, location)
    specification = property.translate_indirect(specification, jamfile_module)
    specification = property.expand_subfeatures_in_conditions(specification)
    specification = property.make(specification)
    return create(specification)
コード例 #3
0
ファイル: property_set.py プロジェクト: Lecton/COS-700
def create_from_user_input(raw_properties, jamfile_module, location):
    """Creates a property-set from the input given by the user, in the
    context of 'jamfile-module' at 'location'"""

    properties = property.create_from_strings(raw_properties, True)
    properties = property.translate_paths(properties, location)
    properties = property.translate_indirect(properties, jamfile_module)

    project_id = get_manager().projects().attributeDefault(jamfile_module, 'id', None)
    if not project_id:
        project_id = os.path.abspath(location)
    properties = property.translate_dependencies(properties, project_id, location)
    properties = property.expand_subfeatures_in_conditions(properties)
    return create(properties)
コード例 #4
0
ファイル: property_set.py プロジェクト: fineshift/boost
def create_from_user_input(raw_properties, jamfile_module, location):
    """Creates a property-set from the input given by the user, in the
    context of 'jamfile-module' at 'location'"""

    properties = property.create_from_strings(raw_properties, True)
    properties = property.translate_paths(properties, location)
    properties = property.translate_indirect(properties, jamfile_module)

    project_id = get_manager().projects().attributeDefault(jamfile_module, 'id', None)
    if not project_id:
        project_id = os.path.abspath(location)
    properties = property.translate_dependencies(properties, project_id, location)
    properties = property.expand_subfeatures_in_conditions(properties)
    return create(properties)