From 6ee814d182d8d5fabf7ef4ef0c9272c4f9d1ab1c Mon Sep 17 00:00:00 2001 From: Andrii Riabchenko Date: Wed, 13 Mar 2024 13:14:04 +0200 Subject: [PATCH] new file: projects/leethomason.github.io/tinyxml2/package.yml --- .../tinyxml2/package.yml | 40 +++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 projects/leethomason.github.io/tinyxml2/package.yml diff --git a/projects/leethomason.github.io/tinyxml2/package.yml b/projects/leethomason.github.io/tinyxml2/package.yml new file mode 100644 index 00000000..d6333fb3 --- /dev/null +++ b/projects/leethomason.github.io/tinyxml2/package.yml @@ -0,0 +1,40 @@ +distributable: + url: https://github.com/leethomason/tinyxml2/archive/refs/tags/{{version.tag}}.tar.gz + strip-components: 1 + +versions: + github: leethomason/tinyxml2 + +build: + dependencies: + cmake.org: '*' + script: + - cmake -S . -B build $ARGS + - cmake --build build + - cmake --install build + env: + ARGS: + - -DCMAKE_INSTALL_PREFIX={{prefix}} + - -DCMAKE_INSTALL_LIBDIR=lib + - -DCMAKE_BUILD_TYPE=Release + - -DCMAKE_FIND_FRAMEWORK=LAST + - -DCMAKE_VERBOSE_MAKEFILE=ON + - -Wno-dev + - -DBUILD_TESTING=OFF + - -Dtinyxml2_SHARED_LIBS=ON + +test: + dependencies: + freedesktop.org/pkg-config: '*' + script: + - run: cc $FIXTURE -ltinyxml2 -o test + fixture: + content: | + #include + int main() { + tinyxml2::XMLDocument doc (false); + return 0; + } + extname: cpp + - ./test + - pkg-config --modversion tinyxml2 | grep {{version}}