update google scripts to build debug versions

This commit is contained in:
Bassem Girgis
2019-08-14 22:44:49 -05:00
parent 588f38ffed
commit 0acb53d554
3 changed files with 55 additions and 2 deletions

View File

@@ -47,6 +47,13 @@ if [ "${machineArch}" = "Linux" ]; then
-DCMAKE_INSTALL_PREFIX:PATH=$libInstallPath \
$libSrcPath && \
make install -j)
( cd $libBuildPath && \
cmake \
-DCMAKE_BUILD_TYPE=Debug \
-DBUILD_SHARED_LIBS:BOOL=TRUE \
-DCMAKE_INSTALL_PREFIX:PATH=$libInstallPath \
$libSrcPath && \
make install -j)
elif [ "${machineArch}" = "MacOS" ]; then
( cd $libBuildPath && \
cmake \
@@ -55,6 +62,13 @@ elif [ "${machineArch}" = "MacOS" ]; then
-DCMAKE_INSTALL_PREFIX:PATH=$libInstallPath \
$libSrcPath && \
make install -j)
( cd $libBuildPath && \
cmake \
-DCMAKE_BUILD_TYPE=Debug \
-DBUILD_SHARED_LIBS:BOOL=TRUE \
-DCMAKE_INSTALL_PREFIX:PATH=$libInstallPath \
$libSrcPath && \
make install -j)
elif [ "${machineArch}" = "Windows" ]; then
( cd $libBuildPath && \
cmake \
@@ -67,6 +81,10 @@ elif [ "${machineArch}" = "Windows" ]; then
cmake \
--build . \
--config Release \
--target INSTALL && \
cmake \
--build . \
--config Debug \
--target INSTALL)
else
echo "unknown architecture"