[Development] Getting build flags for platforms without pkg-config

Konstantin Tokarev annulen at yandex.ru
Tue Oct 31 12:22:34 CET 2017

30.10.2017, 22:11, "Thiago Macieira" <thiago.macieira at intel.com>:
> On segunda-feira, 30 de outubro de 2017 11:20:25 PDT Konstantin Tokarev wrote:
>>  > As for MSVC, the issue will be similar: teaching pkg-config about the MSVC
>>  > linker syntax. Hint: there's no -l
>>  pkg-config knows nothing about nature of compiler flags, it can easily
>>  handle bundle-specific option or cl.exe argument
> It does, actually.
> For example, it suppresses -L that point to the system dirs, like -L/usr/lib.
> But it doesn't suppress -F options like that.
> It does deduplication for -I and -l options, but it doesn't for -framework or
> directly-named .lib files. Or for -I flags on Windows, for some reason.

Actually, on Windows pkg-config has --msvc-syntax that allows to use unix-style
flags in .pc files and convert them to cl.exe flags in the output.


> It may be sufficient to get things going, but it's not a tool designed for those
> environments.
> --
> Thiago Macieira - thiago.macieira (AT) intel.com
>   Software Architect - Intel Open Source Technology Center
> _______________________________________________
> Development mailing list
> Development at qt-project.org
> http://lists.qt-project.org/mailman/listinfo/development


More information about the Development mailing list