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}}