-
Notifications
You must be signed in to change notification settings - Fork 50
/
Copy pathmeson.build
53 lines (45 loc) · 1.17 KB
/
meson.build
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
# Copyright (c) 2025, Postgres Professional
# Does not support the PGXS infrastructure at this time. Please, compile as part
# of the contrib source tree.
jsquery_sources = files(
'jsonb_gin_ops.c',
'jsquery_constr.c',
'jsquery_extract.c',
'jsquery_io.c',
'jsquery_op.c',
'jsquery_support.c',
)
jsquery_gram = custom_target('jsquerygram',
input: 'jsquery_gram.y',
kwargs: bison_kw,
)
generated_sources += jsquery_gram.to_list()
jsquery_sources += jsquery_gram
run_command(flex, '--outfile=jsquery_scan.c', 'jsquery_scan.l', check: true)
if host_system == 'windows'
jsquery_sources += rc_lib_gen.process(win32ver_rc, extra_args: [
'--NAME', 'jsquery',
'--FILEDESC', 'jsquery - language to query jsonb data type.',])
endif
jsquery = shared_module('jsquery',
jsquery_sources,
include_directories: include_directories('.'),
kwargs: contrib_mod_args,
)
contrib_targets += jsquery
install_data(
'jsquery.control',
'jsquery--1.0--1.1.sql',
'jsquery--1.1.sql',
kwargs: contrib_data_args,
)
tests += {
'name': 'jsquery',
'sd': meson.current_source_dir(),
'bd': meson.current_build_dir(),
'regress': {
'sql': [
'jsquery',
],
},
}