summaryrefslogtreecommitdiff
path: root/eclass/cmake.eclass
AgeCommit message (Collapse)Author
2021-02-21cmake.eclass: Move _cmake_check_build_dir to a better placeAndreas Sturmlechner
Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
2021-02-21cmake.eclass: Merge mycmakeargs description into cmake_src_configure()Andreas Sturmlechner
Makes it a part of cmake_src_configure() rather than oddly appearing under FUNCTIONS. Bug: https://bugs.gentoo.org/771876 Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
2021-02-21cmake.eclass: Group all banned cmake-utils_* functions togetherAndreas Sturmlechner
Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
2021-02-21cmake.eclass: Documentation: cmake_src_prepare() *MUST* be runAndreas Sturmlechner
Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
2021-02-21cmake.eclass: Better description of cmake_build() and cmake_src_compile()Andreas Sturmlechner
Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
2021-02-21cmake.eclass: Document _cmake_check_build_dir and _cmake_modify-cmakelistsAndreas Sturmlechner
Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
2021-02-21cmake.eclass: Fix mycmakeargs documentationAndreas Sturmlechner
Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
2021-01-01*/*: Happy new Year!Andreas Sturmlechner
Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
2020-09-04cmake.eclass: Reformat the cmake code we write to lowercase callsAndreas Sturmlechner
Add some indendation, drop space between function name and brackets, cleanup old style if-else-endif. Bug: https://bugs.gentoo.org/739230 Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
2020-08-30cmake.eclass: If inherited from ecm.eclass, set ECM_DISABLE_QMLPLUGINDUMPAndreas Sturmlechner
Works with downstream patch added to kde-frameworks/extra-cmake-modules in commit f5b2cf80ea9696a5efbc2064cd432670670af486 Bug: https://bugs.gentoo.org/640432 Bug: https://bugs.gentoo.org/683102 Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
2020-08-30cmake.eclass: cmake_comment_add_subdirectory: line length reductionAndreas Sturmlechner
Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
2020-08-30cmake.eclass: cmake_run_in: New functionAndreas Sturmlechner
Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
2020-07-25cmake*.eclass: Hardcode CMAKE_FIND_LIBRARY_CUSTOM_LIB_SUFFIX for riscvAndreas K. Hüttel
Bug: https://bugs.gentoo.org/689410 Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>
2020-04-02cmake.eclass: do not append -DNDEBUG to CPPFLAGSMike Gilbert
The NDEBUG macro turns the assert() function into a noop. This gives a small performance boost, but may allow subtle programming errors to go unnoticed. This code was added back in 2008, when we started passing -DCMAKE_BUILD_TYPE=None instead of Release or Debug. It probably tries to mimic a default behavior of Release type builds. Other common build systems do not do this by default. For example, autoconf's AC_HEADER_ASSERT macro only sets NDEBUG if --disable-assert is passed to configure (it defaults to enabled). It is better to let users add this to CPPFLAGS themselves if they really want to save those few CPU cycles. Signed-off-by: Mike Gilbert <floppym@gentoo.org> Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
2020-01-05cmake.eclass: Fix cmake-utils_src_make error messageAndreas Sturmlechner
Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
2020-01-05cmake.eclass: Fix CMAKE_VERBOSE logicAndreas Sturmlechner
Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
2020-01-05cmake.eclass: Add comment regarding cmake_src_prepare pushd/popdAndreas Sturmlechner
We'll have to test affected packages when changing this. Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
2020-01-05cmake.eclass: Fix build with CMAKE_VERBOSE=OFFAndreas Sturmlechner
Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
2020-01-05cmake.eclass: Fix fatal typoAndreas Sturmlechner
Thanks-to: Tomas Mozes <hydrapolic@gmail.com> Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
2020-01-04cmake.eclass: src_prepare: Revert to cmake-utils.eclass behaviourAndreas Sturmlechner
Re-adding pushd/popd until we figure out how to make it consistent across the eclass. Bug: https://bugs.gentoo.org/704524 Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
2020-01-02cmake.eclass: CMAKE_MIN_VERSION porting instructionsAndreas Sturmlechner
Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
2020-01-02cmake.eclass: Ban CMAKE_MIN_VERSION for realAndreas Sturmlechner
Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
2020-01-01*/*: Happy new year!Andreas Sturmlechner
Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
2019-12-24cmake.eclass: src_configure: Make sure mycmakeargs is initialised at allAndreas Sturmlechner
Closes: https://bugs.gentoo.org/703638 Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
2019-12-21cmake.eclass: Drop _cmake_ninja_build() and _cmake_emake_build()Andreas Sturmlechner
Do it all in cmake_build() Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
2019-12-21cmake.eclass: Rename cmake_src_make() -> cmake_build()Andreas Sturmlechner
_cmake_ninja_src_make -> _cmake_ninja_build _cmake_emake_src_make -> _cmake_emake_build Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
2019-12-21cmake.eclass: Drop _cmake_generator_to_use()Andreas Sturmlechner
CMAKE_MAKEFILE_GENERATOR validity is already checked in global scope. Move the check for dev-util/ninja into src_prepare. Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
2019-12-21cmake.eclass: Drop pushd/popd from src_prepareAndreas Sturmlechner
Added in c3d7073e1cd222d07060a0edc07079d7aa6598e6 but probably irrelevant now. See also: https://bugs.gentoo.org/459678 Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
2019-12-21cmake.eclass: Array support for CMAKE_REMOVE_MODULES_LISTAndreas Sturmlechner
Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
2019-12-21cmake.eclass: Drop CMAKE_REMOVE_MODULESAndreas Sturmlechner
Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
2019-12-21cmake.eclass: Drop CMAKE_MIN_VERSIONAndreas Sturmlechner
Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
2019-12-21cmake.eclass: Rename all functions/vars from cmake-utils* to cmake*Andreas Sturmlechner
Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
2019-12-21cmake.eclass: Drop all pre-EAPI-7 compatibilityAndreas Sturmlechner
Keep old variables and functions but die if any are used. Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
2019-12-21cmake.eclass: Initial copy from cmake-utils.eclassAndreas Sturmlechner
Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>