X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2Fenvironment.py;h=62943389339565b15113bf4f9259be26f1db232f;hb=b290bea918ae017dde95805abe898e5e6bd08f69;hp=c8585e2d54436cade95811c2f8c1a8e9fa2045ae;hpb=ef425b895da95403a2e52409d409c890e0876d08;p=tools%2Fsat.git diff --git a/src/environment.py b/src/environment.py index c8585e2..6294338 100644 --- a/src/environment.py +++ b/src/environment.py @@ -246,6 +246,15 @@ class SalomeEnviron: sorted_nodes) self.sorted_product_list=sorted_nodes + # store the list of compile time products + # they should be added in build env + compile_time_products=[] + for (pname,pinfo) in all_products_infos: + if src.product.product_is_compile_time(pinfo) or\ + src.product.product_is_compile_and_runtime(pinfo) : + compile_time_products.append(pname) + self.compile_time_products=compile_time_products + def append(self, key, value, sep=os.pathsep): """\ @@ -754,10 +763,19 @@ class SalomeEnviron: self.set_a_product("Python", logger) self.set_python_libdirs() + # for a build environment, add compile time products (like cmake) + if self.forBuild : + for product in self.compile_time_products: + if product == "Python": + continue + self.set_a_product(product, logger) + # The loop on the products for product in self.sorted_product_list: if product == "Python": continue + if self.forBuild and product in self.compile_time_products: + continue self.set_a_product(product, logger) def set_full_environ(self, logger, env_info): @@ -784,10 +802,19 @@ class SalomeEnviron: self.set_a_product("Python", logger) self.set_python_libdirs() + # for a build environment, add compile time products (like cmake) + if self.forBuild : + for product in self.compile_time_products: + if product == "Python": + continue + self.set_a_product(product, logger) + # set products for product in sorted_product_list: if product == "Python": continue + if self.forBuild and product in self.compile_time_products: + continue self.set_a_product(product, logger) class FileEnvWriter: