diff options
author | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2021-04-20 14:56:27 +0200 |
---|---|---|
committer | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2021-04-20 14:56:56 +0200 |
commit | cdf839901e72bd13e1f0ddf8f4ebe299b6fe8892 (patch) | |
tree | 9cec6b8106ce0276ad2614dd88592e12497e320e /.build.yml | |
parent | d622a631c0b282c21a4812f94c40768de7f3aa66 (diff) | |
download | ayatana-ido-cdf839901e72bd13e1f0ddf8f4ebe299b6fe8892.tar.gz ayatana-ido-cdf839901e72bd13e1f0ddf8f4ebe299b6fe8892.tar.bz2 ayatana-ido-cdf839901e72bd13e1f0ddf8f4ebe299b6fe8892.zip |
.build.yml: Add CMake support.
Diffstat (limited to '.build.yml')
-rw-r--r-- | .build.yml | 14 |
1 files changed, 11 insertions, 3 deletions
@@ -75,9 +75,17 @@ build_scripts: - export CFLAGS+=" -Wsign-compare -Wunused-parameter" - cppcheck --enable=warning,style,performance,portability,information,missingInclude . - fi - - - NOCONFIGURE=1 ./autogen.sh - - scan-build $CHECKERS ./configure --prefix=/usr --enable-gtk-doc --enable-compile-warnings=maximum + - + - if [ -e ./autogen.sh ]; then + - NOCONFIGURE=1 ./autogen.sh + - scan-build $CHECKERS ./configure --prefix=/usr --enable-gtk-doc --enable-compile-warnings=maximum + - elif [ -e ./CMakeLists.txt ]; then + - scan-build $CHECKERS --keep-cc --use-cc=clang --use-c++=clang++ -o html-report cmake . -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_VERBOSE_MAKEFILE=ON + - else + - echo "ERROR: Build system not supported (supported are: autogen.sh, CMake)" + - exit 1 + - fi + - - if [ $CPU_COUNT -gt 1 ]; then - if [ ${DISTRO_NAME} == "debian" ];then - scan-build $CHECKERS --keep-cc --use-cc=clang --use-c++=clang++ -o html-report make -j $CPU_COUNT |