How to use the sasl.enums.enums_generator.configuration function in sasl

To help you get started, we’ve selected a few sasl examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github wuye9036 / SalviaRenderer / sasl / enums / enums_generator.py View on Github external
config_elems = self.dom_.getElementsByTagName( configuration.config_tag )
		if len(config_elems) <= 0:
			return
		self.config_elem = config_elems[0]

		config_name_elems = self.config_elem.getElementsByTagName( configuration.config_name_tag )
		if len( config_name_elems ) > 0:
			self.config_name = config_name_elem[0].firstChild.data

		input_files_elems = self.config_elem.getElementsByTagName( configuration.input_files_tag )
		if len(input_files_elems) > 0:
			self.input_files_elem = input_files_elems[0]
			for input_file_elem in self.input_files_elem.getElementsByTagName( configuration.input_file_tag ):
				self.input_files.append( input_file_elem.firstChild.data )

		build_target_elems = self.config_elem.getElementsByTagName( configuration.build_target_tag )
		if len(build_target_elems) > 0:
			self.build_target_elem = build_target_elems[0]
			self._load_build_targets( self.build_target_elem)
		
		support_code_elems = self.config_elem.getElementsByTagName( configuration.support_code_tag )
		if len(support_code_elems) > 0:
			self._load_support_code( support_code_elems[0] )
github wuye9036 / SalviaRenderer / sasl / enums / enums_generator.py View on Github external
def _load_support_code(self, support_code_elem):
		for pre_include_elem in support_code_elem.getElementsByTagName( configuration.pre_include_tag ):
			self.pre_includes.append(pre_include_elem.firstChild.data)
			
		include_guard_prefix_elems = support_code_elem.getElementsByTagName( configuration.include_guard_prefix_tag )
		if len(include_guard_prefix_elems) > 0:
			self.include_guard_prefix = include_guard_prefix_elems[0].firstChild.data
		
		include_guard_postfix_elems = support_code_elem.getElementsByTagName( configuration.include_guard_postfix_tag )
		if len(include_guard_postfix_elems) > 0:
			self.include_guard_postfix = include_guard_postfix_elems[0].firstChild.data
github wuye9036 / SalviaRenderer / sasl / enums / enums_generator.py View on Github external
def _load_build_targets(self, build_target_elem):
		header_folder_elems = build_target_elem.getElementsByTagName ( configuration.header_target_tag )
		if len(header_folder_elems) > 0:
			header_folder_elem = header_folder_elems[0]
			self.header_folder = header_folder_elem.firstChild.data

		src_folder_elems = build_target_elem.getElementsByTagName( configuration.src_target_tag )
		if len(src_folder_elems) > 0:
			src_folder_elem = src_folder_elems[0]
			self.src_folder = src_folder_elem.firstChild.data

		include_path_elems = build_target_elem.getElementsByTagName ( configuration.include_path_tag )
		if len(include_path_elems) > 0:
			include_path_elem = include_path_elems[0]
			self.include_path = include_path_elem.firstChild.data
github wuye9036 / SalviaRenderer / sasl / enums / enums_generator.py View on Github external
def _load_support_code(self, support_code_elem):
		for pre_include_elem in support_code_elem.getElementsByTagName( configuration.pre_include_tag ):
			self.pre_includes.append(pre_include_elem.firstChild.data)
			
		include_guard_prefix_elems = support_code_elem.getElementsByTagName( configuration.include_guard_prefix_tag )
		if len(include_guard_prefix_elems) > 0:
			self.include_guard_prefix = include_guard_prefix_elems[0].firstChild.data
		
		include_guard_postfix_elems = support_code_elem.getElementsByTagName( configuration.include_guard_postfix_tag )
		if len(include_guard_postfix_elems) > 0:
			self.include_guard_postfix = include_guard_postfix_elems[0].firstChild.data
github wuye9036 / SalviaRenderer / sasl / enums / enums_generator.py View on Github external
def __init__(self, config_file):
		self.config_ = configuration(config_file)
		self.config_dir_ = os.path.dirname( config_file )
github wuye9036 / SalviaRenderer / sasl / enums / enums_generator.py View on Github external
def _load_build_targets(self, build_target_elem):
		header_folder_elems = build_target_elem.getElementsByTagName ( configuration.header_target_tag )
		if len(header_folder_elems) > 0:
			header_folder_elem = header_folder_elems[0]
			self.header_folder = header_folder_elem.firstChild.data

		src_folder_elems = build_target_elem.getElementsByTagName( configuration.src_target_tag )
		if len(src_folder_elems) > 0:
			src_folder_elem = src_folder_elems[0]
			self.src_folder = src_folder_elem.firstChild.data

		include_path_elems = build_target_elem.getElementsByTagName ( configuration.include_path_tag )
		if len(include_path_elems) > 0:
			include_path_elem = include_path_elems[0]
			self.include_path = include_path_elem.firstChild.data
