#This is the configuration file for the BigDFT installer
#This is a python script which is executed by the build suite 
 
#List the module the this rcfile will build
moduleset = 'bigdft'
modules = ['bigdft',]
#example of the potentialities of the python syntax in this file
def env_configuration():
    return  """ "FCFLAGS=-O2 -fPIC -fopenmp -fbounds-check" "--enable-opencl" "CFLAGS=-fPIC -O2 -fopenmp" "FC=mpif90" "F77=mpif77" "--enable-dynamic-libraries"  """ 
#the following command sets the environment variable to give these settings
#to all the modules
import os
os.environ['BIGDFT_CONFIGURE_FLAGS']=env_configuration()
#here follow the configuration instructions for the modules built
#we specify the configurations for the modules to customize the options if needed
autogenargs = env_configuration()
module_autogenargs.update({
'bigdft': env_configuration()+" --with-gobject=yes ",
   
'spred': env_configuration()+" --with-gobject=yes ",

'PyYAML': "build_ext -I%(prefix)s/include -L%(prefix)s/lib --rpath=%(prefix)s/lib " % {"prefix": prefix},

'pygobject': 'PYTHON=/usr/bin/python',

'v_sim-dev': '--with-abinit --with-archives --with-openbabel --with-cube --without-strict-cflags'
   
})

module_cmakeargs.update({
    'ntpoly': "-DFORTRAN_ONLY=Yes -DCMAKE_Fortran_COMPILER=mpif90 -DCMAKE_Fortran_FLAGS_RELEASE='-O2 -g -Wall -fbounds-check -fallow-argument-mismatch' -DBUILD_SHARED_LIBS=Yes"
})
