Exemplo n.º 1
0
def set_path(target):
  path = os.path.abspath(os.path.join(local_path, target))
  bt.show_variable(target + "_path", path)
  bt.mkdirs(path)
  return path
Exemplo n.º 2
0

# autoreconf if desired
os.chdir(base_path)
if args.autoreconf:
  _call_verbose('autoreconf')

# create build dirs
build_name = args.build
if args.tag:
  build_name += '-' + args.tag
build_path = os.path.join('_build', build_name)
if args.remove:
  if os.path.isdir(build_path):
    shutil.rmtree(build_path)
bt.mkdirs(build_path)
os.chdir(build_path)

# configure if desired
compiler = args.compiler
optimization = args.optimization
fcflags = args.fcflags
f77flags = args.f77flags
configureflags = args.configureflags

fortran_compiler = 'FC=' + compiler
fortran_flags = "FCFLAGS=-O" + optimization + " " + fcflags
f_flags = "FFLAGS=" + f77flags
#  ldflags = "LDFLAGS=" + ldflags
cxx_flags = "CXXFLAGS=-std=c++11"
if f77flags != " ":