Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
103b546839cff8b198d69dbe7fb4c8021dc50a17
[simgrid.git] / tools / jenkins / gfortran-simgrid.rc
1 #This is the configuration file for the BigDFT installer
2 #This is a python script which is executed by the build suite
3 def getcwd():
4   import os
5   return os.getcwd()
6 #Add the condition testing to run tests and includes PyYaml
7 conditions.add("testing")
8 conditions.add("simulation") #to include simgrid compilation
9 #conditions.add("python")
10 #List the module the this rcfile will build
11 modules = ['spred',]
12 #example of the potentialities of the python syntax in this file
13 def env_configuration():
14     return  """ "FCFLAGS=-O2 -fPIC -fopenmp" "CFLAGS=-fPIC -O2 -fopenmp" "FC=mpif90" "F77=mpif77" "FCLIBS= " "LIBS=-ldl -lstdc++ -lgfortran"  """
15 #the following command sets the environment variable to give these settings
16 #to all the modules
17 import os
18 os.environ['BIGDFT_CONFIGURE_FLAGS']=env_configuration()
19 #here follow the configuration instructions for the modules built
20 #we specify the configurations for the modules to customize the options if needed
21 autogenargs=env_configuration()
22 module_autogenargs.update({
23 'futile': env_configuration()+
24     " --enable-simgrid-shared --with-mpi-libs='-lsimgrid' --with-mpi-include=-I"+getcwd()+"/install/include/smpi FC="+getcwd()+"/install/bin/smpif90 CC=gcc SIMGRID_FC="+getcwd()+"/install/bin/smpif90",
25 'bigdft': env_configuration()+
26     " --enable-simgrid-shared --with-mpi-libs='-lsimgrid' --with-mpi-include=-I"+getcwd()+"/install/include/smpi FC="+getcwd()+"/install/bin/smpif90 CC=gcc SIMGRID_FC="+getcwd()+"/install/bin/smpif90",
27 'spred': env_configuration()+" --with-gobject=yes ",
28 'PyYAML': "build_ext -I%(prefix)s/include -L%(prefix)s/lib --rpath=%(prefix)s/lib " % {"prefix": prefix},
29 'pygobject': 'PYTHON=/usr/bin/python',
30 'v_sim-dev': '--with-abinit --with-archives --with-openbabel --with-cube --without-strict-cflags'
31 })