PDA

View Full Version : Generating a static and dynamic library



elcuco
13th July 2006, 17:37
hi,

i am trying to make a library, and I would like to build both a static and dynamic version. It this possible with a single pro file? or should I use subdirs and 2 different projects?

jacek
13th July 2006, 18:02
Maybe something like:
qmake -config shared -o Makefile.shared
qmake -config static -o Makefile.staticwill be enough?

elcuco
13th July 2006, 18:32
that could work as well, but it's ugly... i prefer the subdirs option, as it works with the default "qmake;make"

elcuco
20th August 2011, 11:46
bump up...

Now I did this... but ising two very similar *.pro files, which differ only by this option. Is it possible for me to merge this "somehow"?