vcpkg/docs/maintainers/vcpkg_configure_meson.md
Alexander Neumann a4368eabea
[pkgconf] Update to 1.8 (and a few extras; world rebuild) (#20243)
* [vcpkg/script/meson] add option NO_PKG_CONFIG to skip pkg-config setup

* [vcpkg/script/pkgconfig] move vcpkg_find_acquire_program(PKGCONFIG) into the check section where it is used

* [pkgconf] Update to 1.8.0

* version stuff

* remove unused patch.

* (CR) quote string

* version update.
2021-09-24 12:11:38 -07:00

1.4 KiB

vcpkg_configure_meson

The latest version of this document lives in the vcpkg repo.

Configure Meson for Debug and Release builds of a project.

Usage

vcpkg_configure_meson(
    SOURCE_PATH <${SOURCE_PATH}>
    [NO_PKG_CONFIG]
    [OPTIONS <-DUSE_THIS_IN_ALL_BUILDS=1>...]
    [OPTIONS_RELEASE <-DOPTIMIZE=1>...]
    [OPTIONS_DEBUG <-DDEBUGGABLE=1>...]
)

Parameters

SOURCE_PATH

Specifies the directory containing the meson.build. By convention, this is usually set in the portfile as the variable SOURCE_PATH.

OPTIONS

Additional options passed to Meson during the configuration.

OPTIONS_RELEASE

Additional options passed to Meson during the Release configuration. These are in addition to OPTIONS.

OPTIONS_DEBUG

Additional options passed to Meson during the Debug configuration. These are in addition to OPTIONS.

NO_PKG_CONFIG

Disable pkg-config setup

Notes

This command supplies many common arguments to Meson. To see the full list, examine the source.

Examples

Source

scripts/cmake/vcpkg_configure_meson.cmake