Skip to content

meson: write test for pkg-config based extension builds #58

Description

@anarazel

We now generate postgresql-extension.pc and postgresql-extension-warnings-uninstalled.pc, containing the correct flags to build an extension fairly easily, without otherwise using postgres' build infrastructure. I manually tested this on linux and windows, but we should have automated tests for this.

Likely just as part of our normal testsuite. If we do that, it might also be worth writing a test for building the same extension via pgxs.

My manual tests were just:
build against (pseudo-)installed postgres:

PKG_CONFIG_SYSROOT_DIR=/tmp/meson/tmp_install PKG_CONFIG_PATH=/tmp/meson/tmp_install/tmp/meson-install/lib/x86_64-linux-gnu/pkgconfig/ m setup build 
ninja -C build -v

build against postgres build tree:

PKG_CONFIG_PATH=/tmp/meson/meson-uninstalled m setup build --wipe && ninja -C build -v
ninja -C build -v

on windows with msvc it likely would be worth testing both --buildtype vs and --buildtype ninja

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions