Shared lib by default

This commit is contained in:
Gauthier Folzan 2020-04-02 13:08:18 +02:00
parent 4bfe34f2fc
commit bbd682d03d
8 changed files with 25 additions and 7 deletions

18
create_package.sh Executable file
View File

@ -0,0 +1,18 @@
#!/bin/bash
echo "Creation du package $1"
package_name=$1
class_name=`sed -e "s/-\(.\)/\U\1/g" -e "s/^\(.\)/\U\1/" <<< $package_name`
echo "nom du paquet : $package_name"
echo "nom de la classe : $class_name"
cp -r ../temp $package_name
cd $package_name
sed -i "s/@class name@/$class_name/g" package.py
sed -i "s/@package name@/$package_name/g" package.py
for vers in 2.7.0 2.6.0 2.5.2 2.5.1 2.5.0 2.4.2 2.4.1 2.4.0
do
echo 1 | spack checksum $package_name $vers | grep "version(" >> checksum
done
cat checksum
sed -i "/.*#@CHECKSUM@/r checksum" package.py
sed -i "/.*#@CHECKSUM@/d" package.py

View File

@ -57,7 +57,7 @@ class DuneAlugrid(CMakePackage):
variant('threads', default=True, description='Whether we are using pthreads')
variant('extrautils', default=True, description='Enable compilation and installation of extra utilities from the src subdirectory')
variant('selector', default=True, description='Grid selector definition added to config.h')
variant('shared', default=False, description='Enables the build of shared libraries.')
variant('shared', default=True, description='Enables the build of shared libraries.')
#dependencies
depends_on('dune-common')

View File

@ -53,7 +53,7 @@ class DuneCommon(CMakePackage):
variant('vc', default=True, description='Build C++ Vectorization library support')
variant('imagemagick', default=False, description='Imagemagick support')
variant('threads', default=True, description='Activate pThread support')
variant('shared', default=False, description='Enables the build of shared libraries.')
variant('shared', default=True, description='Enables the build of shared libraries.')
variant('python', default=True, description='Build with Python')
variant('extrautils', default=True, description='Enable compilation and installation of extra utilities from the src subdirectory')
variant('selector', default=True, description='Grid selector definition added to config.h')

View File

@ -56,7 +56,7 @@ class DuneGeometry(CMakePackage):
variant('vc', default=True, description='Build C++ Vectorization library support')
variant('imagemagick', default=False, description='Imagemagick support')
variant('threads', default=True, description='Activate pThread support')
variant('shared', default=False, description='Enables the build of shared libraries.')
variant('shared', default=True, description='Enables the build of shared libraries.')
variant('extrautils', default=True, description='Enable compilation and installation of extra utilities from the src subdirectory')
variant('selector', default=True, description='Grid selector definition added to config.h')

View File

@ -62,7 +62,7 @@ class DuneGrid(CMakePackage):
variant('extrautils', default=True, description='Enable compilation and installation of extra utilities from the src subdirectory')
variant('selector', default=True, description='Grid selector definition added to config.h')
variant('threads', default=True, description='Activate pThread support')
variant('shared', default=False, description='Enables the build of shared libraries.')
variant('shared', default=True, description='Enables the build of shared libraries.')
#dependencies
depends_on('dune-common')

View File

@ -65,7 +65,7 @@ class DuneIstl(CMakePackage):
variant('imagemagick', default=False, description='Imagemagick support')
variant('oldcategory', default=True, description='Enable/Disable the backwards compatibility of the category enum/method in dune-istl solvers, preconditioner, etc.')
variant('threads', default=True, description='Activate pThread support')
variant('shared', default=False, description='Enables the build of shared libraries.')
variant('shared', default=True, description='Enables the build of shared libraries.')
variant('extrautils', default=True, description='Enable compilation and installation of extra utilities from the src subdirectory')
variant('selector', default=True, description='Grid selector definition added to config.h')

View File

@ -57,7 +57,7 @@ class DuneLocalfunctions(CMakePackage):
variant('vc', default=True, description='Build C++ Vectorization library support')
variant('imagemagick', default=False, description='Imagemagick support')
variant('threads', default=True, description='Activate pThread support')
variant('shared', default=False, description='Enables the build of shared libraries.')
variant('shared', default=True, description='Enables the build of shared libraries.')
variant('python', default=True, description='Build with Python')
variant('extrautils', default=True, description='Enable compilation and installation of extra utilities from the src subdirectory')
variant('selector', default=True, description='Grid selector definition added to config.h')

View File

@ -54,7 +54,7 @@ class DuneUggrid(CMakePackage):
variant('2d', default=True, description='Build library for 2d')
variant('3d', default=True, description='Build library for 3d')
variant('threads', default=True, description='Activate pThread support')
variant('shared', default=False, description='Enables the build of shared libraries.')
variant('shared', default=True, description='Enables the build of shared libraries.')
variant('python', default=True, description='Build with Python')
variant('extrautils', default=True, description='Enable compilation and installation of extra utilities from the src subdirectory')
variant('selector', default=True, description='Grid selector definition added to config.h')