Example #1
0
    def __parse_cl_include_include_attr(self, context, attr_name, value,
                                        include_node):
        del attr_name, value

        self.__parse_file_nodes(context, context.headers, include_node,
                                'Headers')
        raise StopParseException()
Example #2
0
    def __parse_cl_none_include_attr(self, context, attr_name, value,
                                     none_node):
        del attr_name, value

        if 'packages.config' in none_node.attrib['Include']:
            context.packages_config_path = none_node.attrib['Include']
        else:
            self.__parse_file_nodes(context, context.other_project_files,
                                    none_node, '')

        raise StopParseException()
Example #3
0
    def __parse_condition(self, context, attr_name, condition_value, node):
        del attr_name

        found = re.search(r".*=='(.*)'", condition_value)
        if not found:
            return
        setting = tuple(found.group(1).split('|'))
        if setting in context.settings:
            context.current_setting = setting
            context.flags.prepare_context_for_flags(context)
            self.reset_current_setting_after_parsing_node(node)
        else:
            context.current_setting = (None, None)
            raise StopParseException()
    def __parse_configuration_name(self, context, attr_name, configuration_name, node):
        del attr_name

        cmake_setting = make_cmake_configuration(context, configuration_name)
        setting = tuple(cmake_setting.split('|'))

        if setting not in context.configurations_to_parse:
            context.current_setting = (None, None)
            raise StopParseException()

        context.current_setting = setting
        self.common_diagnostics_value = None
        self.common_runtime_checks_value = None
        context.utils.init_context_current_setting(context)
        self.reset_current_setting_after_parsing_node(node)
Example #5
0
    def __parse_target_name_attr(context, attr_name, target_name_value, node):
        del context, attr_name, node

        if target_name_value == 'EnsureNuGetPackageBuildImports':
            raise StopParseException()
Example #6
0
    def __parse_cl_compile_include_attr(self, context, attr_name, value,
                                        cl_node):
        del attr_name, value

        self.__parse_file_nodes(context, context.sources, cl_node, 'Sources')
        raise StopParseException()
    def __parse_tool_name(context, attr_name, tool_name_value, tool_node):
        del attr_name, context

        if tool_name_value in ['VFMidlTool', 'VFManifestTool']:
            raise StopParseException()
        tool_node.tag = tool_name_value