On domingo, 15 de abril de 2012 23.59.55, Stephen Kelly wrote:
> On Friday, April 13, 2012 13:55:04 Thiago Macieira wrote:
> > > 4) Packagers who package only one type of Qt build (shared or static,
> > > but
> > > not both), should not see any changes either. One Qt build means a set
> > > of
> > > library files and the headers (e.g.: libQtCore.so and qconfig.h).
> >
> > THIS IS A PROPOSAL
> >
> > A static-and-shared build of Qt is currently not supported. There are no
> > plans to accomplish this with the current buildsystem in one build.
>
> Hmm, when I worked on the CMake buildsystem files, I thought
> static-and-shared was the default on Mac (or maybe it was Windows), or I
> had to support it for that reason. Has that changed or am I
> imagining/misremembering it?

You may be confusing static-and-shared with debug-and-release. That's the
default on Mac and Windows.

Static and shared in one build has never been supported.

> I also (mis)remember that this shared_and_static option doesn't work on
> linux at all? Is this a mac-only feature?

It doesn't work anywhere. The option doesn't exist yet.

> > Buildsystems should be changed to support compile-time selection of which
> > one to link to.
> >
> > For qmake, the proposed solution is:
> > CONFIG += prefer_shared_qt
> > CONFIG += prefer_static_qt
> >
> > prefer_shared_qt is a no-op, since it's the default
> >
> > prefer_static_qt defines QT_STATIC and must also use a static linking form:
> >     -static -lQtQml -lQtGui -lQtCore -shared $dependent_libs
>
> The CMake equivalent would probably be a Qt5$${MODULE}_USE_STATIC_LIBS
> option. I'll look into it.

It's far more likely that CMake and other buildsystems can accomplish this,
even if qmake can't. In order to do that, we need to have a sane qconfig.h and
export macros. That's what this proposal is about.

--
Thiago Macieira - thiago.macieira (AT) intel.com
  Software Architect - Intel Open Source Technology Center
     Intel Sweden AB - Registration Number: 556189-6027
     Knarrarnäsgatan 15, 164 40 Kista, Stockholm, Sweden

Attachment: signature.asc
Description: This is a digitally signed message part.

_______________________________________________
Development mailing list
Development@qt-project.org
http://lists.qt-project.org/mailman/listinfo/development

Reply via email to