On 03/01/2012 12:20, ext Thiago Macieira wrote:
> On Tuesday, 3 de January de 2012 18.16.46,
> [email protected] wrote:
>>> I know that because I had the exactly opposite problem Friday: I
>>> had one .cpp (qdrawhelper.cpp) that I wanted to be compiled on
>>> its own *and* as an #include from somewhere else. qmake wouldn't
>>> do it.
>>
>> You need to compile that moc file as a separate lib then, and
>> include it on the link line. It's bizzar to compile the same
>> compile unit twice in the *same* project.
>
> Not exactly. This particular case was of building a certain file with
> different compiler options (in specific, -msse2).
>
> I solved the problem by using a special compiler, which was already
> present in src/gui/gui.pro. qmake doesn't look into SSE2_SOURCES,
> AVX_SOURCES, NEON_SOURCES.

Right, that would work too. (as would a separate library ;)

Now, are the extra-compilers specified in such a way that it also works 
under MSVC and MinGW? :)

-- 
.marius
_______________________________________________
Development mailing list
[email protected]
http://lists.qt-project.org/mailman/listinfo/development

Reply via email to