def ninja_create_env_variable(pwd_config_file): """ Return some ninja variable with the env variable expanded FC, FCFLAGS, IRPF90, IRPF90_FLAGS The env variable is usefull for the generation of EZFIO, and IRPF90 """ l_string = ["builddir = {0}".format(os.path.dirname(ROOT_BUILD_NINJA)), ""] for flag in ["FC", "FCFLAGS", "IRPF90", "IRPF90_FLAGS"]: str_ = "{0} = {1}".format( flag, get_compilation_option(pwd_config_file, flag)) l_string.append(str_) lib_lapack = get_compilation_option(pwd_config_file, "LAPACK_LIB") l_string.append("{0} = {1} {2}".format("LIB", lib_lapack, EZFIO_LIB)) l_string.append("") return l_string
def ninja_create_env_variable(pwd_config_file): """ Return some ninja variable with the env variable expanded FC, FCFLAGS, IRPF90, IRPF90_FLAGS The env variable is usefull for the generation of EZFIO, and IRPF90 """ l_string = ["builddir = {0}".format(os.path.dirname(ROOT_BUILD_NINJA)), ""] for flag in ["FC", "FCFLAGS", "IRPF90", "IRPF90_FLAGS"]: str_ = "{0} = {1}".format(flag, get_compilation_option(pwd_config_file, flag)) l_string.append(str_) lib_lapack = get_compilation_option(pwd_config_file, "LAPACK_LIB") l_string.append("LIB = {0} {1} {2} {3}".format(LIB, lib_lapack, EZFIO_LIB, ZMQ_LIB)) l_string.append("") return l_string