github wuye9036 / SalviaRenderer / sasl / enums / enums_generator.py View on Github external
def _load_build_targets(self, build_target_elem):
		header_folder_elems = build_target_elem.getElementsByTagName ( configuration.header_target_tag )
		if len(header_folder_elems) > 0:
			header_folder_elem = header_folder_elems[0]
			self.header_folder = header_folder_elem.firstChild.data

		src_folder_elems = build_target_elem.getElementsByTagName( configuration.src_target_tag )
		if len(src_folder_elems) > 0:
			src_folder_elem = src_folder_elems[0]
			self.src_folder = src_folder_elem.firstChild.data

		include_path_elems = build_target_elem.getElementsByTagName ( configuration.include_path_tag )
		if len(include_path_elems) > 0:
			include_path_elem = include_path_elems[0]
			self.include_path = include_path_elem.firstChild.data
github wuye9036 / SalviaRenderer / sasl / enums / enums_generator.py View on Github external
self.input_files_elem = None
		
		self.build_target_elem = None
		self.header_folder_elem = None
		self.src_folder_elem = None
		self.include_path_elem = None

		self.input_files = []
		self.header_folder = ""
		self.src_folder = ""
		self.include_path =""
		self.pre_includes = []
		self.include_guard_prefix = ""
		self.include_guard_postfix = ""
		
		config_elems = self.dom_.getElementsByTagName( configuration.config_tag )
		if len(config_elems) <= 0:
			return
		self.config_elem = config_elems[0]

		config_name_elems = self.config_elem.getElementsByTagName( configuration.config_name_tag )
		if len( config_name_elems ) > 0:
			self.config_name = config_name_elem[0].firstChild.data

		input_files_elems = self.config_elem.getElementsByTagName( configuration.input_files_tag )
		if len(input_files_elems) > 0:
			self.input_files_elem = input_files_elems[0]
			for input_file_elem in self.input_files_elem.getElementsByTagName( configuration.input_file_tag ):
				self.input_files.append( input_file_elem.firstChild.data )

		build_target_elems = self.config_elem.getElementsByTagName( configuration.build_target_tag )
		if len(build_target_elems) > 0:
github wuye9036 / SalviaRenderer / sasl / enums / enums_generator.py View on Github external
self.src_folder = ""
		self.include_path =""
		self.pre_includes = []
		self.include_guard_prefix = ""
		self.include_guard_postfix = ""
		
		config_elems = self.dom_.getElementsByTagName( configuration.config_tag )
		if len(config_elems) <= 0:
			return
		self.config_elem = config_elems[0]

		config_name_elems = self.config_elem.getElementsByTagName( configuration.config_name_tag )
		if len( config_name_elems ) > 0:
			self.config_name = config_name_elem[0].firstChild.data

		input_files_elems = self.config_elem.getElementsByTagName( configuration.input_files_tag )
		if len(input_files_elems) > 0:
			self.input_files_elem = input_files_elems[0]
			for input_file_elem in self.input_files_elem.getElementsByTagName( configuration.input_file_tag ):
				self.input_files.append( input_file_elem.firstChild.data )

		build_target_elems = self.config_elem.getElementsByTagName( configuration.build_target_tag )
		if len(build_target_elems) > 0:
			self.build_target_elem = build_target_elems[0]
			self._load_build_targets( self.build_target_elem)
		
		support_code_elems = self.config_elem.getElementsByTagName( configuration.support_code_tag )
		if len(support_code_elems) > 0:
			self._load_support_code( support_code_elems[0] )
github wuye9036 / SalviaRenderer / sasl / enums / enums_generator.py View on Github external
self.include_path_elem = None

		self.input_files = []
		self.header_folder = ""
		self.src_folder = ""
		self.include_path =""
		self.pre_includes = []
		self.include_guard_prefix = ""
		self.include_guard_postfix = ""
		
		config_elems = self.dom_.getElementsByTagName( configuration.config_tag )
		if len(config_elems) <= 0:
			return
		self.config_elem = config_elems[0]

		config_name_elems = self.config_elem.getElementsByTagName( configuration.config_name_tag )
		if len( config_name_elems ) > 0:
			self.config_name = config_name_elem[0].firstChild.data

		input_files_elems = self.config_elem.getElementsByTagName( configuration.input_files_tag )
		if len(input_files_elems) > 0:
			self.input_files_elem = input_files_elems[0]
			for input_file_elem in self.input_files_elem.getElementsByTagName( configuration.input_file_tag ):
				self.input_files.append( input_file_elem.firstChild.data )

		build_target_elems = self.config_elem.getElementsByTagName( configuration.build_target_tag )
		if len(build_target_elems) > 0:
			self.build_target_elem = build_target_elems[0]
			self._load_build_targets( self.build_target_elem)
		
		support_code_elems = self.config_elem.getElementsByTagName( configuration.support_code_tag )
		if len(support_code_elems) > 0: