2014-04-25 12:11:49 +00:00
|
|
|
#
|
|
|
|
# W A R N I N G
|
|
|
|
# -------------
|
|
|
|
#
|
|
|
|
# This file is not part of the Qt API. It exists purely as an
|
|
|
|
# implementation detail. It may change from version to version
|
|
|
|
# without notice, or even be removed.
|
|
|
|
#
|
|
|
|
# We mean it.
|
|
|
|
#
|
|
|
|
|
|
|
|
load(qt_build_paths)
|
|
|
|
|
|
|
|
TEMPLATE = lib
|
|
|
|
CONFIG -= qt
|
2016-05-04 14:08:37 +00:00
|
|
|
QT = # In case qt is re-added.
|
2014-04-25 12:11:49 +00:00
|
|
|
|
use helper libs via QMAKE_USE
for that, qt_help_lib.prf gains the ability to write "external module
pri" files that contain suitable information for QMAKE_USE.
these files have a bunch of limitations:
- they are not installed, because a) they are not relocatable and b) the
helper libs' headers are not installed, either
- it won't work with qmake -r, which is ok, as qt5 does not build with
qmake -r anyway
- deps are not transitive, neither at build nor at use time
the freetype, harfbuzz-ng, pcre, and png helper libs have been adjusted
accordingly, and their uses replaced with QMAKE_USE instances. this also
allowed inlining the now trivial {harfbuzz,pcrc,png}_dependency.pri
files. freetype_dependency.pri remains due to its funkiness.
Change-Id: I16890eecb122e34ec49f3d3e68380d1ea71a198a
Reviewed-by: Jake Petroules <jake.petroules@qt.io>
2016-09-30 18:53:53 +00:00
|
|
|
INCLUDEPATH += $$MODULE_INCLUDEPATH
|
|
|
|
DEFINES += $$MODULE_DEFINES
|
|
|
|
|
2016-02-03 16:00:59 +00:00
|
|
|
CONFIG -= warning_clean # Don't presume 3rd party code to be clean
|
|
|
|
load(qt_common)
|
|
|
|
|
2016-08-05 11:35:39 +00:00
|
|
|
qtConfig(debug_and_release): CONFIG += debug_and_release
|
|
|
|
qtConfig(build_all): CONFIG += build_all
|
2014-04-25 12:11:49 +00:00
|
|
|
|
|
|
|
DESTDIR = $$MODULE_BASE_OUTDIR/lib
|
|
|
|
DLLDESTDIR = $$MODULE_BASE_OUTDIR/bin
|
|
|
|
|
2016-11-04 09:34:58 +00:00
|
|
|
THE_TARGET = $$qt5LibraryTarget($$TARGET)
|
|
|
|
|
use helper libs via QMAKE_USE
for that, qt_help_lib.prf gains the ability to write "external module
pri" files that contain suitable information for QMAKE_USE.
these files have a bunch of limitations:
- they are not installed, because a) they are not relocatable and b) the
helper libs' headers are not installed, either
- it won't work with qmake -r, which is ok, as qt5 does not build with
qmake -r anyway
- deps are not transitive, neither at build nor at use time
the freetype, harfbuzz-ng, pcre, and png helper libs have been adjusted
accordingly, and their uses replaced with QMAKE_USE instances. this also
allowed inlining the now trivial {harfbuzz,pcrc,png}_dependency.pri
files. freetype_dependency.pri remains due to its funkiness.
Change-Id: I16890eecb122e34ec49f3d3e68380d1ea71a198a
Reviewed-by: Jake Petroules <jake.petroules@qt.io>
2016-09-30 18:53:53 +00:00
|
|
|
!build_pass {
|
|
|
|
MODULE = $$replace(TARGET, ^qt, )
|
|
|
|
MODULE_PRI = $$MODULE_QMAKE_OUTDIR/mkspecs/modules/qt_ext_$${MODULE}.pri
|
|
|
|
ucmodule = $$upper($$MODULE)
|
|
|
|
|
|
|
|
MODULE_PRI_CONT = \
|
|
|
|
"QMAKE_INCDIR_$${ucmodule} = $$val_escape(MODULE_INCLUDEPATH)" \
|
|
|
|
"QMAKE_DEFINES_$${ucmodule} = $$val_escape(MODULE_DEFINES)"
|
|
|
|
debug_and_release {
|
|
|
|
win32: MODULE_DEBUG_LIBS = -L$$DESTDIR -l$${TARGET}d
|
|
|
|
darwin: MODULE_DEBUG_LIBS = -L$$DESTDIR -l$${TARGET}_debug
|
2016-11-04 09:34:58 +00:00
|
|
|
MODULE_RELEASE_LIBS = -L$$DESTDIR -l$$TARGET
|
use helper libs via QMAKE_USE
for that, qt_help_lib.prf gains the ability to write "external module
pri" files that contain suitable information for QMAKE_USE.
these files have a bunch of limitations:
- they are not installed, because a) they are not relocatable and b) the
helper libs' headers are not installed, either
- it won't work with qmake -r, which is ok, as qt5 does not build with
qmake -r anyway
- deps are not transitive, neither at build nor at use time
the freetype, harfbuzz-ng, pcre, and png helper libs have been adjusted
accordingly, and their uses replaced with QMAKE_USE instances. this also
allowed inlining the now trivial {harfbuzz,pcrc,png}_dependency.pri
files. freetype_dependency.pri remains due to its funkiness.
Change-Id: I16890eecb122e34ec49f3d3e68380d1ea71a198a
Reviewed-by: Jake Petroules <jake.petroules@qt.io>
2016-09-30 18:53:53 +00:00
|
|
|
MODULE_PRI_CONT += \
|
|
|
|
"QMAKE_LIBS_$${ucmodule}_DEBUG = $$val_escape(MODULE_DEBUG_LIBS)" \
|
2016-11-04 09:34:58 +00:00
|
|
|
"QMAKE_LIBS_$${ucmodule}_RELEASE = $$val_escape(MODULE_RELEASE_LIBS)"
|
use helper libs via QMAKE_USE
for that, qt_help_lib.prf gains the ability to write "external module
pri" files that contain suitable information for QMAKE_USE.
these files have a bunch of limitations:
- they are not installed, because a) they are not relocatable and b) the
helper libs' headers are not installed, either
- it won't work with qmake -r, which is ok, as qt5 does not build with
qmake -r anyway
- deps are not transitive, neither at build nor at use time
the freetype, harfbuzz-ng, pcre, and png helper libs have been adjusted
accordingly, and their uses replaced with QMAKE_USE instances. this also
allowed inlining the now trivial {harfbuzz,pcrc,png}_dependency.pri
files. freetype_dependency.pri remains due to its funkiness.
Change-Id: I16890eecb122e34ec49f3d3e68380d1ea71a198a
Reviewed-by: Jake Petroules <jake.petroules@qt.io>
2016-09-30 18:53:53 +00:00
|
|
|
} else {
|
2016-11-04 09:34:58 +00:00
|
|
|
MODULE_LIBS = -L$$DESTDIR -l$$THE_TARGET
|
use helper libs via QMAKE_USE
for that, qt_help_lib.prf gains the ability to write "external module
pri" files that contain suitable information for QMAKE_USE.
these files have a bunch of limitations:
- they are not installed, because a) they are not relocatable and b) the
helper libs' headers are not installed, either
- it won't work with qmake -r, which is ok, as qt5 does not build with
qmake -r anyway
- deps are not transitive, neither at build nor at use time
the freetype, harfbuzz-ng, pcre, and png helper libs have been adjusted
accordingly, and their uses replaced with QMAKE_USE instances. this also
allowed inlining the now trivial {harfbuzz,pcrc,png}_dependency.pri
files. freetype_dependency.pri remains due to its funkiness.
Change-Id: I16890eecb122e34ec49f3d3e68380d1ea71a198a
Reviewed-by: Jake Petroules <jake.petroules@qt.io>
2016-09-30 18:53:53 +00:00
|
|
|
MODULE_PRI_CONT += \
|
|
|
|
"QMAKE_LIBS_$${ucmodule} = $$val_escape(MODULE_LIBS)"
|
|
|
|
}
|
|
|
|
write_file($$MODULE_PRI, MODULE_PRI_CONT)|error()
|
|
|
|
}
|
|
|
|
|
2016-11-04 09:34:58 +00:00
|
|
|
TARGET = $$THE_TARGET
|
|
|
|
|
2014-05-07 14:38:06 +00:00
|
|
|
# In static builds of Qt, convenience libraries must be installed,
|
|
|
|
# as in this case they are not linked to the final library/plugin.
|
2016-08-05 11:35:39 +00:00
|
|
|
installed|if(!not_installed:qtConfig(static)): load(qt_installs)
|