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

Thiago Macieira thiago.macieira at intel.com
Mon Oct 30 19:10:57 CET 2017

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

Thiago Macieira - thiago.macieira (AT) intel.com
  Software Architect - Intel Open Source Technology Center

More information about the Development mailing list