verion which did not include the handling in RTService wth creating the
Json file
This commit is contained in:
52
vrpmdvaotserver/utility/install-oatpp-modules.sh
Executable file
52
vrpmdvaotserver/utility/install-oatpp-modules.sh
Executable file
@@ -0,0 +1,52 @@
|
||||
#!/bin/sh
|
||||
|
||||
BUILD_TYPE=$1
|
||||
|
||||
if [ -z "$BUILD_TYPE" ]; then
|
||||
BUILD_TYPE="Debug"
|
||||
fi
|
||||
|
||||
rm -rf tmp
|
||||
|
||||
mkdir tmp
|
||||
cd tmp
|
||||
|
||||
##########################################################
|
||||
## install oatpp module
|
||||
|
||||
function install_module () {
|
||||
|
||||
BUILD_TYPE=$1
|
||||
MODULE_NAME=$2
|
||||
NPROC=$(nproc)
|
||||
|
||||
if [ -z "$NPROC" ]; then
|
||||
NPROC=1
|
||||
fi
|
||||
|
||||
echo "\n\nINSTALLING MODULE '$MODULE_NAME' ($BUILD_TYPE) using $NPROC threads ...\n\n"
|
||||
|
||||
git clone --depth=1 https://github.com/oatpp/$MODULE_NAME
|
||||
|
||||
cd $MODULE_NAME
|
||||
mkdir build
|
||||
cd build
|
||||
|
||||
############################################################################
|
||||
## Flag '-DOATPP_SQLITE_AMALGAMATION=ON' used by oatpp-sqlite module only ##
|
||||
############################################################################
|
||||
cmake -DCMAKE_BUILD_TYPE=$BUILD_TYPE -DOATPP_BUILD_TESTS=OFF -DOATPP_SQLITE_AMALGAMATION=ON ..
|
||||
make install -j $NPROC
|
||||
|
||||
cd ../../
|
||||
|
||||
}
|
||||
|
||||
##########################################################
|
||||
|
||||
install_module $BUILD_TYPE oatpp
|
||||
install_module $BUILD_TYPE oatpp-swagger
|
||||
install_module $BUILD_TYPE oatpp-sqlite
|
||||
|
||||
cd ../
|
||||
rm -rf tmp
|
||||
Reference in New Issue
Block a user