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)
|
2017-01-18 13:46:35 +00:00
|
|
|
!defined(QMAKE_LIBS_$$nu, var): \
|
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) {
|
2017-01-18 13:46:35 +00:00
|
|
|
QMAKE_LIBDIR += $$eval(QMAKE_LIBDIR_$$nu)
|
|
|
|
debug: \
|
|
|
|
LIBS$${suffix} += $$eval(QMAKE_LIBS_$${nu}_DEBUG) $$eval(QMAKE_LIBS_$$nu)
|
|
|
|
else: \
|
|
|
|
LIBS$${suffix} += $$eval(QMAKE_LIBS_$${nu}_RELEASE) $$eval(QMAKE_LIBS_$$nu)
|
2016-11-15 13:01:15 +00:00
|
|
|
}
|
2016-09-29 15:57:53 +00:00
|
|
|
!contains(use, linkonly) {
|
2017-01-18 13:46:35 +00:00
|
|
|
DEFINES += $$eval(QMAKE_DEFINES_$${nu})
|
|
|
|
INCLUDEPATH += $$eval(QMAKE_INCDIR_$${nu})
|
2016-09-29 15:57:53 +00:00
|
|
|
}
|
2016-09-29 15:48:38 +00:00
|
|
|
}
|
|
|
|
!isEmpty(suffix): break()
|
|
|
|
suffix = "_PRIVATE"
|
|
|
|
}
|