From 359422c97cce93bbb27051f9df3efb45bd0b9052 Mon Sep 17 00:00:00 2001 From: Aldrik Ramaekers Date: Sat, 23 Aug 2025 11:18:44 +0200 Subject: settings file writing --- libs/xml.c/.mc/rebuild.sh | 21 +++++++++++++++++++++ libs/xml.c/.mc/ubuntu-22.04.yaml | 8 ++++++++ 2 files changed, 29 insertions(+) create mode 100644 libs/xml.c/.mc/rebuild.sh create mode 100644 libs/xml.c/.mc/ubuntu-22.04.yaml (limited to 'libs/xml.c/.mc') diff --git a/libs/xml.c/.mc/rebuild.sh b/libs/xml.c/.mc/rebuild.sh new file mode 100644 index 0000000..67443c3 --- /dev/null +++ b/libs/xml.c/.mc/rebuild.sh @@ -0,0 +1,21 @@ +#!/bin/bash + +set -e + + +# @see https://stackoverflow.com/a/1482133 +DIRECTORY_OF_SCRIPT=`dirname "$(readlink -f "$0")"` + +SOURCE_DIRECTORY="${DIRECTORY_OF_SCRIPT}/.." +BUILD_DIRECTORY="${DIRECTORY_OF_SCRIPT}/../build" + + +if [ -d "${BUILD_DIRECTORY}" ]; then + rm -rf "${BUILD_DIRECTORY}" +fi +mkdir "${BUILD_DIRECTORY}" + +(cd "${BUILD_DIRECTORY}" && cmake -DCMAKE_BUILD_TYPE=Release ..) +make --directory "${BUILD_DIRECTORY}" --silent +make --directory "${BUILD_DIRECTORY}" --silent test + diff --git a/libs/xml.c/.mc/ubuntu-22.04.yaml b/libs/xml.c/.mc/ubuntu-22.04.yaml new file mode 100644 index 0000000..762305c --- /dev/null +++ b/libs/xml.c/.mc/ubuntu-22.04.yaml @@ -0,0 +1,8 @@ +--- +base: ubuntu:22.04 +install: + - cmake + - g++ + - gcc + - valgrind +--- -- cgit v1.2.3-70-g09d2