mirror of
https://github.com/LCPQ/quantum_package
synced 2024-06-30 00:44:28 +02:00
Add builddir for more amazingness
This commit is contained in:
parent
f49fea0620
commit
b8152bb47a
|
@ -86,7 +86,9 @@ def ninja_create_env_variable(pwd_config_file):
|
||||||
FC, FCFLAGS, IRPF90, IRPF90_FLAGS
|
FC, FCFLAGS, IRPF90, IRPF90_FLAGS
|
||||||
The env variable is usefull for the generation of EZFIO, and IRPF90
|
The env variable is usefull for the generation of EZFIO, and IRPF90
|
||||||
"""
|
"""
|
||||||
l_string = []
|
l_string = ["builddir = {0}".format(os.path.dirname(ROOT_BUILD_NINJA)),
|
||||||
|
""]
|
||||||
|
|
||||||
for flag in ["FC", "FCFLAGS", "IRPF90", "IRPF90_FLAGS"]:
|
for flag in ["FC", "FCFLAGS", "IRPF90", "IRPF90_FLAGS"]:
|
||||||
str_ = "{0} = {1}".format(flag, get_compilation_option(pwd_config_file,
|
str_ = "{0} = {1}".format(flag, get_compilation_option(pwd_config_file,
|
||||||
flag))
|
flag))
|
||||||
|
@ -722,8 +724,10 @@ def ninja_dot_tree_build(path_module, l_module):
|
||||||
# | | (_) (_| |_| | (/_
|
# | | (_) (_| |_| | (/_
|
||||||
#
|
#
|
||||||
def create_build_ninja_module(path_module):
|
def create_build_ninja_module(path_module):
|
||||||
|
l_string = ["builddir = {0}".format(os.path.dirname(ROOT_BUILD_NINJA)),
|
||||||
|
""]
|
||||||
|
|
||||||
l_string = ["rule update_build_ninja_root",
|
l_string += ["rule update_build_ninja_root",
|
||||||
" command = {0} update".format(__file__),
|
" command = {0} update".format(__file__),
|
||||||
""]
|
""]
|
||||||
|
|
||||||
|
@ -755,6 +759,8 @@ def create_build_ninja_module(path_module):
|
||||||
|
|
||||||
|
|
||||||
def create_build_ninja_global():
|
def create_build_ninja_global():
|
||||||
|
l_string = ["builddir = {0}".format(os.path.dirname(ROOT_BUILD_NINJA)),
|
||||||
|
""]
|
||||||
|
|
||||||
l_string = ["rule update_build_ninja_root",
|
l_string = ["rule update_build_ninja_root",
|
||||||
" command = {0} update".format(__file__),
|
" command = {0} update".format(__file__),
|
||||||
|
@ -942,6 +948,6 @@ if __name__ == "__main__":
|
||||||
# S a v e s #
|
# S a v e s #
|
||||||
# ~#~#~#~#~ #
|
# ~#~#~#~#~ #
|
||||||
|
|
||||||
with open(join(QP_ROOT, "config", "build.ninja"), "w+") as f:
|
with open(ROOT_BUILD_NINJA, "w+") as f:
|
||||||
f.write(header)
|
f.write(header)
|
||||||
f.write("\n".join(l_string))
|
f.write("\n".join(l_string))
|
||||||
|
|
Loading…
Reference in New Issue
Block a user