Migrate build system to Meson

FossilOrigin-Name: a27ad474c4851fba5efbb876e5c1c174de1fea165ea9c1d4d1f2018b175b5080
This commit is contained in:
Jonathan Schleifer 2024-08-07 19:43:07 +00:00
parent 597a2dc711
commit eb1d0eb207
19 changed files with 76 additions and 5971 deletions

22
src/meson.build Normal file
View file

@ -0,0 +1,22 @@
fs = import('fs')
subdir('exceptions')
sources = files(
'PGConnection.m',
'PGResult.m',
'PGResultRow.m',
)
objpgsql = library('objpgsql',
sources + exceptions_sources,
include_directories: incdir,
dependencies: [objfw_dep, libpq_dep],
install: true)
headers = ['ObjPgSQL.h']
foreach source: sources + exceptions_sources
headers += fs.replace_suffix(source.full_path(), '.h')
endforeach
install_headers(headers, subdir: 'ObjPgSQL')