aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Gabriel <mike.gabriel@das-netzwerkteam.de>2021-04-20 14:56:27 +0200
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2021-04-20 14:56:56 +0200
commitcdf839901e72bd13e1f0ddf8f4ebe299b6fe8892 (patch)
tree9cec6b8106ce0276ad2614dd88592e12497e320e
parentd622a631c0b282c21a4812f94c40768de7f3aa66 (diff)
downloadayatana-ido-cdf839901e72bd13e1f0ddf8f4ebe299b6fe8892.tar.gz
ayatana-ido-cdf839901e72bd13e1f0ddf8f4ebe299b6fe8892.tar.bz2
ayatana-ido-cdf839901e72bd13e1f0ddf8f4ebe299b6fe8892.zip
.build.yml: Add CMake support.
-rw-r--r--.build.yml14
1 files changed, 11 insertions, 3 deletions
diff --git a/.build.yml b/.build.yml
index deb9579..9925cf8 100644
--- a/.build.yml
+++ b/.build.yml
@@ -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