Indeed, that looks elegant :) Simon
-- Sent from my Nokia N903.01.12 17:46 skrev Buddenhagen Oswald (Nokia-MP/Berlin): On Tue, Jan 03, 2012 at 01:45:27PM -0200, ext Thiago Macieira wrote: > Configure already sets a "default" mkspec symlink that matches the target > mkspec. Making it also create a symlink for "default-host" which matches the > host platform would be easy. > > The tricky part is using that. > > You could specify the -spec default-host option when running configure, but > last I checked with Marius (or was it still Sam?), you can't add that to the > .pro file because it's too late. The spec file was already loaded by the time > the .pro file is parsed. So my guess is this would be a major incursion into > qmake to support the feature. > correct. > It would probably be easier, though uglier, to add a separate file that is > read > by qmake when it finds the .pro file. > well, technically, there is no reason why that separate file could not be the .pro file itself: #pragma spec:default-host TARGET=lrelease ... pure beauty! :D _______________________________________________ Development mailing list Development@qt-project.org http://lists.qt-project.org/mailman/listinfo/development _______________________________________________ Development mailing list Development@qt-project.org http://lists.qt-project.org/mailman/listinfo/development