Skip to content

Commit

Permalink
Added pugixml (#707)
Browse files Browse the repository at this point in the history
  • Loading branch information
anutosh491 authored Nov 30, 2023
1 parent e44040e commit fda78d1
Show file tree
Hide file tree
Showing 2 changed files with 64 additions and 0 deletions.
17 changes: 17 additions & 0 deletions recipes/recipes_emscripten/pugixml/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#!/bin/bash
set -e
set -x

mkdir build
cd build

cmake .. \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=$PREFIX \
-DCMAKE_POSITION_INDEPENDENT_CODE:BOOL=TRUE \
-DCMAKE_INSTALL_LIBDIR=lib \
-DPUGIXML_BUILD_TESTS=OFF

make -j $CPU_COUNT

make install
47 changes: 47 additions & 0 deletions recipes/recipes_emscripten/pugixml/recipe.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
context:
version: "1.14"

package:
name: pugixml
version: '{{ version }}'

source:
url: https://github.com/zeux/pugixml/archive/v{{ version }}.tar.gz
sha256: 610f98375424b5614754a6f34a491adbddaaec074e9044577d965160ec103d2e

build:
number: 0

requirements:
build:
- "{{ compiler('cxx') }}"
- cmake
- make # [unix]

# test:
# commands:
# - test -f "${PREFIX}/lib/libpugixml.a" # [unix]
# - test -f "${PREFIX}/include/pugixml.hpp" # [unix]
# - if not exist %LIBRARY_LIB%\\pugixml.lib exit 1 # [win]
# - if not exist %LIBRARY_INC%\\pugiconfig.hpp exit 1 # [win]

about:
home: http://pugixml.org/
license: MIT
license_family: MIT
license_file: README.md
summary: 'Light-weight, simple and fast XML parser for C++ with XPath support'
description: |
pugixml is a C++ XML processing library, which consists of a DOM-like interface
with rich traversal/modification capabilities, an extremely fast XML parser which
constructs the DOM tree from an XML file/buffer, and an XPath 1.0 implementation
for complex data-driven tree queries. Full Unicode support is also available, with
Unicode interface variants and conversions between different Unicode encodings
(which happen automatically during parsing/saving)
doc_url: http://pugixml.org/
dev_url: https://github.com/zeux/pugixml

extra:
recipe-maintainers:
- DerThorsten
- anutosh491

0 comments on commit fda78d1

Please sign in to comment.