🌐 AI搜索 & 代理 主页
Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
[PGPRO-10780] Add meson.build file to support building from the contr…
…ib source

tree.
  • Loading branch information
rzharkov committed Jan 28, 2025
commit 75838c016549d8d17beb6e40e880cc136a19fbdd
45 changes: 45 additions & 0 deletions meson.build
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
# Copyright (c) 2025, Postgres Professional

# Does not support the PGXS infrastructure at this time. Please, compile as part
# of the contrib source tree.

ptrack_sources = files(
'datapagemap.c',
'engine.c',
'ptrack.c',
)

if host_system == 'windows'
ptrack_sources += rc_lib_gen.process(win32ver_rc, extra_args: [
'--NAME', 'ptrack',
'--FILEDESC', 'ptrack - block-level incremental backup engine for Postgres Pro.',])
endif

ptrack = shared_module('ptrack',
ptrack_sources,
kwargs: contrib_mod_args,
)
contrib_targets += ptrack

install_data(
'ptrack.control',
'ptrack--2.0--2.1.sql',
'ptrack--2.1--2.2.sql',
'ptrack--2.1.sql',
'ptrack--2.2--2.3.sql',
'ptrack--2.3--2.4.sql',
'ptrack--2.4--2.5.sql',
kwargs: contrib_data_args,
)

tests += {
'name': 'ptrack',
'sd': meson.current_source_dir(),
'bd': meson.current_build_dir(),
'tap': {
'tests': [
't/001_basic.pl',
't/002_cfs_compatibility.pl',
],
},
}
Loading