You are not logged in.

Dear visitor, welcome to QtForum.org. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

1

Wednesday, April 25th 2007, 4:08pm

Qmake: How to get a splash screen?

Hi folks. I'm trying to find a way to get make (via qmake) to display a splash screen when my library is built. Consider the following .pro file:

=== foo.pro ===
summary.commands = @echo Hi there!;
QMAKE_EXTRA_TARGETS += summary
TEMPLATE=lib
SOURCES=a.cpp b.cpp
PRE_TARGETDEPS=summary
=== EOF ===

foo.pro describes a library (libfoo) to build. foo depends on a target called "summary"; the command to "build" summary actually just echoes some stuff to the screen. Voila--my splash screen!

But there's a problem--let's say you run make and you get your library. Now you run make *again* to see what happens. make is still under the impression that foo depends on some target called "summary". So make executes the summary command again (no problem there, we want the splash screen). Then, however, make thinks that it has somehow rebuilt one of foo's dependencies, so make relinks a.o and b.o to create foo.

This relink is unnecessary! Make performs it because it thinks it has rebuilt a dependency (summary).

Is there a way to get the splash screen to ALWAYS display and keep make from relinking unnecessarily?

Thanks,
--Steve (sgross@sjm.com)
--Steve (sgross@sjm.com)