2016-09-29 15:48:38 +00:00
|
|
|
suffix =
|
|
|
|
for(ever) {
|
|
|
|
QMAKE_USE$${suffix} = $$unique(QMAKE_USE$${suffix})
|
2016-09-29 15:57:53 +00:00
|
|
|
for (use, QMAKE_USE$${suffix}) {
|
|
|
|
use = $$split(use, /)
|
|
|
|
name = $$take_first(use)
|
2016-09-29 15:48:38 +00:00
|
|
|
nu = $$upper($$name)
|
|
|
|
debug: \
|
|
|
|
libs = $$eval(QMAKE_LIBS_$${nu}_DEBUG)
|
|
|
|
else: \
|
|
|
|
libs = $$eval(QMAKE_LIBS_$${nu}_RELEASE)
|
|
|
|
libs += $$eval(QMAKE_LIBS_$$nu)
|
2016-11-15 13:01:15 +00:00
|
|
|
libdir = $$eval(QMAKE_LIBDIR_$$nu)
|
2016-09-28 16:54:29 +00:00
|
|
|
defines = $$eval(QMAKE_DEFINES_$${nu})
|
|
|
|
includes = $$eval(QMAKE_INCDIR_$${nu})
|
2016-09-29 15:48:38 +00:00
|
|
|
|
2016-09-28 16:54:29 +00:00
|
|
|
isEmpty(libs):isEmpty(defines):isEmpty(includes): \
|
2016-09-29 15:48:38 +00:00
|
|
|
error("Library '$$name' is not defined.")
|
|
|
|
|
2016-11-15 13:01:15 +00:00
|
|
|
!contains(use, nolink) {
|
|
|
|
QMAKE_LIBDIR += $$libdir
|
2016-09-29 15:57:53 +00:00
|
|
|
LIBS$${suffix} += $$libs
|
2016-11-15 13:01:15 +00:00
|
|
|
}
|
2016-09-29 15:57:53 +00:00
|
|
|
!contains(use, linkonly) {
|
2016-09-28 16:54:29 +00:00
|
|
|
DEFINES += $$defines
|
|
|
|
INCLUDEPATH += $$includes
|
2016-09-29 15:57:53 +00:00
|
|
|
}
|
2016-09-29 15:48:38 +00:00
|
|
|
}
|
|
|
|
!isEmpty(suffix): break()
|
|
|
|
suffix = "_PRIVATE"
|
|
|
|
}
|