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

@@ -44,7 +44,14 @@ if [ "${machineArch}" = "Linux" ]; then
cmake \ cmake \
-DCMAKE_BUILD_TYPE=Release \ -DCMAKE_BUILD_TYPE=Release \
-DBENCHMARK_DOWNLOAD_DEPENDENCIES=ON \ -DBENCHMARK_DOWNLOAD_DEPENDENCIES=ON \
-DCMAKE_INSTALL_PREFIX:PATH=$libInstallPath \ -DCMAKE_INSTALL_PREFIX:PATH=$libInstallPath/release \
$libSrcPath && \
make install -j)
( cd $libBuildPath && \
cmake \
-DCMAKE_BUILD_TYPE=Debug \
-DBENCHMARK_DOWNLOAD_DEPENDENCIES=ON \
-DCMAKE_INSTALL_PREFIX:PATH=$libInstallPath/debug \
$libSrcPath && \ $libSrcPath && \
make install -j) make install -j)
elif [ "${machineArch}" = "MacOS" ]; then elif [ "${machineArch}" = "MacOS" ]; then
@@ -52,7 +59,17 @@ elif [ "${machineArch}" = "MacOS" ]; then
cmake \ cmake \
-DCMAKE_BUILD_TYPE=Release \ -DCMAKE_BUILD_TYPE=Release \
-DBENCHMARK_DOWNLOAD_DEPENDENCIES=ON \ -DBENCHMARK_DOWNLOAD_DEPENDENCIES=ON \
-DCMAKE_INSTALL_PREFIX:PATH=$libInstallPath \ -DCMAKE_INSTALL_PREFIX:PATH=$libInstallPath/release \
-DLLVMAR_EXECUTABLE:PATH=/usr/bin/ar \
-DLLVMNM_EXECUTABLE:PATH=/usr/bin/nm \
-DLLVMRANLIB_EXECUTABLE:PATH=/usr/bin/ranlib \
$libSrcPath && \
make install -j)
( cd $libBuildPath && \
cmake \
-DCMAKE_BUILD_TYPE=Debug \
-DBENCHMARK_DOWNLOAD_DEPENDENCIES=ON \
-DCMAKE_INSTALL_PREFIX:PATH=$libInstallPath/debug \
-DLLVMAR_EXECUTABLE:PATH=/usr/bin/ar \ -DLLVMAR_EXECUTABLE:PATH=/usr/bin/ar \
-DLLVMNM_EXECUTABLE:PATH=/usr/bin/nm \ -DLLVMNM_EXECUTABLE:PATH=/usr/bin/nm \
-DLLVMRANLIB_EXECUTABLE:PATH=/usr/bin/ranlib \ -DLLVMRANLIB_EXECUTABLE:PATH=/usr/bin/ranlib \
@@ -70,6 +87,10 @@ elif [ "${machineArch}" = "Windows" ]; then
cmake \ cmake \
--build . \ --build . \
--config Release \ --config Release \
--target INSTALL && \
cmake \
--build . \
--config Debug \
--target INSTALL) --target INSTALL)
else else
echo "unknown architecture" echo "unknown architecture"

View File

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

View File

@@ -47,6 +47,13 @@ if [ "${machineArch}" = "Linux" ]; then
-DCMAKE_INSTALL_PREFIX:PATH=$libInstallPath \ -DCMAKE_INSTALL_PREFIX:PATH=$libInstallPath \
$libSrcPath && \ $libSrcPath && \
make install -j) 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 elif [ "${machineArch}" = "MacOS" ]; then
( cd $libBuildPath && \ ( cd $libBuildPath && \
cmake \ cmake \
@@ -55,6 +62,13 @@ elif [ "${machineArch}" = "MacOS" ]; then
-DCMAKE_INSTALL_PREFIX:PATH=$libInstallPath \ -DCMAKE_INSTALL_PREFIX:PATH=$libInstallPath \
$libSrcPath && \ $libSrcPath && \
make install -j) 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 elif [ "${machineArch}" = "Windows" ]; then
( cd $libBuildPath && \ ( cd $libBuildPath && \
cmake \ cmake \