automatically add the version header to HEADERS
Change-Id: I7c2e1d852ebdbc5cca7a3a31ab2b4c9ab9faffd9 Reviewed-by: Joerg Bornemann <joerg.bornemann@nokia.com>
This commit is contained in:
parent
92c76ffcf1
commit
e203e42906
@ -1,4 +1,13 @@
|
||||
#load up the headers info
|
||||
include($$MODULE_BASE_OUTDIR/include/$$TARGET/headers.pri, "", true)
|
||||
|
||||
lctarget = $$lower($$TARGET)
|
||||
|
||||
MODULE_VERSION_HEADER = $$find(SYNCQT.HEADER_FILES, (^|/)$${lctarget}version\\.h$)
|
||||
count(MODULE_VERSION_HEADER, 1) {
|
||||
MODULE_VERSION_HEADER = $$absolute_path($$MODULE_VERSION_HEADER, $$_PRO_FILE_PWD_)
|
||||
|
||||
HEADERS += $$MODULE_VERSION_HEADER
|
||||
}
|
||||
|
||||
CONFIG += qt_install_headers
|
||||
|
@ -14,8 +14,6 @@ unix|win32-g++*:QMAKE_PKGCONFIG_REQUIRES = QtCore
|
||||
|
||||
load(qt_module_config)
|
||||
|
||||
HEADERS += $$QT_SOURCE_TREE/src/concurrent/qtconcurrentversion.h
|
||||
|
||||
PRECOMPILED_HEADER = ../corelib/global/qt_pch.h
|
||||
|
||||
SOURCES += \
|
||||
|
@ -14,8 +14,6 @@ irix-cc*:QMAKE_CXXFLAGS += -no_prelink -ptused
|
||||
|
||||
load(qt_module_config)
|
||||
|
||||
HEADERS += $$QT_SOURCE_TREE/src/corelib/qtcoreversion.h
|
||||
|
||||
QMAKE_DOCS = $$PWD/doc/qtcore.qdocconf
|
||||
QMAKE_DOCS_INDEX = ../../doc
|
||||
|
||||
|
@ -33,8 +33,6 @@ win32 {
|
||||
}
|
||||
load(qt_module_config)
|
||||
|
||||
HEADERS += $$QT_SOURCE_TREE/src/dbus/qtdbusversion.h
|
||||
|
||||
QMAKE_DOCS = $$PWD/doc/qtdbus.qdocconf
|
||||
QMAKE_DOCS_INDEX = ../../doc
|
||||
|
||||
|
@ -20,8 +20,6 @@ testcocoon {
|
||||
load(testcocoon)
|
||||
}
|
||||
|
||||
HEADERS += $$QT_SOURCE_TREE/src/gui/qtguiversion.h
|
||||
|
||||
QMAKE_DOCS = $$PWD/doc/qtgui.qdocconf
|
||||
QMAKE_DOCS_INDEX = ../../doc
|
||||
|
||||
|
@ -21,8 +21,6 @@ unix|win32-g++*:QMAKE_PKGCONFIG_REQUIRES = QtCore
|
||||
|
||||
load(qt_module_config)
|
||||
|
||||
HEADERS += $$QT_SOURCE_TREE/src/network/qtnetworkversion.h
|
||||
|
||||
QMAKE_DOCS = $$PWD/doc/qtnetwork.qdocconf
|
||||
QMAKE_DOCS_INDEX = ../../doc
|
||||
|
||||
|
@ -16,8 +16,6 @@ unix|win32-g++*:QMAKE_PKGCONFIG_REQUIRES = QtCore QtGui
|
||||
|
||||
load(qt_module_config)
|
||||
|
||||
HEADERS += $$QT_SOURCE_TREE/src/opengl/qtopenglversion.h
|
||||
|
||||
contains(QT_CONFIG, opengl):CONFIG += opengl
|
||||
contains(QT_CONFIG, opengles1):CONFIG += opengles1
|
||||
contains(QT_CONFIG, opengles2):CONFIG += opengles2
|
||||
|
@ -16,8 +16,6 @@ load(qt_module_config)
|
||||
|
||||
unix|win32-g++*:QMAKE_PKGCONFIG_REQUIRES = QtCore QtGui
|
||||
|
||||
HEADERS += $$PWD/qtplatformsupportversion.h
|
||||
|
||||
DEFINES += QT_NO_CAST_FROM_ASCII
|
||||
PRECOMPILED_HEADER = ../corelib/global/qt_pch.h
|
||||
|
||||
|
@ -12,8 +12,6 @@ unix|win32-g++*:QMAKE_PKGCONFIG_REQUIRES = QtCore QtGui
|
||||
|
||||
load(qt_module_config)
|
||||
|
||||
HEADERS += $$QT_SOURCE_TREE/src/printsupport/qtprintsupportversion.h
|
||||
|
||||
QMAKE_DOCS = $$PWD/doc/qtprintsupport.qdocconf
|
||||
QMAKE_DOCS_INDEX = ../../doc
|
||||
|
||||
|
@ -14,8 +14,6 @@ unix|win32-g++*:QMAKE_PKGCONFIG_REQUIRES = QtCore
|
||||
|
||||
load(qt_module_config)
|
||||
|
||||
HEADERS += $$QT_SOURCE_TREE/src/sql/qtsqlversion.h
|
||||
|
||||
DEFINES += QT_NO_CAST_FROM_ASCII
|
||||
PRECOMPILED_HEADER = ../corelib/global/qt_pch.h
|
||||
SQL_P = sql
|
||||
|
@ -83,8 +83,6 @@ mac {
|
||||
|
||||
load(qt_module_config)
|
||||
|
||||
HEADERS += $$QT_SOURCE_TREE/src/testlib/qttestversion.h
|
||||
|
||||
QMAKE_TARGET_PRODUCT = QTestLib
|
||||
QMAKE_TARGET_DESCRIPTION = Qt \
|
||||
Unit \
|
||||
|
@ -13,8 +13,6 @@ irix-cc*:QMAKE_CXXFLAGS += -no_prelink -ptused
|
||||
|
||||
unix|win32-g++*:QMAKE_PKGCONFIG_REQUIRES = QtCore
|
||||
|
||||
HEADERS += $$QT_SOURCE_TREE/src/widgets/qtwidgetsversion.h
|
||||
|
||||
QMAKE_DOCS = $$PWD/doc/qtwidgets.qdocconf
|
||||
QMAKE_DOCS_INDEX = ../../doc
|
||||
|
||||
|
@ -13,8 +13,6 @@ unix|win32-g++*:QMAKE_PKGCONFIG_REQUIRES = QtCore
|
||||
|
||||
load(qt_module_config)
|
||||
|
||||
HEADERS += $$QT_SOURCE_TREE/src/xml/qtxmlversion.h
|
||||
|
||||
QMAKE_DOCS = $$PWD/doc/qtxml.qdocconf
|
||||
QMAKE_DOCS_INDEX = ../../doc
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user