/
meta.yaml
107 lines (97 loc) · 3.72 KB
/
meta.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
{% set version = "3.9.1" %}
{% set sha256 = "a4b6e7cd83176e0ccb107ce38521da40a8df41c2d3c90566f2a0af05b0cd05c4" %}
# For dispatching between Unix and Windows
{% set install_prefix = "." %} # [unix]
{% set install_prefix = "Library" %} # [win]
{% set shlib_ext = "so" %} # [linux]
{% set shlib_ext = "dylib" %} # [unix and not linux]
{% set shlib_ext = "dll" %} # [win]
package:
name: simdjson-split
version: {{ version }}
source:
url: https://github.com/simdjson/simdjson/archive/v{{ version }}.tar.gz
sha256: "{{ sha256 }}"
build:
number: 0
requirements:
build:
- {{ compiler('cxx') }}
- cmake
- ninja
outputs:
- name: simdjson
files:
- "{{ install_prefix }}/include/simdjson*"
- "{{ install_prefix }}/lib/libsimdjson*.{{ shlib_ext }}*" # [unix]
- "{{ install_prefix }}/bin/simdjson.dll" # [win]
- "{{ install_prefix }}/lib/simdjson.lib" # [win]
- "{{ install_prefix }}/lib/pkgconfig/simdjson*"
- "{{ install_prefix }}/lib/cmake/simdjson/simdjsonTargets*"
- "{{ install_prefix }}/lib/cmake/simdjson/simdjson-config*"
build:
run_exports:
- {{ pin_subpackage('simdjson', max_pin='x.x') }}
requirements:
build:
- {{ compiler('cxx') }}
- cmake
- ninja
test:
requires:
- {{ compiler('cxx') }}
- cmake
- ninja
files:
- test/*
commands:
- test -f "${PREFIX}/include/simdjson.h" # [unix]
- test -f "${PREFIX}/lib/libsimdjson${SHLIB_EXT}" # [unix]
- test -f "${PREFIX}/lib/cmake/simdjson/simdjson-config.cmake" # [unix]
- if not exist %LIBRARY_INC%\simdjson.h (exit 1) # [win]
- if not exist %LIBRARY_BIN%\simdjson.dll (exit 1) # [win]
- if not exist %LIBRARY_LIB%\simdjson.lib (exit 1) # [win]
- if not exist %LIBRARY_LIB%\cmake\simdjson\simdjson-config.cmake (exit 1) # [win]
# Running a test trying to link to the library
- cmake -G Ninja -S test/ -B build/ -D TEST_TARGET=simdjson ${CMAKE_ARGS} # [unix]
- cmake -G Ninja -S test/ -B build/ -D TEST_TARGET=simdjson %CMAKE_ARGS% # [win]
- cmake --build build/
- cmake --build build --target test
- name: simdjson-static
files:
- "{{ install_prefix }}/lib/libsimdjson_static.a" # [unix]
- "{{ install_prefix }}/lib/simdjson_static.lib" # [win]
- "{{ install_prefix }}/lib/cmake/simdjson/simdjson_staticTargets*"
requirements:
run:
- {{ pin_subpackage('simdjson', exact='True') }}
test:
requires:
- {{ compiler('cxx') }}
- cmake
- ninja
files:
- test/*
commands:
# Running a test trying to link to the library
- cmake -G Ninja -S test/ -B build/ -D TEST_TARGET=simdjson_static ${CMAKE_ARGS} # [unix]
- cmake -G Ninja -S test/ -B build/ -D TEST_TARGET=simdjson_static %CMAKE_ARGS% # [win]
- cmake --build build/
- cmake --build build --target test
about:
home: https://simdjson.org/
license: Apache-2.0
license_file: LICENSE
summary: Parsing gigabytes of JSON per second
description: |
JSON is everywhere on the Internet.
Servers spend a *lot* of time parsing it. We need a fresh approach.
The simdjson library uses commonly available SIMD instructions and
microparallel algorithms to parse JSON 2.5x faster than anything else out there.
doc_url: https://simdjson.github.io/simdjson/
dev_url: https://github.com/simdjson/simdjson/
extra:
recipe-maintainers:
- JohanMabille
- AntoinePrv
- elbaro