summaryrefslogtreecommitdiff
path: root/eclass/cmake.eclass
diff options
context:
space:
mode:
authorAndreas Sturmlechner <asturm@gentoo.org>2019-11-17 12:01:12 +0100
committerAndreas Sturmlechner <asturm@gentoo.org>2019-12-21 11:40:22 +0100
commitfb49f2e0ff1a3ee41804a32d30246eae1ac7ab26 (patch)
tree3856909d6e701ea689a596b7ae85241314c88765 /eclass/cmake.eclass
parent4254dcbfdbd03a65488951dcafbff5b721aaf9c4 (diff)
downloadkde-fb49f2e0ff1a3ee41804a32d30246eae1ac7ab26.tar.gz
kde-fb49f2e0ff1a3ee41804a32d30246eae1ac7ab26.tar.bz2
kde-fb49f2e0ff1a3ee41804a32d30246eae1ac7ab26.zip
cmake.eclass: Rename cmake_src_make() -> cmake_build()
_cmake_ninja_src_make -> _cmake_ninja_build _cmake_emake_src_make -> _cmake_emake_build Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
Diffstat (limited to 'eclass/cmake.eclass')
-rw-r--r--eclass/cmake.eclass28
1 files changed, 18 insertions, 10 deletions
diff --git a/eclass/cmake.eclass b/eclass/cmake.eclass
index ca23bf452cf..ef6a5c3d7f1 100644
--- a/eclass/cmake.eclass
+++ b/eclass/cmake.eclass
@@ -544,14 +544,14 @@ cmake_src_configure() {
cmake_src_compile() {
debug-print-function ${FUNCNAME} "$@"
- cmake_src_make "$@"
+ cmake_build "$@"
}
-# @FUNCTION: _cmake_ninja_src_make
+# @FUNCTION: _cmake_ninja_build
# @INTERNAL
# @DESCRIPTION:
# Build the package using ninja generator
-_cmake_ninja_src_make() {
+_cmake_ninja_build() {
debug-print-function ${FUNCNAME} "$@"
[[ -e build.ninja ]] || die "build.ninja not found. Error during configure stage."
@@ -559,38 +559,46 @@ _cmake_ninja_src_make() {
eninja "$@"
}
-# @FUNCTION: _cmake_emake_src_make
+# @FUNCTION: _cmake_emake_build
# @INTERNAL
# @DESCRIPTION:
# Build the package using make generator
-_cmake_emake_src_make() {
+_cmake_emake_build() {
debug-print-function ${FUNCNAME} "$@"
[[ -e Makefile ]] || die "Makefile not found. Error during configure stage."
if [[ "${CMAKE_VERBOSE}" != "OFF" ]]; then
- emake VERBOSE=1 "$@" || die
+ emake VERBOSE=1 "$@"
else
- emake "$@" || die
+ emake "$@"
fi
}
-# @FUNCTION: cmake_src_make
+# @FUNCTION: cmake_build
# @DESCRIPTION:
# Function for building the package. Automatically detects the build type.
# All arguments are passed to emake.
-cmake_src_make() {
+cmake_build() {
debug-print-function ${FUNCNAME} "$@"
_cmake_check_build_dir
pushd "${BUILD_DIR}" > /dev/null || die
- _cmake_${CMAKE_MAKEFILE_GENERATOR}_src_make "$@"
+ _cmake_${CMAKE_MAKEFILE_GENERATOR}_build "$@"
popd > /dev/null || die
}
+# @FUNCTION: cmake-utils_src_make
+# @INTERNAL
+# @DESCRIPTION:
+# Banned. Use cmake_build instead.
+cmake-utils_src_make() {
+ die "cmake_src_make is banned. Use cmake_build instead"
+}
+
# @FUNCTION: cmake_src_test
# @DESCRIPTION:
# Function for testing the package. Automatically detects the build type.