reformat-dat-files Rewrite catalog data files into standard format
expand-dat-files Expand all data files to include defaults
update-unicode Update Unicode data to new version
+ headerscheck Check that all headers compile standalone
+ cpluspluscheck Check that all headers compile as C++
Documentation Targets:
html Build documentation in multi-page HTML format
+###############################################################
+# headerscheck
+###############################################################
+
+headerscheck = files('src/tools/pginclude/headerscheck')
+run_target('headerscheck',
+ command: [headerscheck, meson.project_source_root(), meson.project_build_root()]
+)
+
+run_target('cpluspluscheck',
+ command: [headerscheck, '--cplusplus', meson.project_source_root(), meson.project_build_root()]
+)
+
+
+
###############################################################
# Pseudo targets
###############################################################
in your configure options, else you're likely to get errors about
related headers not being found.
+When using meson, run "meson compile -C build headerscheck" or "ninja
+-C build headerscheck".
+
A limitation of the current script is that it doesn't know exactly which
headers are for frontend or backend; when in doubt it uses postgres.h as
prerequisite, even if postgres_fe.h or c.h would be more appropriate.
in your configure options, else you're likely to get errors about
related headers not being found.
+When using meson, run "meson compile -C build cpluspluscheck" or
+"ninja -C build cpluspluscheck".
+
If you are using a non-g++-compatible C++ compiler, you may need to
override the script's CXXFLAGS setting by setting a suitable environment
value.