cli: add support for PKG_CONFIG_MSVC_SYNTAX env variable

Patch from Dan Kegel.
master
Ariadne Conill 2020-05-24 14:34:17 -06:00
parent cdc2bf887e
commit fce1199b53
3 changed files with 5 additions and 1 deletions

2
NEWS
View File

@ -18,6 +18,8 @@ Changes from 1.6.3 to 1.7.0:
- A new --shared option and WantDefaultStatic cross-compile - A new --shared option and WantDefaultStatic cross-compile
configuration option have been added. This allows for toolchains configuration option have been added. This allows for toolchains
to specify that static linking should be used by default. to specify that static linking should be used by default.
- Support for the PKG_CONFIG_MSVC_SYNTAX environment variable has
been added. Patch by Dan Kegel.
Changes from 1.6.2 to 1.6.3: Changes from 1.6.2 to 1.6.3:
---------------------------- ----------------------------

View File

@ -971,7 +971,7 @@ main(int argc, char *argv[])
pkgconf_client_init(&pkg_client, error_handler, NULL, personality); pkgconf_client_init(&pkg_client, error_handler, NULL, personality);
#ifndef PKGCONF_LITE #ifndef PKGCONF_LITE
if ((want_flags & PKG_MSVC_SYNTAX) == PKG_MSVC_SYNTAX) if ((want_flags & PKG_MSVC_SYNTAX) == PKG_MSVC_SYNTAX || getenv("PKG_CONFIG_MSVC_SYNTAX") != NULL)
want_render_ops = msvc_renderer_get(); want_render_ops = msvc_renderer_get();
#endif #endif

View File

@ -211,6 +211,8 @@ If set, enables additional debug logging.
The format of the debug log messages is implementation-specific. The format of the debug log messages is implementation-specific.
.It Va PKG_CONFIG_DONT_RELOCATE_PATHS .It Va PKG_CONFIG_DONT_RELOCATE_PATHS
If set, disables the path relocation feature. If set, disables the path relocation feature.
.It Va PKG_CONFIG_MSVC_SYNTAX
If set, uses MSVC syntax for fragments.
.El .El
.Sh EXAMPLES .Sh EXAMPLES
Displaying the CFLAGS of a package: Displaying the CFLAGS of a package: