Which QMAKE variable contains the final library being build?
-
Which QMAKE variable contains the final library being build? Looking at the makefile generated by qmake I find:
debug\apu_a.lib: $(OBJECTS)
Which variable in the qmake .pro holds the value debug\apu_a.lib?
-
@ThisIsEusch said in Which QMAKE variable contains the final library being build?:
Which variable
TARGET
https://doc.qt.io/qt-5/qmake-variable-reference.html#target -
The TARGET variable indicates which target is to be build. If I build a debug configuration of TARGET=apu and template=lib, the resulting makefile contains a dependency debug/apu.lib: ..... which is the variable I'm looking for: the one that holds the path to the target on disk.
-
Hi,
I do not think there's any specific variable containing that. The path is likely built at generation time from various information.
Why do you need that precise path for ?
-
I have some "common" libraries (commons). These commons that are use in several projects (applications). During development the debug versions are used. Given release time, these commons are build in the release configuration (no debug info, no extra memory dumps, tracing etc) and checked into svn (version control). Using the revision number, the common libraries with their header are copied to the application folder (svn:externals). When commiting the folder properties including the value of svn:externals is stored. This way each released version of an application has a known set of commons.Switching between debug and release libraries is as easy as specifying another path to the libraries:
CONFIG( debug, debug|release ) { LIBS += -L..\common2\interface\libs\msc\debug } else { LIBS += -L$$PWD\common\libs\msc\release }
-
In that case you can use DESTDIR and TARGET. But ensure you use OUT_PWD so you ensure that your get the proper build folder to store the build artefact.