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

Konstantin Tokarev annulen at yandex.ru
Mon Oct 30 19:20:25 CET 2017



30.10.2017, 21:11, "Thiago Macieira" <thiago.macieira at intel.com>:
> On segunda-feira, 30 de outubro de 2017 09:11:39 PDT Konstantin Tokarev wrote:
>>  AFAIK there no technical reason why providing .pc files for MSVC and macOS
>>  frameworks would be impossible.
>
> It's a simple switch that needs to be toggled. In qt_module.prf:
>
> !internal_module:!lib_bundle:if(unix|mingw) {
>     CONFIG += create_pc
>
> As you can see, they exist for macOS, except when we're building bundles. The
> problem there is teaching pkg-config about frameworks and bundles.
>
> 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

>
> --
> 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

-- 
Regards,
Konstantin



More information about the Development mailing list