doc:: simplify introductory text
[pgsql.git] / src / meson.build
blobbceeca70f90d258cb81bf240a27579eee67bf343
1 # Copyright (c) 2022-2023, PostgreSQL Global Development Group
3 # libraries that other subsystems might depend upon first, in their respective
4 # dependency order
6 subdir('timezone')
8 subdir('backend')
10 subdir('bin')
12 subdir('pl')
14 subdir('interfaces')
16 subdir('tools/pg_bsd_indent')
19 ### Generate a Makefile.global that's complete enough for PGXS to work.
21 # This is somewhat ugly, but allows extensions to use a single buildsystem
22 # across all the supported postgres versions. Once all supported PG versions
23 # support meson, we can remove all of this.
25 # XXX: Should we make this optional?
27 # pgxs_cdata is built in makefiles/meson.build, but some of the generated
28 # files are output into src/
29 subdir('makefiles')
31 makefile_global = configure_file(
32   input: 'Makefile.global.in',
33   output: 'Makefile.global',
34   configuration: pgxs_cdata,
35   install: true,
36   install_dir: dir_pgxs / 'src',
38 configure_files += makefile_global
40 makefile_port = configure_file(
41   input: 'makefiles' / 'Makefile.@0@'.format(portname),
42   output: 'Makefile.port',
43   copy: true,
44   install_dir: dir_pgxs / 'src')
45 configure_files += makefile_port
47 install_data(
48   'Makefile.shlib', 'nls-global.mk',
49   install_dir: dir_pgxs / 'src')
51 install_data(
52   'makefiles/pgxs.mk',
53   install_dir: dir_pgxs / 'src' / 'makefiles')