# Instantiate the class that manages all the construction commands
# like cmake, check, make install, make test, environment management, etc...
- builder = src.compilation.Builder(config, logger, p_info)
+ builder = src.compilation.Builder(config, logger, p_name, p_info)
# Prepare the environment
log_step(logger, header, "PREPARE ENV")
src.environment.Environ(dict(os.environ)),
True)
environ_info = src.product.get_product_dependencies(config,
+ p_name,
p_info)
build_environ.silent = (config.USER.output_verbose_level < 5)
build_environ.set_full_environ(logger, environ_info)
# Instantiate the class that manages all the construction commands
# like cmake, make, make install, make test, environment management, etc...
- builder = src.compilation.Builder(config, logger, p_info)
+ builder = src.compilation.Builder(config, logger, p_name, p_info)
# Prepare the environment
log_step(logger, header, "PREPARE ENV")
'valid_result': nb_products - res,
'nb_products': nb_products }, 1)
- return res
\ No newline at end of file
+ return res
config.PRODUCTS.addMapping(compo, src.pyconf.Mapping(config), "")
config.PRODUCTS[compo].default = compo_info
- builder = src.compilation.Builder(config, logger, compo_info, check_src=False)
+ builder = src.compilation.Builder(config, logger, compo, compo_info, check_src=False)
builder.header = header
# generate the component
# Instantiate the class that manages all the construction commands
# like cmake, make, make install, make test, environment management, etc...
- builder = src.compilation.Builder(config, logger, p_info)
+ builder = src.compilation.Builder(config, logger, p_name, p_info)
# Prepare the environment
log_step(logger, header, "PREPARE ENV")
'valid_result': nb_products - res,
'nb_products': nb_products }, 1)
- return res
\ No newline at end of file
+ return res
# Instantiate the class that manages all the construction commands
# like cmake, make, make install, make test, environment management, etc...
- builder = src.compilation.Builder(config, logger, p_info)
+ builder = src.compilation.Builder(config, logger, p_name, p_info)
# Prepare the environment
log_step(logger, header, "PREPARE ENV")
'valid_result': nb_products - res,
'nb_products': nb_products }, 1)
- return res
\ No newline at end of file
+ return res
# Instantiate the class that manages all the construction commands
# like cmake, make, make install, make test, environment management, etc...
- builder = src.compilation.Builder(config, logger, p_info)
+ builder = src.compilation.Builder(config, logger, p_name, p_info)
# Prepare the environment
log_step(logger, header, "PREPARE ENV")
def __init__(self,
config,
logger,
+ product_name,
product_info,
options = src.options.OptResult(),
check_src=True):
self.config = config
self.logger = logger
self.options = options
+ self.product_name = product_name
self.product_info = product_info
self.build_dir = src.Path(self.product_info.build_dir)
self.source_dir = src.Path(self.product_info.source_dir)
# add products in depend and opt_depend list recursively
environ_info = src.product.get_product_dependencies(self.config,
+ self.product_name,
self.product_info)
#environ_info.append(self.product_info.name)
return res
-def get_product_dependencies(config, product_info):
+def get_product_dependencies(config, product_name, product_info):
"""\
Get the list of products that are
in the product_info dependencies
config)
all_products_graph=get_dependencies_graph(all_products_infos)
res=[]
- res=depth_search_graph(all_products_graph, product_info.name, res)
+ res=depth_search_graph(all_products_graph, product_name, res)
return res[1:] # remove the product himself (in first position)
def check_installation(config, product_info):