2016-09-29 15:48:38 +00:00
|
|
|
suffix =
|
|
|
|
for(ever) {
|
2018-04-17 17:17:25 +00:00
|
|
|
CC_USES =
|
|
|
|
LD_USES =
|
2016-09-29 15:57:53 +00:00
|
|
|
for (use, QMAKE_USE$${suffix}) {
|
|
|
|
use = $$split(use, /)
|
|
|
|
name = $$take_first(use)
|
2017-11-24 18:48:33 +00:00
|
|
|
nu = $$upper($$replace(name, -, _))
|
2018-04-17 17:17:25 +00:00
|
|
|
!contains(use, linkonly): CC_USES += $$nu
|
|
|
|
!contains(use, nolink): LD_USES += $$nu
|
|
|
|
}
|
|
|
|
CC_USES = $$resolve_depends(CC_USES, QMAKE_DEPENDS_, _CC)
|
|
|
|
for (nu, CC_USES) {
|
|
|
|
!defined(QMAKE_LIBS_$$nu, var): \
|
2017-11-24 18:48:33 +00:00
|
|
|
error("Library '$$lower($$replace(nu, _, -))' is not defined.")
|
2018-04-17 17:17:25 +00:00
|
|
|
|
|
|
|
DEFINES += $$eval(QMAKE_DEFINES_$${nu})
|
|
|
|
INCLUDEPATH += $$eval(QMAKE_INCDIR_$${nu})
|
|
|
|
}
|
|
|
|
LD_USES = $$resolve_depends(LD_USES, QMAKE_DEPENDS_, _LD)
|
|
|
|
for (nu, LD_USES) {
|
2017-01-18 13:46:35 +00:00
|
|
|
!defined(QMAKE_LIBS_$$nu, var): \
|
2017-11-24 18:48:33 +00:00
|
|
|
error("Library '$$lower($$replace(nu, _, -))' is not defined.")
|
2016-09-29 15:48:38 +00:00
|
|
|
|
2019-09-11 11:18:28 +00:00
|
|
|
QMAKE_LIBDIR += $$eval(QMAKE_LIBDIR_$$nu)
|
|
|
|
|
2019-08-01 05:56:59 +00:00
|
|
|
android {
|
|
|
|
ABI_LIBS = $$eval(QMAKE_LIBS_$${nu}_$${QT_ARCH})
|
|
|
|
isEmpty(ABI_LIBS): ABI_LIBS = $$eval(QMAKE_LIBS_$${nu})
|
|
|
|
LIBS$${suffix} += $$ABI_LIBS
|
|
|
|
} else: debug: \
|
2018-04-17 17:17:25 +00:00
|
|
|
LIBS$${suffix} += $$eval(QMAKE_LIBS_$${nu}_DEBUG) $$eval(QMAKE_LIBS_$$nu)
|
|
|
|
else: \
|
|
|
|
LIBS$${suffix} += $$eval(QMAKE_LIBS_$${nu}_RELEASE) $$eval(QMAKE_LIBS_$$nu)
|
2016-09-29 15:48:38 +00:00
|
|
|
}
|
|
|
|
!isEmpty(suffix): break()
|
|
|
|
suffix = "_PRIVATE"
|
|
|
|
}
|