# Little hack to put out_dir_Path outside the strings
src.replace_in_file(filepath, 'r"out_dir_Path', 'out_dir_Path + r"' )
-
+
# A hack to put a call to a file for distene licence.
# It does nothing to an application that has no distene product
if distene_licence_file_name:
for_package = binaries_dir_name)
# Little hack to put out_dir_Path as environment variable
- src.replace_in_file(filepath, '"out_dir_Path', '"${out_dir_Path}' )
+ if src.architecture.is_windows():
+ src.replace_in_file(filepath, '"out_dir_Path', '"%out_dir_Path%' )
+ else:
+ src.replace_in_file(filepath, '"out_dir_Path', '"${out_dir_Path}' )
# change the rights in order to make the file executable for everybody
os.chmod(filepath,
:param product_info Config: The product description
:param logger Logger: The logger instance to display messages
"""
+
+ if src.architecture.is_windows():
+ out_dir_Path = "%out_dir_Path%"
+ else:
+ out_dir_Path = "out_dir_Path"
+
# set root dir
DBG.write("set_salome_minimal_product_env", product_info)
root_dir = product_info.name + "_ROOT_DIR"
if not self.for_package:
self.set(src_dir, product_info.source_dir)
else:
- self.set(src_dir, os.path.join("out_dir_Path",
+ self.set(src_dir, os.path.join(out_dir_Path,
"SOURCES",
product_info.name))
:param logger Logger: The logger instance to display messages
"""
+ if src.architecture.is_windows():
+ out_dir_Path = "%out_dir_Path%"
+ else:
+ out_dir_Path = "out_dir_Path"
+
# Get the informations corresponding to the product
pi = src.product.get_product_config(self.cfg, product)
if self.for_package:
- pi.install_dir = os.path.join("out_dir_Path",
+ pi.install_dir = os.path.join(out_dir_Path,
self.for_package,
pi.name)