Skip to content

Commit

Permalink
Accelerate linux build
Browse files Browse the repository at this point in the history
Signed-off-by: Viktor Kopp <[email protected]>
  • Loading branch information
vifactor committed Sep 16, 2024
1 parent fd57f74 commit e47c609
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions scripts/linux/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,17 @@ BUILD_DIR="${SRC_DIR}/build"
INSTALL_DIR="${BUILD_DIR}/install"
APP_DIR_NAME="DLTViewer"

NPROC=$(nproc)
echo Nb of cpus: ${NPROC}

rm -rf "${APP_DIR_NAME}"
rm -rf "${SRC_DIR}/build"
mkdir -p "${BUILD_DIR}"
cd "${BUILD_DIR}"

echo Build with QMake
qmake ../BuildDltViewer.pro
make
make -j ${NPROC}

echo Cleanup
rm -rf "${INSTALL_DIR}"
Expand All @@ -37,7 +40,7 @@ cmake -G Ninja \
-DDLT_RESOURCE_INSTALLATION_PATH="${APP_DIR_NAME}/usr/share" \
-DDLT_PLUGIN_INSTALLATION_PATH="${APP_DIR_NAME}/usr/bin/plugins" \
"${SRC_DIR}"
cmake --build "${BUILD_DIR}" -v
cmake --build "${BUILD_DIR}" -j ${NPROC} -v

# External CPack generator calls "cmake --install" and "linuxdeploy"
#
Expand Down

0 comments on commit e47c609

Please sign in to comment.