-
Notifications
You must be signed in to change notification settings - Fork 175
Expand file tree
/
Copy pathmeson.build
More file actions
57 lines (52 loc) · 1.49 KB
/
meson.build
File metadata and controls
57 lines (52 loc) · 1.49 KB
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
# Copyright (c) 2022-2025, PostgreSQL Global Development Group
# Portions Copyright (c) 2023-2026, IvorySQL Global Development Team
run_command(
[ln,
'-s',
'../backend/oracle_parser/ora_keywords.c'],
check:false)
fe_utils_sources = files(
'archive.c',
'astreamer_file.c',
'astreamer_gzip.c',
'astreamer_lz4.c',
'astreamer_tar.c',
'astreamer_zstd.c',
'cancel.c',
'conditional.c',
'connect_utils.c',
'mbprint.c',
'option_utils.c',
'parallel_slot.c',
'print.c',
'query_utils.c',
'recovery_gen.c',
'simple_list.c',
'string_utils.c',
'version.c',
'ora_keywords.c',
'ora_string_utils.c',
)
ora_parser_kwlist = custom_target('ora_kwlist',
input: files('../include/oracle_parser/ora_kwlist.h'),
output: 'ora_kwlist_d.h',
command: [perl, '-I', '@SOURCE_ROOT@/src/tools', files('../tools/ora_gen_keywordlist.pl'),
'--extern', '--output', '@OUTDIR@', '@INPUT@'])
generated_sources += ora_parser_kwlist
fe_utils_sources += ora_parser_kwlist
ora_inc = include_directories('.')
psqlscan = custom_target('psqlscan',
input: 'psqlscan.l',
output: 'psqlscan.c',
command: [flex_cmd, '--no-backup', '--', '-Cfe', '-p', '-p'],
)
generated_sources += psqlscan
fe_utils_sources += psqlscan
fe_utils = static_library('libpgfeutils',
fe_utils_sources,
c_pch: pch_postgres_fe_h,
include_directories: [postgres_inc, libpq_inc, ora_inc],
c_args: host_system == 'windows' ? ['-DFD_SETSIZE=1024'] : [],
dependencies: frontend_common_code,
kwargs: default_lib_args,
)