merge PBuildType and _build_type

This commit is contained in:
Weng Xuetian 2015-04-10 01:50:36 +00:00
parent 675e45e0ae
commit 83ab4838d7

View File

@ -26,12 +26,15 @@ _pkgprefix="kde"
# Install prefix
_installprefix="/usr"
# Build type; can be one of Debug,Release and RelWithDebInfo
PBuildType="RelWithDebInfo"
# Build type, one of the following:
# Release: Compile with no debugging information, optimization enabled
# Debug: Minimal optimization, with debugging information
# RelWithDebInfo: Normal optimization, with debugging information
# MinSizeRel: No debugging information, with optimization for smallest size
_build_type="RelWithDebInfo"
function cmake_kf5() {
cmake -DCMAKE_BUILD_TYPE=${PBuildType} \
cmake -DCMAKE_BUILD_TYPE=${_build_type} \
-DCMAKE_INSTALL_PREFIX=${_installprefix} \
-DLIB_INSTALL_DIR=lib \
-DSYSCONF_INSTALL_DIR=/etc \
@ -40,15 +43,6 @@ function cmake_kf5() {
-DKDE_INSTALL_USE_QT_SYS_PATHS=ON "$@"
}
# Build type, one of the following:
# Release: Compile with no debugging information, optimization enabled
# Debug: Minimal optimization, with debugging information
# RelWithDebInfo: Normal optimization, with debugging information
# MinSizeRel: No debugging information, with optimization for smallest size
_build_type="RelWithDebInfo"
# Working directory for this repository
_build_work="/chakra/desktop-testing/"